Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

xkyouchoux

Members
  • Joined

  • Last visited

  1. http://mvnrepository.com/artifact/org.xerial/sqlite-jdbc/3.7.2 It gives access to using databases and such, and it worked pre 1.3
  2. Again, this is nothing like cracked, you still need a minecraft username and password to login to minecraft to get a lastlogin file, which this would only set the username to your lastlogin IF your playing without a internet connection, not in offline mode. locking this thread so it doesnt turn into flame.
  3. How is this just like cracked? you still need a username and password to login to minecraft, this is just when you try to play minecraft without a internet connection
  4. This is a pretty silly request, but some of the big forge mods like EE2 use the players username for saving stuff, and if your offline it uses a random username, and I have already fixed this, but I am asking if Forge can detect if the game is playing in offline, and if so, set net.minecraft.client.Minecraft.session.username to the first UTF in the .minecraft/lastlogin file, so when your playing offline, you would stille have your username. Its pretty easy to implement, but im not posting code because the lastlogin file uses a Cipher (assuming a cipher is a encrytion.. lol) Edit: code with cipher removed @Override public void load() { File file = new File(Minecraft.getAppDir("minecraft"), "lastlogin"); if(file.exists() && isOffline()) { try { CipherInputStream cipherStream = new CipherInputStream(new FileInputStream(file), getCipher(2, "passwordfile")); DataInputStream stream = new DataInputStream(cipherStream); String username = stream.readUTF(); System.out.println("Setting offline username as " + username + "."); ModLoader.getMinecraftInstance().session.username = username; } catch(Exception e) { e.printStackTrace(); } } } /** * Copied directly from Minecraft.exe to get access to the lastligin files because it uses a cipher. * * @param mode * @param password * @return * @throws Exception */ private Cipher getCipher(int mode, String password) { //removed for various reasons return null; } public static boolean isOffline() { try { URL var1 = new URL("http://s3.amazonaws.com/MinecraftResources/"); DocumentBuilderFactory var2 = DocumentBuilderFactory.newInstance(); DocumentBuilder var3 = var2.newDocumentBuilder(); Document var4 = var3.parse(var1.openStream()); return false; } catch(Exception e) { return true; } } It is possibly to do in a simple mod_ file, but it would be more effective if it is ran before mods are initialized.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.