Thread: ::mute ::ipmute announced to server

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 ::mute ::ipmute announced to server 
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    Dealt with.

    -Thanks R-S
    Reply With Quote  
     

  2. #2  
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    Bump
    Reply With Quote  
     

  3. #3  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    Code:
    public void globalMessage(String s) {
    for (Player p : PlayerHandler.players) {
    if (p != null) {
        Client c = (Client)p;
        c.sendmessage(s);
    }
    }
    }
    use that, ignore conventions i wrote in quick reply
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2011
    Posts
    198
    Thanks given
    15
    Thanks received
    5
    Rep Power
    12
    Im stupid
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    May 2011
    Posts
    1,010
    Thanks given
    78
    Thanks received
    64
    Rep Power
    0
    Quote Originally Posted by furls View Post
    I would try something like
    Code:
    			if (playerCommand.startsWith("ipmute")) {
    				try {	
    					String playerToBan = playerCommand.substring(7);
    					for(int i = 0; i < Config.MAX_PLAYERS; i++) {
    						if(Server.playerHandler.players[i] != null) {
    							if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToBan)) {
    								Connection.addIpToMuteList(Server.playerHandler.players[i].connectedFrom);
    								c.sendMessage("You have IP Muted the user: "+Server.playerHandler.players[i].playerName);
    								Client c2 = (Client)Server.playerHandler.players[i];
    								c2.sendMessage("You have been muted by: " + c.playerName);
    								c2.sendMessage(" " +c2.playerName+ " Got IpMuted By " + c.playerName+ ".");
    								break;
    							} 
    						}
    					}
    				} catch(Exception e) {
    					c.sendMessage("Player Must Be Offline.");
    				}	
    				}
    Or maybe add something like
    Code:
    System.out.println("" + c.playerName + " Has IP Muted " + c.playerName + ".");
    Type of thing.
    wtf?
    Code:
    System.out.println("" + c.playerName + " Has IP Muted " + c.playerName + ".");
    lol he doesnt want it to show in the cmd? lmao
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jul 2011
    Posts
    198
    Thanks given
    15
    Thanks received
    5
    Rep Power
    12
    Quote Originally Posted by yonacool View Post
    wtf?
    Code:
    System.out.println("" + c.playerName + " Has IP Muted " + c.playerName + ".");
    lol he doesnt want it to show in the cmd? lmao
    Read it wrong. Removed my post. Now i must go die por que i fucked up
    Reply With Quote  
     

  7. #7  
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    None of these work, can someone please make a ::mute ::ipmute command that shows to the whole server who got muted or who muted who.
    Reply With Quote  
     

  8. #8  
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    Bumpppppppppppppnezz
    Reply With Quote  
     

  9. #9  
    Why you reading this?

    LoveandPower's Avatar
    Join Date
    Sep 2010
    Posts
    2,166
    Thanks given
    907
    Thanks received
    288
    Rep Power
    390
    isn't there something like c2.sendMessage?
    Spoiler for sig too large:


    Reply With Quote  
     

  10. #10  
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    Quote Originally Posted by Loveandpower View Post
    isn't there something like c2.sendMessage?
    That sends to the chatbox of the persons client not the WHOLE server.
    Reply With Quote  
     

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

Similar Threads

  1. ::mute ::ipmute announced to server
    By Mgt Madness in forum Help
    Replies: 4
    Last Post: 11-25-2011, 11:05 PM
  2. Replies: 7
    Last Post: 06-13-2011, 10:19 PM
  3. [PI] Mute & IPmute
    By MoonlightScape in forum Help
    Replies: 6
    Last Post: 03-07-2011, 11:09 PM
  4. 100% working Ban/Ipban/Ipmute/Mute 525+
    By Flaky in forum Tutorials
    Replies: 8
    Last Post: 03-21-2010, 11:35 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •