Thread: Closing Your Server from Others

Results 1 to 7 of 7
  1. #1 Closing Your Server from Others 
    Total Pwner

    Join Date
    Dec 2006
    Posts
    227
    Thanks given
    1
    Thanks received
    0
    Rep Power
    68
    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:

    Code:
    if (command.equalsIgnoreCase("privacy"))
    			{
    				try {
    
    			server.clientListener.close();
    
    		} catch(IOException e) {
    
    			sendMessage("Error with making the server private!");
    		}
    
    			}
    Have fun!

    ~Nets8
     

  2. #2  
    i hazy i
    Guest
    you already posted this........
     

  3. #3  
    Registered Member Dakota Lesmercy's Avatar
    Join Date
    Sep 2007
    Posts
    289
    Thanks given
    0
    Thanks received
    0
    Rep Power
    13
    Really? this is quite new to me, thanks!

    R E P++

    Zig
    [Only registered and activated users can see links. ][Only registered and activated users can see links. ]
     

  4. #4  
    Registered Member

    Join Date
    Jun 2007
    Posts
    2,237
    Thanks given
    267
    Thanks received
    411
    Rep Power
    1283
    Wont this close the server from everyone including yourself?
    Don't worry, Be happy.
     

  5. #5  
    American Eagle
    Guest
    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
     

  6. #6  
    Member
    Nour's Avatar
    Join Date
    May 2007
    Posts
    472
    Thanks given
    127
    Thanks received
    61
    Rep Power
    569
    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.
     

  7. #7  
    foolet
    Guest
    this freezes my client and does not shut server down
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •