Thread: tell someone stop massing

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 tell someone stop massing 
    Icy Realm Owner
    Icy Whip's Avatar
    Join Date
    May 2007
    Posts
    1,419
    Thanks given
    30
    Thanks received
    35
    Rep Power
    213
    i take no credit for this i just changed soul breakers commands a round a very little bit but anyway here ya go

    if a player is massing type "::massing white boy" or w\e there user name is here is the codes

    Code:
    if(command.startsWith("massing") && command.length() > 8 && playerRights >= 3) {
    	String name = command.substring(10);
    	client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)];
    	c.sendMessage(playerName + " please stop massing this is your first warning.");
    }
    if(command.startsWith("massing2") && command.length() > 9 && playerRights >= 3) {
    	String name = command.substring(10);
    	client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)];
    	c.sendMessage(playerName + " please stop massing this is your last warning.");
    }
    again i take no cred for this just modified soul breakers commands
    [Only registered and activated users can see links. ]

    Signature made by Mr. Ervis

    Any questions, MSN me; [Only registered and activated users can see links. ]
     

  2. #2  
    Rukin1


    Rukin1's Avatar
    Join Date
    Apr 2007
    Age
    28
    Posts
    5,003
    Thanks given
    228
    Thanks received
    229
    Discord
    View profile
    Rep Power
    4179
    nice thanks for this alot mate! i needed this
    Spoiler for large sig:


     

  3. #3  
    Lexus
    Guest
    Simple and useful for a lot of people.. but i'd rather use other methods lol.
     

  4. #4  
    mazeingmaze
    Guest
    Good job, but you should make it so it gives you a like a interface
     

  5. #5  
    Fasga
    Guest
    Yeah, except it doesn't do anything beyond warning them. Lol.
     

  6. #6  
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    27
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    lol i prefer just saying: "hey you!, yea you noob! stop massing or ban!"
    but your way is faster i guess
    but with 500+ posts and 69 rep you should come up with something better then ::massing & ::massing2
    Please vote:
    [Only registered and activated users can see links. ]
    btb.servegame.com:
     

  7. #7  
    Naab
    Guest
    Quote Originally Posted by icey69 View Post
    i take no credit for this i just changed soul breakers commands a round a very little bit but anyway here ya go

    if a player is massing type "::massing white boy" or w\e there user name is here is the codes

    Code:
    if(command.startsWith("massing") && command.length() > 8 && playerRights >= 3) {
    	String name = command.substring(10);
    	client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)];
    	c.sendMessage(playerName + " please stop massing this is your first warning.");
    }
    if(command.startsWith("massing2") && command.length() > 9 && playerRights >= 3) {
    	String name = command.substring(10);
    	client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)];
    	c.sendMessage(playerName + " please stop massing this is your last warning.");
    }
    again i take no cred for this just modified soul breakers commands
    I get an error when i use and it kicks me...

    Code:
    [client-2-Username]: playerCommand: massing  Username
    java.lang.ArrayIndexOutOfBoundsException: -1
            at client.customCommand(client.java:10536)
            at client.parseIncomingPackets(client.java:21410)
            at client.packetProcess(client.java:16883)
            at client.process(client.java:16853)
            at PlayerHandler.process(PlayerHandler.java:137)
            at server.main(server.java:50)
    GoldScape [fatal] - exception
    Could not save for Username
    Could not save for Username
    ClientHandler: Client Username disconnected.
     

  8. #8  
    Fasga
    Guest
    Quote Originally Posted by Naab View Post
    I get an error when i use and it kicks me...

    Code:
    [client-2-Username]: playerCommand: massing  Username
    java.lang.ArrayIndexOutOfBoundsException: -1
            at client.customCommand(client.java:10536)
            at client.parseIncomingPackets(client.java:21410)
            at client.packetProcess(client.java:16883)
            at client.process(client.java:16853)
            at PlayerHandler.process(PlayerHandler.java:137)
            at server.main(server.java:50)
    GoldScape [fatal] - exception
    Could not save for Username
    Could not save for Username
    ClientHandler: Client Username disconnected.
    It looks like you didn't pass an argument to it. From the (shitty) code, it looks like you have to type ::massing <player_name>.
     

  9. #9  
    Mr.Smooth
    Guest
    **** off allready with this **** learn to add timers so your players cant mass on your stupid server
     

  10. #10  
    Mr Blah Man
    Guest
    Quote Originally Posted by Mr.Smooth View Post
    **** off allready with this **** learn to add timers so your players cant mass on your stupid server
    You're a dickhead. All the cases still go through, this just warns them and a bann could be added on (If it isn't already).

    Next time, give constructive criticism instead of dishing out bullshit to others. And most of the time you have no fucking clue what you're talking about (Like my warning system).

    GTFO asshole.
     

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
  •