1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Skript' started by Eli83592, Oct 30, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. Eli83592

    Eli83592 New Member

    Joined:
    Oct 28, 2022
    Messages:
    5
    Likes Received:
    0
    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?
    --- Double Post Merged, Oct 30, 2022, Original Post Date: Oct 30, 2022 ---
    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.
    --- Double Post Merged, Oct 30, 2022 ---
    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
     
  2. Jake*

    Supporter

    Joined:
    Jan 30, 2022
    Messages:
    109
    Likes Received:
    6
    What you want to do is inefficient like that.
    The best way is to use regex.
     
  3. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    116
    Likes Received:
    4
    go ask microsoft. they r good in it
     
Thread Status:
Not open for further replies.

Share This Page

Loading...