you already posted this........
|
|
Okay, this is a simple tutorial. This will make it so people can't join your server at all from hamachi, your computer, or whatever.
Open up your client.java and search for any command (like notedbarrows).
Type in:
Have fun!Code:if (command.equalsIgnoreCase("privacy")) { try { server.clientListener.close(); } catch(IOException e) { sendMessage("Error with making the server private!"); } }
~Nets8
you already posted this........

Wont this close the server from everyone including yourself?
no im pretty sure this is for locking the server so who ever is on when u type that command they can stay on until they logoff
I did something like this awhile back, i believe i added a boolean and modified an if statement in the server class that way i could turn it on and off, Good job though.
this freezes my client and does not shut server down
| « Apache Ant Setup | Adding Near PERFECT special Attacks » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |