public String Capslock(Player player, String message) {
		int countChars = 0;
		int countCharsCaps = 0;

		if (!player.hasPermission("warhub.moderator")) {
			countChars = message.length();
			if ((countChars > 0) && (countChars > 8)) {
				for (int i = 0; i < countChars; i++) {
					char c = message.charAt(i);
					String ch = Character.toString(c);
					if (ch.matches("[A-Z!?]")) {
						countCharsCaps++;
					}
				}
				if (100 / countChars * countCharsCaps >= 40) {
					// Message has too many capital letters
					message = message.toLowerCase();
					plugin.warnings.put(player.getName(),
							getWarnings(player) + 1);
					if (getWarnings(player) % 50 == 0) {
						plugin.getServer().dispatchCommand(
								plugin.getServer().getConsoleSender(),
								"kick " + player.getName()
										+ " Do not type in caps!");
						plugin.getServer().dispatchCommand(
								plugin.getServer().getConsoleSender(),
								"tempban " + player.getName() + " 20m");
					} else if (getWarnings(player) % 5 == 0) {
						plugin.getServer().dispatchCommand(
								plugin.getServer().getConsoleSender(),
								"kick " + player.getName()
										+ " Do not type in caps!");
					} else {
						player.sendMessage(ChatColor.YELLOW
								+ "Do not type in all caps please!");
						/*
						 * Removed this due to it being RLLY annoying
						sendToMods(ChatColor.DARK_RED + "[WHChat] "
								+ ChatColor.WHITE + player.getDisplayName()
								+ ChatColor.YELLOW + " all caps'd ["
								+ getWarnings(player) + " Violations]");
								*/
					}
				}
			}

		}
		return message;
	}