Package uk.co.jacekk.bukkit.simpleirc

Examples of uk.co.jacekk.bukkit.simpleirc.RemotePlayerChatEvent


      this.commandSender.setMessageTarget(event.getChannel().getName());
      this.commandSender.setName(playerName);
     
      plugin.server.dispatchCommand(this.commandSender, command);
    }else{
      RemotePlayerChatEvent chatEvent = new RemotePlayerChatEvent(playerName, message, new HashSet<Player>(Arrays.asList(plugin.server.getOnlinePlayers())));
     
      plugin.pluginManager.callEvent(chatEvent);
     
      if (!chatEvent.isCancelled()){
        String chatMessage = String.format(chatEvent.getFormat(), playerName, ChatColorHelper.convertIRCtoMC(message));
       
        for (Player recipient : chatEvent.getRecipients()){
          recipient.sendMessage(chatMessage);
        }
       
        plugin.server.getConsoleSender().sendMessage(chatMessage);
      }
View Full Code Here

TOP

Related Classes of uk.co.jacekk.bukkit.simpleirc.RemotePlayerChatEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.