Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on chat:
- cancel event
- set tab list name of player to "%{rank.%player's uuid%}%%player%"
- broadcast "%{rank.%player's uuid%}%%player% &8» &r%message%"
- command /¶rank [<offline player>] [<text>]:
- permission: air.rank
- trigger:
- if arg-1 isn't set:
- message "&cIncorrect usage."
- if arg-1 is set:
- if arg-2 is "admin":
- if player has permission "server.rank":
- set {rank.%arg-1's uuid%} to "&8[&cAdmin&8] &c"
- set {shortrank.%arg-1's uuid%} to "&rAdministrator"
- set tab list name of arg 1 to "&8[&cAdmin&8] &c%player%"
- send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bAdmin &eprevious rank removed."
- send "&eYour server rank has been set to &bAdmin&e!" to arg 1
- if player doesn't have permission "server.manager":
- send "&cYou're not allowed to execute this command!"
- if arg-2 is "owner":
- if player has permission "server.rank":
- set {rank.%arg-1's uuid%} to "&8[&4Owner&8] &4"
- set {shortrank.%arg-1's uuid%} to "&rOwner"
- set tab list name of arg 1 to "&8[&4Owner&8] &4%player%"
- send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bOwner &eprevious rank removed."
- send "&eYour server rank has been set to &bOwner&e!" to arg 1
- if player doesn't have permission "server.manager":
- send "&cYou're not allowed to execute this command!"
- if arg-2 is "mod":
- if player has permission "server.rank":
- set {rank.%arg-1's uuid%} to "&8[&5Mod&8] &5"
- set {shortrank.%arg-1's uuid%} to "&rMod"
- set tab list name of arg 1 to "&8[&5Mod&8] &5%player%"
- send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bMod &eprevious rank removed."
- send "&eYour server rank has been set to &bMod&e!" to arg 1
- if player doesn't have permission "server.manager":
- send "&cYou're not allowed to execute this command!"
- if arg-2 is "manager":
- if player has permission "server.rank":
- set {rank.%arg-1's uuid%} to "&8[&bManager&8] &b"
- set {shortrank.%arg-1's uuid%} to "&rManager"
- set tab list name of arg 1 to "&8[&bManager&8] &b%player%"
- send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bManager&eprevious rank removed."
- send "&eYour server rank has been set to &bManager&e!" to arg 1
- if player doesn't have permission "server.manager":
- send "&cYou're not allowed to execute this command!"
- if arg-2 is "user":
- if player has permission "server.rank":
- set {rank.%arg-1's uuid%} to "&7"
- set {shortrank.%arg-1's uuid%} to "&rUser"
- set tab list name of arg 1 to "&7%player%"
- send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bUser &eprevious rank removed."
- send "&eYour server rank has been set to &bUser&e!" to arg 1
- if player doesn't have permission "server.manager":
- send "&cYou're not allowed to execute this command!"
- if arg-2 is "tmod":
- if player has permission "server.rank":
- set {rank.%arg-1's uuid%} to "&8[&dTrial Mod&8] &d"
- set {shortrank.%arg-1's uuid%} to "&rTrial Mod"
- set tab list name of arg 1 to "&8[&dTrial Mod&8] &d%player%"
- send "&eSuccessfully updated &b%arg-1%'s &euser rank to &bTrial Moderator &eprevious rank removed."
- send "&eYour server rank has been set to &bTrial Moderator&e!" to arg 1
- if player doesn't have permission "server.manager":
- send "&cYou're not allowed to execute this command!"
- on first join:
- set {rank.%player's uuid%} to "&7"
- set {shortrank.%player's uuid%} to "&rUser"
- command /rank [<offline player>]:
- permission: air.rank
- permission message: &cYou do not have the required permissions to execute this command.
- trigger:
- if arg-1 is not set:
- send "&cIncorrect usage format, /rank <player>"
- else if arg-1 is set:
- open chest with 5 rows named "&8Rank Selection &8(&n%arg-1%)" to player
- format slot 4 of player with arg-1's skull named "&bModifying %arg-1%" with lore "||&rIn this GUI you can modify||&r%arg-1%'s rank.||||&bCurrent Rank||&r &r● &r%{shortrank.%arg-1's uuid%}%" to be unstealable
- format slot 22 of player with paper named "&bRanks" to be unstealable
- format slot 29 of player with book named "&4Owner" with lore "||&rClick to change %arg-1%'s rank||&rto owner." to close then run [make player execute "¶rank %arg-1% owner"]
- format slot 30 of player with book named "&bManager" with lore "||&rClick to change %arg-1%'s rank||&rto manager." to close then run [make player execute "¶rank %arg-1% manager"]
- format slot 31 of player with book named "&cAdmin" with lore "||&rClick to change %arg-1%'s rank||&rto administrator." to close then run [make player execute "¶rank %arg-1% admin"]
- format slot 32 of player with book named "&5Mod" with lore "||&rClick to change %arg-1%'s rank||&rto moderator." to close then run [make player execute "¶rank %arg-1% mod"]
- format slot 33 of player with book named "&dTrial Mod" with lore "||&rClick to change %arg-1%'s rank||&rto trial moderator." to close then run [make player execute "¶rank %arg-1% tmod"]
- format slot 40 of player with book named "&7User" with lore "||&rClick to change %arg-1%'s rank||&rto user." to close then run [make player execute "¶rank %arg-1% user"]
- #===========================================================================================================================
- command /location [<text>]:
- permission: air.location
- permission message: &cYou do not have the required permissions to execute this command.
- trigger:
- if arg-1 is set:
- if arg-1 is "ss" or "screenshare":
- set {screenshare} to location of player
- message "&eSuccessfully set the location of &6&lScreenshare &eto your location!" to player
- else if arg-1 is "hub" or "spawn":
- set {spawn} to location of player
- message "&eSuccessfully set the location of &6&lSpawn &eto your location!" to player
- command /ss [<player>]:
- description: Freeze the player and send them a request to join discord!
- permission: air.freeze
- permission message: &cYou do not have the required permissions to execute this command.
- executable by: players
- aliases: /ss, /screenshare, /freeze
- trigger:
- if arg 1 is not set:
- send "&cIncorrect usage format, /freeze <player>"
- if arg 1 is set:
- if {%arg-1%.ss} is true:
- teleport arg-1 to {spawn}
- send "&e%arg-1% &eis no longer frozen!" to player
- send "&eYou are no longer frozen!" to arg 1
- set {%arg-1%.ss} to false
- remove slowness from arg-1
- delete {_ss.coords.%arg-1%}
- stop trigger
- if {%arg-1%.ss} is not set:
- set {%arg-1%.ss} to true
- add 1 to {frozencounter.%arg-1%}
- teleport arg-1 to {screenshare}
- send "&aThis player has been frozen %{frozencounter.%arg-1%}% times."
- send "&a%arg-1% &ahas been frozen." to player
- send "&f█████████" to arg 1
- send "&f████&c█&f████" to arg 1
- send "&f███&c█&0█&c█&f███" to arg 1
- send "&f██&c█&6█&0█&6█&c█&f██" to arg 1
- send "&f██&c█&6█&0█&6█&c█&f██ &eYou have been frozen by a staff member." to arg 1
- send "&f██&c█&6█&0█&6█&c█&f██ &eIf you disconnect you will be &4&lBANNED&e." to arg 1
- send "&f█&c█&6█████&c█&f█ &ePlease connect to our Discord." to arg 1
- send "&c█&6███&0█&6███&c█ &7https://discord.gg/TZpBkkE" to arg 1
- send "&c█████████" to arg 1
- send "&f█████████" to arg 1
- apply slowness 999 to arg-1 for 1000 minutes
- set {_ss.coords.%arg-1%} to arg-1's location
- stop trigger
- if {%arg-1%.ss} is false:
- add 1 to {frozencounter.%arg-1%}
- teleport arg-1 to {screenshare}
- send "&aThis player has been frozen %{frozencounter.%arg-1%}% times."
- send "&a%arg-1% &ahas been frozen." to player
- send "&f█████████" to arg 1
- send "&f████&c█&f████" to arg 1
- send "&f███&c█&0█&c█&f███" to arg 1
- send "&f██&c█&6█&0█&6█&c█&f██" to arg 1
- send "&f██&c█&6█&0█&6█&c█&f██ &eYou have been frozen by a staff member." to arg 1
- send "&f██&c█&6█&0█&6█&c█&f██ &eIf you disconnect you will be &4&lBANNED&e." to arg 1
- send "&f█&c█&6█████&c█&f█ &ePlease connect to our Discord." to arg 1
- send "&c█&6███&0█&6███&c█ &7https://discord.gg/TZpBkkE" to arg 1
- send "&c█████████" to arg 1
- send "&f█████████" to arg 1
- set {%arg-1%.ss} to true
- apply slowness 999 to arg-1 for 1000 minutes
- set {_ss.coords.%arg-1%} to arg-1's location
- stop trigger
- command /staffmode:
- description: Change into a moderation based gamemode!
- permission: air.staffmode
- permission message: &cYou do not have the required permissions to execute this command.
- executable by: players
- aliases: /staffmode, /staff, /h
- trigger:
- if {staffmode.%player%} is not set:
- message "&eStaff mode preperation..."
- set {staffmode.%player%} to true
- message "&eStaff mode &6&lEnabled"
- hide the player from all players
- set gamemode of player to creative
- clear player's inventory
- apply slowness 555 to player for 0.7 seconds
- set slot 0 of player to a compass named "&ePush"
- wait 1 tick
- set slot 1 of player to a book named "&eInspect Inventory"
- wait 1 tick
- set slot 2 of player to a anvil named "&eFreeze"
- wait 1 tick
- set slot 3 of player to a orange carpet named "&e"
- wait 1 tick
- set slot 7 of player to a head named "&eStaff List"
- wait 1 tick
- set slot 8 of player to a gray dye named "&eVisibility"
- else if {staffmode.%player%} is set:
- delete {staffmode.%player%}
- message "&eStaff mode &6&lDisabled"
- apply slowness 555 to player for 0.7 seconds
- reveal player to all players
- set gamemode of player to survival
- clear player's inventory
- on join:
- wait 5 ticks
- make player execute "spawn"
- on join:
- if player has permission "air.staff":
- loop all players:
- loop-player has permission "air.staff"
- send "&9[Staff] &b%player% joined the server." to loop-player
- on quit:
- if player has permission "air.staff":
- loop all players:
- loop-player has permission "air.staff"
- send "&9[Staff] &b%player% left the server." to loop-player
- on rightclick:
- if {staffmode.%player%} is set:
- if player's tool is a compass named "&ePush":
- push player in direction of player at speed 1
- on right click on a player:
- if {staffmode.%player%} is set:
- if player's tool is a book named "&eInspect Inventory":
- open the inventory of the clicked entity to the player
- on right click on a player:
- if {staffmode.%player%} is set:
- if player's tool is a anvil named "&eFreeze":
- wait 5 ticks
- make player execute "ss %clicked entity%"
- on right click:
- if {staffmode.%player%} is set:
- if player's tool is a head named "&eStaff List":
- wait 5 ticks
- make player execute command "air:stafflist"
- on right click:
- if {staffmode.%player%} is set:
- if player's tool is a gray dye named "&eVisibility":
- set slot 8 of player to light green dye named "&eVisibility"
- reveal the player from all players
- send "&eYou have been revealed to all players." to the player
- on left click:
- if {staffmode.%player%} is set:
- if player's tool is a light green dye named "&eVisibility":
- set slot 8 of player to gray dye named "&eVisibility"
- hide the player from all players
- send "&eYou have been hidden from all players." to the player
- on place:
- if {staffmode.%player%} is true:
- if player doesn't have permission "air.admin":
- cancel event
- stop
- else:
- stop
- on break:
- if {staffmode.%player%} is true:
- if player doesn't have permission "air.admin":
- cancel event
- stop
- else:
- stop
- on inventory click:
- if {staffmode.%player%} is true:
- if player doesn't have permission "air.admin":
- cancel event
- stop
- else:
- stop
- on hunger bar change:
- if {staffmode.%player%} is true:
- set the player's food level to 10
- on damage:
- if {staffmode.%victim%} is true:
- cancel event
- if {staffmode.%attacker%} is true:
- cancel event
- on drop:
- if {staffmode.%player%} is true:
- cancel event
- #===========================================================================================================================
- command /teleport [<player>] [<player>]:
- description: Teleport to a player
- permission: air.teleport
- permission message: &cYou do not have the required permissions to execute this command.
- executable by: players
- aliases: /teleport, /tp, /tport, /telep
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- if arg-1 is player:
- teleport arg-1 to arg-2
- message "&eTeleporting to %arg-2%"
- else if arg-1 isn't player:
- teleport arg-1 to arg-2
- message "&eTeleported %arg-1% to %arg-2%"
- else if arg-2 isn't set:
- teleport player to arg-1
- message "&eTeleporting to %arg-1%"
- else:
- message "&cIncorrect usage format, /tp <player> [other player]"
- command /tphere [<player>]:
- description: Teleport to a player to you
- permission: air.teleport
- permission message: &cYou do not have the required permissions to execute this command.
- executable by: players
- trigger:
- if arg-1 is set:
- if arg-1 is player:
- message "&cYou cannot teleport to yourself."
- else if arg-1 isn't player:
- teleport arg-1 to player
- message "&eTeleported %arg-1% to player"
- else:
- message "&cIncorrect usage format, /tphere <player>"
- command /gm [<text>] [<player>]:
- description: Change your gamemode
- permission: air.gamemode
- permission message: &cYou do not have the required permissions to execute this command.
- executable by: players
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- if arg-1 is "C", "1" or "Creative":
- set gamemode of arg-2 to creative
- message "&eSet the gamemode of %arg-2% to &6&lCreative" to player
- message "&eGamemode changed to &6&lCreative&e by %player%" to arg-2
- else if arg-1 is "S", "0" or "Survival":
- set gamemode of arg-2 to survival
- message "&eSet the gamemode of %arg-2% to &6&lSurvival" to player
- message "&eGamemode changed to &6&lSurvival&e by %player%" to arg-2
- else if arg-1 is "A", "2" or "Adventure":
- set gamemode of arg-2 to adventure
- message "&eSet the gamemode of %arg-2% to &6&lAdventure" to player
- message "&eGamemode changed to &6&lAdventure&e by %player%" to arg-2
- else if arg-2 isn't set:
- if arg-1 is "C", "1" or "Creative":
- set gamemode of player to creative
- message "&eSet your gamemode to &6&lCreative" to player
- else if arg-1 is "S", "0" or "Survival":
- set gamemode of player to survival
- message "&eSet your gamemode to &6&lSurvival" to player
- else if arg-1 is "A", "2" or "Adventure":
- set gamemode of player to adventure
- message "&eSet your gamemode to &6&lAdventure" to player
- else if arg-2 isn't "A", "2", "Adventure", "S", "0", "Survival", "C", "1" or "Creative":
- message "&cUnexpected error! gamemode.Type = false"
- message "&cPlease choose a valid gamemode!"
- message ""
- message "&4If you feel that this is incorrect, please contact your server developer."
- else:
- message "&cIncorrect usage format, /gm <gamemode> [player]"
- on command "/gmc":
- cancel event
- make player execute "gm c"
- on command "/gms":
- cancel event
- make player execute "gm s"
- on command "/gma":
- cancel event
- make player execute "gm a"
- on command "/gmsp":
- cancel event
- send "&cThis gamemode has been disabled by an administrator."
- #===========================================================================================================================
- command /air:stafflist:
- trigger:
- if player has permission "air.staff":
- loop all players:
- loop-player has permission "minezone.staff"
- add loop-player to {_online staff::*}
- size of {_online staff::*} is 0:
- message "No staff currently online!"
- else:
- message "&e&m*------------------------------------------*"
- message "&7Staff &e» &r%{_online staff::*}%"
- message "&e&m*------------------------------------------*"
- else:
- message "&rUnknown command. Type ""/help"" for help."
- #===========================================================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement