Solved I am trying to make a censor skript of my own

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Eli83592

Member
Oct 28, 2022
12
1
3
23
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
 
Status
Not open for further replies.