Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.sirapathy;
- import org.bukkit.event.EventHandler;
- import org.bukkit.event.Listener;
- import org.bukkit.event.player.AsyncPlayerChatEvent;
- public class ChatEvent implements Listener{
- @EventHandler
- public void onChat(AsyncPlayerChatEvent e)
- {
- int balance = Main.playerPoints.getAPI().look(e.getPlayer().getUniqueId());
- String playerGroup = Main.perms.getPrimaryGroup(e.getPlayer());
- String chatPrefix = Main.chat.getGroupPrefix(e.getPlayer().getWorld(), playerGroup);
- if (balance <= 100)
- {
- e.setFormat("[Explorer] " + chatPrefix + " " + e.getPlayer().getDisplayName() + " ยป " + e.getMessage());
- }
- }
- }
Add Comment
Please, Sign In to add comment