@EventHandler
	public void onChat(AsyncPlayerChatEvent event) {
		Player player = (Player) event.getPlayer();
			
			double uppercharacters = 0.0D;
			double totalcharacters = 0.0D;
			double percentage = 0.0D;
			String msg = event.getMessage().replaceAll(" ", "");
			for(int i = 0; i < msg.length(); i++) {
				if(Character.isUpperCase(msg.charAt(i))) {
					uppercharacters++;
					totalcharacters++;
				}
				if(Character.isLowerCase(msg.charAt(i))) {
					totalcharacters++;
				}
			}
			
			percentage = uppercharacters / totalcharacters;
			percentage *= 100D;
			if(CapsPercent() == 0) {
				return;
			}
			if(player.hasPermission("NE.bypasscaps") || player.isOp() || percentage <= CapsPercent()) {
				return;
			} else {
				event.setMessage(event.getMessage().toLowerCase());
			}
	}