@Override
	public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
		if(sender instanceof Player) {
			UPlayer player = plugin.getPlayerManager().getUPlayer(sender.getName());
			if(player == null) return true;
			if(!StaffRank.isEqualOrGreater(player, StaffRank.HELPER) && player.getLastGlobalChat() + 5000 > DateUtil.now()) {
			    player.sendMessage("§4You must wait 5 seconds to chat in the global channel");
			    return true;
			}
			if(args.length == 0) {
				player.sendMessage("§6/g {message}");
				return true;
			}
			if(player.getMuteData().isMuted()) {
				player.sendMessage("§4You are muted!");
				return true;
			}
			StringBuilder sb = new StringBuilder();
			for(String s : args) {
				sb.append(s + " ");
			}
			String message = sb.toString().trim();
			plugin.getServerManager().globalBroadcast("§6[§5§lG§r§6] " + this.defaultChat.formatMessage(player, message), false);
			player.setLastGlobalChat(DateUtil.now());
		} else {
			if(args.length == 0) {
				sender.sendMessage("/g {message}");
				return true;
			}
			StringBuilder sb = new StringBuilder();
			for(String s : args) {
				sb.append(s + " ");
			}
			String message = sb.toString().trim();
			plugin.getServerManager().globalBroadcast(message, true);
		}
		return false;
	}