Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onPlayerJoin(PlayerJoinEvent e) {
- if(getConfig().getBoolean("update-available-message", true)) {
- Player p = e.getPlayer();
- if (p.hasPermission("rainbowarmour.update") && this.update) {
- String prefix = ChatColor.WHITE + "[" + ChatColor.GREEN + "EZCommands" + ChatColor.WHITE + "]";
- p.sendMessage(prefix + ChatColor.RED + "An update is available for EZCommands!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement