Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- loop all players:
- if loop-player has permission "staff":
- send "" to loop-player
- send "&6&lEssentials &7Reloaded by %{essentials::reloaded}%&7." to loop-player
- send "" to loop-player
- command /essentials [<text>]:
- permission: staff.staff
- permission message: &cSorry! But you cannot do this.
- trigger:
- if arg-1 is not set:
- send "&c/essentials <reload, debug>"
- if arg-1 is "reload":
- make console execute command "/essentialsrld"
- if arg-1 is "debug":
- send "&cError: OVH6782"
- wait 1 second
- send "&cError contacting database."
- command /essentialsrld:
- permission: staff.staff
- permission message: &cSorry! But you cannot do this.
- trigger:
- if executor is a player:
- stop
- send "&cYou cannot run this command!"
- if executor is console:
- set {essentials::reloaded} to "&7%player%"
- make console execute command "/sk reload essentials"
- command /fly:
- permission: staff.staff
- permission message: &cSorry! But you cannot do this.
- trigger:
- if {flymode::%uuid of player%} is not set:
- set {flymode::%uuid of player%} to false
- if {flymode::%uuid of player%} is false:
- set player's flight mode to true
- send "&7(&b!&7) &3Successfully toggled flight mode to &btrue"
- play sound "entity.arrow.hit_player" to player
- set {flymode::%uuid of player%} to true
- stop
- if {flymode::%uuid of player%} is true:
- set player's flight mode to false
- send "&7(&b!&7) &3Successfully toggled flight mode to &bfalse"
- play sound "entity.arrow.hit_player" to player
- set {flymode::%uuid of player%} to false
- stop
- command /gmt [<offline player>]:
- permission: staff.staff
- permission message: &cSorry! But you cannot do this.
- trigger:
- if arg-1 is not set:
- if {gmc::%uuid of player%} is not set:
- set {gmc::%uuid of player%} to false
- if {gmc::%uuid of player%} is false:
- set player's gamemode to creative
- play sound "entity.arrow.hit_player" to player
- send "&7(&b!&7) &3Gamemode set to creative mode"
- set {gmc::%uuid of player%} to true
- stop
- if {gmc::%uuid of player%} is true:
- set player's gamemode to survival
- play sound "entity.arrow.hit_player" to player
- send "&7(&b!&7) &3Gamemode set to survival mode"
- set {gmc::%uuid of player%} to false
- stop
- if arg-1 is set:
- if {gmc::%uuid of arg-1%} is not set:
- set {gmc::%uuid of arg-1%} to false
- if {gmc::%uuid of arg-1%} is false:
- set arg 1's gamemode to creative
- play sound "entity.arrow.hit_player" to arg-1
- send "&7(&b!&7) &3Gamemode set to creative mode" to arg-1
- send "&7(&b!&7) &3Gamemode set to creative mode for &b%arg-1%"
- set {gmc::%uuid of arg-1%} to true
- stop
- if {gmc::%uuid of arg-1%} is true:
- set arg 1's gamemode to survival
- play sound "entity.arrow.hit_player" to arg 1
- send "&7(&b!&7) &3Gamemode set to survival mode" to arg-1
- send "&7(&b!&7) &3Gamemode set to survival mode for &b%arg-1%"
- set {gmc::%uuid of arg-1%} to false
- stop
- command /tp [<player>] [<player>]:
- permission: staff.staff
- permission message: &cSorry! But you cannot do this.
- trigger:
- if arg-1 is not set:
- send "&c/tp (player) OPTIONAL:(player)"
- if arg-1 is set:
- if arg-2 is not set:
- teleport player to arg 1
- send "&7(&b!&7) &3Teleported to &b%arg-1%"
- play sound "entity.arrow.hit_player" to player
- if arg-2 is set:
- teleport arg 1 to arg 2
- send "&7(&b!&7) &3Teleported &b%arg-1% &3to &b%arg-2%"
- play sound "entity.arrow.hit_player" to player
- command /setspawn:
- permission: staff.staff
- permission message: &cSorry! But you cannot do this.
- trigger:
- set {worldspawn} to location of player
- send "&7(&b!&7) &3Set the spawn point of group &bdefault &3to location of &b%player%"
- play sound "entity.arrow.hit_player" to player
- command /spawn:
- trigger:
- teleport player to {worldspawn}
- send "&7(&b!&7) &3Teleported to spawn"
- command /god:
- permission: staff.staff
- permission message: &cSorry! But you cannot do this.
- trigger:
- if {godmode::%uuid of player%} is not set:
- set {godmode::%uuid of player%} to false
- if {godmode::%uuid of player%} is false:
- send "&7(&b!&7) &3Enabled god mode for &b%player%"
- play sound "entity.arrow.hit_player" to player
- set {godmode::%uuid of player%} to true
- stop
- if {godmode::%uuid of player%} is true:
- send "&7(&b!&7) &3Disabled god mode for &b%player%"
- play sound "entity.arrow.hit_player" to player
- set {godmode::%uuid of player%} to false
- stop
- on damage:
- attacker is an entity
- victim is an entity
- if {godmode::%uuid of victim%} is true:
- cancel event
- else:
- stop
- on command:
- if player is op:
- set {executedcommand} to "&7%player%"
- loop all players:
- if loop-player is op:
- send "&7(&b!&7) &b%{executedcommand}% &7ran the command &3%command%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement