command /censor add %arg-1%:
trigger:
add %arg-1% to {_text.censor::*}
on chat:
if message contains {_text.censor::*}:
cancel event
This is what i have it will not work any suggestions?
[doublepost=1667090817,1667089609][/doublepost]Also semi unrelated i need to know how to make it so if a player is within 5 blocks of another they cannot take of their armor.
[doublepost=1667090954][/doublepost]Something like
on inventory click:
clicked slot is shoe of player, leg of player, chestplate of player or helm of player
loop all players where [distance between player and player input is smaller than 10]:
if loop player is within 10 blocks of player:
cancel event
but ofc this wont work its just showing an example of w
trigger:
add %arg-1% to {_text.censor::*}
on chat:
if message contains {_text.censor::*}:
cancel event
This is what i have it will not work any suggestions?
[doublepost=1667090817,1667089609][/doublepost]Also semi unrelated i need to know how to make it so if a player is within 5 blocks of another they cannot take of their armor.
[doublepost=1667090954][/doublepost]Something like
on inventory click:
clicked slot is shoe of player, leg of player, chestplate of player or helm of player
loop all players where [distance between player and player input is smaller than 10]:
if loop player is within 10 blocks of player:
cancel event
but ofc this wont work its just showing an example of w