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!

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

Help with a ban random player online (not staff) on place of a bedrock named &#007585BanRock

Discussion in 'Requests' started by viswa99, Feb 15, 2022.

  1. viswa99

    viswa99 Member

    Joined:
    Feb 15, 2022
    Messages:
    1
    Likes Received:
    0
    Suggested name:Banrock

    Spigot/Skript Version:

    What I want:
    so basically the server should ban a player thats online when a block named &#007585BanRock is placed it should not ban staff , op

    Ideas for commands:/banrock should give the ban rock!

    Ideas for permissions:emoji_astonished:p , staff

    When I'd like it by: in a hour please!

    --- Double Post Merged, Feb 15, 2022, Original Post Date: Feb 15, 2022 ---
    its op not the emoji
     
  2. timeis

    timeis Member

    Joined:
    May 19, 2021
    Messages:
    27
    Likes Received:
    1
    Code (Text):
    1. on place of bedrock:
    2.  if name of player's tool contains "BanRock":
    3.   loop all players:
    4.    if loop-player is not op:
    5.     ban loop-player
    6.     exit loop
    7.  
    8.  
    9. command /getbanrock:
    10.  trigger:
    11.   if player is op:
    12.    give bedrock named "&cBanRock" to player
     

Share This Page

Loading...