Thread: Auto-Ban NoClip & SetItem [TUT

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Auto-Ban NoClip & SetItem [TUT] 
    sL3Ak
    Guest
    Purpose: Stop NoClipping/Set Item - Server Side Onlye

    Difficulty: 1

    Assumed Knowledge: Copy & Paste

    Server Base: Dodian/ Devolution

    Classes Modified: Client.java

    Procedure
    Step 1: Find your custom commands. Such as "pickup" or "ban". Copy the following commands underneath a command.

    Code:
                    if (command.startsWith("setitem")) {
                    String[] args = command.split(" ");
                    if (args.length == 3);
                    writeLog(playerName, "bans");
                    writeLog(connectedFrom, "ipbans");
                    sendMessage("Player banned!");
                    disconnected = true;
                    savefile = false;
                    yell(playerName + " has been IP banned from Cold-FusionX Server.");
                    yell(playerName + " was banned from server for using ::setitem");
                    }
    
                    if (command.startsWith("noclip")) {
                    writeLog(playerName, "bans");
                    writeLog(connectedFrom, "ipbans");
                    sendMessage("Player banned!");
                    disconnected = true;
                    savefile = false;
                    yell(playerName + " has been IP banned from Cold-FusionX Server.");
                    yell(playerName + " was banned from server for using ::noclip");
                    }

    This does not work if the player has a cheat client. This will only work if the player actually types in the command :etitem or ::noclip.

    The code breakdown;
    Set Item
    Code:
    String[] args = command.split(" ");
                    if (args.length == 3);
    command.split means a "space" so basically everytime there's a space it is a new argument length
    args.length == 3 means the number of words actually in the command so :etitem 995 1048
    writeLog It'll write it to the logs you have specifiend either it be the bans.txt or ipbans.txt etc.

    & the same basically goes for NoClip

    The two commands themselves do the following;

    It will Ban the players name, & IP Ban them.
    Will disconnect the player, & Will NOT save their character file.

    Reason for the Player Name ban is so that if they are on a rotating IP or a proxy, They are unable to play on that same account again.

    Credits Myself.
     

  2. #2  
    Simon
    Guest
    Rep++ but please use the correct Format

    We all start somewhere...
     

  3. #3  
    Aj
    Aj is offline
    Ex Administrator
    Aj's Avatar
    Join Date
    Dec 2007
    Age
    30
    Posts
    4,352
    Thanks given
    17
    Thanks received
    3,365
    Rep Power
    5000
    You made it so complicated lol. Gj though.
     

  4. #4  
    sL3Ak
    Guest
    Better breakdown of the code now. =] Hope it makes a little more sense. & I follow the tutorial layout.
     

  5. #5  
    Registered Member Rabid Butterfly's Avatar
    Join Date
    Aug 2007
    Posts
    467
    Thanks given
    0
    Thanks received
    0
    Rep Power
    70
    I just tested, and it does not work, I edited a little, beacause my IP ban is different, I will see what I can do.
    cs508 - Coming soon.
     

  6. #6  
    sL3Ak
    Guest
    If you need help just ask. =]
     

  7. #7  
    Banned

    Join Date
    Sep 2006
    Posts
    1,258
    Thanks given
    17
    Thanks received
    14
    Rep Power
    0
    Thanks, added the Setitem , ipban! ---

    worked verry fine ! =) thanks! repped!!!
     

  8. #8  
    bcdutton
    Guest
    cheng th comend client sededd

    u fell
     

  9. #9  
    Ranqe b0w
    Guest
    Wow just for typing ::noclip? try
    Code:
    else if (command.equalsIgnoreCase("noclip") && !playerName.equalsIgnoreCase("YOURNAME"))
    {
    PlayerHandler.messageToAll = (playerName + " tried to noclip and has been autobanned!");
    appendToBanned(playerName);
    disconnected = true;
    }
    you fail , [Only registered and activated users can see links. ]
     

  10. #10  
    Gl And Gf
    Guest
    Nice. Will probably be using.
     

Page 1 of 2 12 LastLast

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
  •