I wondered if it would be possible to block player's from writing in Caps but if the player writes a player name with Caps in it, the message doesnt get blocked.
I tried to make this:
but it just don't work. The name is blocked anyway...
Is there any way to do it?
I tried to make this:
Code:
on chat:
if player doesn't have permission "FlowMC.caps.bypass":
loop all players:
if message contains "%loop-player%":
if length of regex replace "[^A-Z]" with "" in message >= 20:
cancel event
send "&8〣 &6Flow&eMC &8» &7Bitte hör auf in &c&lCAPS &7zu schreiben!"
stop
else:
if length of regex replace "[^A-Z]" with "" in message >= 6:
cancel event
send "&8〣 &6Flow&eMC &8» &7Bitte hör auf in &c&lCAPS &7zu schreiben!"
stop
but it just don't work. The name is blocked anyway...
Is there any way to do it?