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

  • 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!

viswa99

Member
Feb 15, 2022
1
0
1
24
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!

[doublepost=1644931180,1644931146][/doublepost]its op not the emoji
 
Code:
on place of bedrock:
 if name of player's tool contains "BanRock":
  loop all players:
   if loop-player is not op:
    ban loop-player
    exit loop


command /getbanrock:
 trigger:
  if player is op:
   give bedrock named "&cBanRock" to player