Advertisement
Guest User

Untitled

a guest
May 25th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. @EventHandler
  2. public void onPlayerJoin(PlayerJoinEvent e) {
  3. if(getConfig().getBoolean("update-available-message", true)) {
  4. Player p = e.getPlayer();
  5. if (p.hasPermission("rainbowarmour.update") && this.update) {
  6. String prefix = ChatColor.WHITE + "[" + ChatColor.GREEN + "EZCommands" + ChatColor.WHITE + "]";
  7. p.sendMessage(prefix + ChatColor.RED + "An update is available for EZCommands!");
  8. }
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement