op's and groups

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

    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.

KawaiiKitsune

Member
Aug 19, 2018
14
1
0
Hey

i have a question there a way that only op players or players in a group can execute a command

thanks in advanced





code_language.skript:
on sneak toggle:
  player is not sneaking:
    hide player from all players
    set {DoMoreDamage::%player%} to true
    stop
  reveal player to all players
  clear {DoMoreDamage::%player%}
 
on damage:
  {DoMoreDamage::%attacker%} is true:
    damage victim by 2 hearts
 
Yes, you can check if a player is op (Entity)
you can also check their group (Im giving a link to my docs, since Bensku's docs are currently missing vault hooks)
Group
 
Status
Not open for further replies.