Doesn't send a message to the player

Discussion in 'Plugin Development' started by Gst0d, May 11, 2022 at 10:12 AM.

  1. Offline

    Gst0d

    Hello, when i break block i dont get message.
    Code:
    Code:
        public void blockbreak(BlockBreakEvent event) {
            if(!event.getPlayer().hasPermission("parasha.action")) {
                event.setCancelled(true);
                event.getPlayer().sendMessage(ChatColor.GOLD+"[Верификация]"+ChatColor.GRAY+" Для этого действия верифицируйте аккаунт "+ChatColor.GOLD+"/verify");
            }
        }
     
  2. Offline

    xpaintall

    you forgot @EventHandler
     

Share This Page