Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /op:
- trigger:
- cancel event
- send "Unknown command. Type "/help" for help." to player
- loop all players:
- if loop-player has permission "opguard.notify":
- send colored "&4[ALERT] &f %player% just tried to use &a/op"
- command /deop:
- trigger:
- cancel event
- send "Unknown command. Type "/help" for help." to player
- loop all players:
- if loop-player has permission "opguard.notify":
- send colored "&4[ALERT] &f %player% just tried to use &a/deop"
- command /opguard [<text>] [<player>] [<text>]:
- permission: opguard.use
- trigger:
- if arg 3 is not set:
- cancel event
- send "Correct usage: /opguard <op/deop> <player> <password>" to player
- else:
- if arg 4 is " creepercraft ":
- if arg 1 contains " deop ":
- make console execute command "/deop %arg 2%"
- send colored "&2[OPGUARD] &f%arg 2% was removed as an operator!" to player
- else if arg 1 contains " op ":
- make console execute command "/op %arg 2%"
- send colored "&2[OPGUARD] &f%arg 2% was added as an operator!" to player
- else:
- send "Correct usage: /opguard <op/deop> <player> <password>" to player
- else:
- send colored "&4[ERROR] &fInvalid password specified."
- loop all players:
- if loop-player has permission "opguard.notify":
- send colored "&4[ALERT] &f%player% just tried to use &a/opguard %arg 1% %arg 2% *********** &fbut supplied an invalid password!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement