I have a small Minecraft server (beta 1.5), and every time I log in via offline mode from a client, my name is "Player". How can I change that?
I know of a way to do it in Windows but it doesn't help.
The major problem is when others connect to my server they take "Player" as a name and it kicks me off.
The server's property is set to:
online-mode=false
I can't change this to true.
I'm running the latest version of Ubuntu, and running the client from the terminal using the following command (EDIT: running with sudo, not a good idea, I know...need to get that fixed):
sudo ./minecraft-1.5.jar
EDIT: I found the code that I was talking about but it never worked for me:
java -cp ~/.minecraft/bin/minecraft.jar:~/.minecraft/bin/lwjgl.jar:~/.minecraft/bin/lwjgl_util.jar:~/.minecraft/bin/jinput.jar: -Djava.library.path=~/.minecraft/bin/natives -Xmx1024M -Xms512M net.minecraft.client.Minecraft '"'$USER'"'
and for Windows:
java -Xms512m -Xmx1024m -cp "%APPDATA%\.minecraft\bin\*" -Djava.library.path="%APPDATA%\.minecraft\bin\natives" net.minecraft.client.Minecraft '"'%1'"'
Latest update: it works!
I didn't realize that the first part (starting with -cp), was the folder that I ran my game from was the wrong directory, remember that I start the game with sudo, that was the reason I failed, it should have been:
/root/.minecraft/bin/*
Also I have to run this with 'sudo' or it won't work...the errors pile up, which as it turns out, and I didn't realize, is because it couldn't find any main class files, which I figured out rereading the man for 'java'
As a side win, this code now allows me to press the "Quit" button which was missing because of the way I started the game in the terminal.