ChatEvent Help!

Discussion in 'BungeeCord Plugin Development' started by LazyDev, May 14, 2016.

  1. if p.hasPermission("ChatBungee") this msg will sent to all the servers in the proxy

    Code (Text):
      @EventHandler
      public void onChatTest(ChatEvent e)
      {
            ProxiedPlayer p = (ProxiedPlayer)e.getSender();
       
            String m = e.getMessage();
          if (p.hasPermission("ChatBungee"))
          {
            e.setCancelled(true);
            getProxy().broadcast("§8┃ §eBungee §8┃ §e" + p.getName() + " §8» §6" + m);
          }
      }
     
  2. What are you asking of here? You can't just say something and expect to be given answers straight away...
     
  3. Yes


    Sent from my iPhone using Tapatalk
     
  4. Well I guess they don't call you "LazyDev" for no reason.
     
    • Agree Agree x 2
  5. LOL totally agreed!