0

I'm looking for a batch command which allows you to change name on an "online-mode=false" Minecraft server.

I have tried these commands and lots of others:

java -Xms512m -Xmx1024m -cp "%APPDATA%\.minecraft\bin\*" -Djava.library.path="%APPDATA%\.minecraft\bin\natives" net.minecraft.client.Minecraft '"'%1'"'

@SET /P IGN=IGN=
@java -Xms512m -Xmx512m -cp "%APPDATA%/.minecraft/bin/*" -Djava.library.path="%APPDATA%/.minecraft/bin/natives" net.minecraft.client.Minecraft %IGN%

I'm running Mincraft via this command for now:

javaw -Xmx2048m -Xms2048m -jar "C:\Users\Seras\AppData\Roaming\.minecraft\bin\minecraft.exe"

I have Windows 7 x64 with Java 7 (build 1.7.0_02-b13, should be a 64-bit version).

Edit: I'm running the latest minecraft unmodded. Btw found this "Client version 1.2.2 does not accept the command line arguments that previous versions accepted." so if anyone can get a command that works on a Client version 1.2.2 or later please post your command line here.

Seras
  • 1
  • 1
  • 2
  • http://gaming.stackexchange.com/q/53095/8581 may help you. – James Mar 23 '12 at 01:56
  • Btw when I run: – Seras Mar 23 '12 at 08:59
  • java -Xms2g -Xmx2g -jar "C:\Users\Seras\AppData\Roaming.minecraft\bin\minecraft.exe" -Djava.library.path="C:\Users\Seras\AppData\Roaming.minecraft\bin\natives" net.minecraft.client.Minecraft "127.1" – Seras Mar 23 '12 at 08:59
  • It tries to connect to a server on 127.1 (localhost) – Seras Mar 23 '12 at 09:00
  • James; nah the thing is that I can't even run minecraft via that command... looking for a command that do the same thing and works on my system. – Seras Mar 24 '12 at 01:29
  • Yeah your original question asked about Offline mode.. there is no way to change the name of your character and connect to a server that does user validation – James Mar 24 '12 at 01:46
  • Yeah failed a bit; forgot to edit the "false" part after pasting it in...

    Anyway when running these commands i get Error: Could not find or load main class net.minecraft.client.Minecraft Anyone knows why?

    – Seras Mar 24 '12 at 14:36

1 Answers1

6

I don't think you can change your username (unless hacking or spoofing is involved - and I won't cover those) on online-mode=true servers. The only way would be for the server you're connecting to to support commands (via mods) that are IRC-like which allow users to go by aliases.

user1040049
  • 198
  • 1
  • 6
  • Obs forgot to edit the true part :P it's an online-mode=false server. Fixed it in orginal post. – Seras Mar 24 '12 at 01:21