Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ▄█ ▄▄▄▄███▄▄▄▄ ▄███████▄ ▄████████ ▄████████ ███
- # ███ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ███ ███ ███ ▀█████████▄
- # ███▌ ███ ███ ███ ███ ███ ███ ███ ███ █▀ ▀███▀▀██
- # ███▌ ███ ███ ███ ███ ███ ███ ███ ███ ███ ▀
- # ███▌ ███ ███ ███ ▀█████████▀ ▀███████████ ███ ███
- # ███ ███ ███ ███ ███ ███ ███ ███ █▄ ███
- # ███ ███ ███ ███ ███ ███ ███ ███ ███ ███
- # █▀ ▀█ ███ █▀ ▄████▀ ███ █▀ ████████▀ ▄████▀
- on join:
- if player has permission "server.staff":
- set join message to ""
- loop all players:
- if loop-player has permission "server.staff":
- send "&9[Staff] &b%player% has connected to the server." to loop-player
- on disconnect:
- if player has permission "server.staff":
- set leave message to ""
- loop all players:
- if loop-player has permission "server.staff":
- send "&9[Staff] &b%player% has disconnected from the server." to loop-player
- if {player::%player's uuid%::frozen} is true:
- make console execute "ban %player% Logged off whilst frozen."
- loop all players:
- if loop-player has permission "server.staff":
- send "&c%player% has been &4&lbanned &cfor logging out whilst frozen." to loop-player
- command /gamemode [<text>] [<player>]:
- permission: server.srmod
- permission message: &cInsufficent permissions.
- aliases: /gm
- trigger:
- if argument 1 is set:
- if argument 1 is "0", "S" or "Survival":
- if argument 2 isn't set:
- send "&c&l[GAMEMODE] &rYou've set your gamemode to &csurvival."
- set gamemode of player to survival
- else:
- if player has permission "server.admin":
- send "&c&l[GAMEMODE] &rYou've set %arg-2%'s gamemode to &csurvival." to player
- send "&c&l[GAMEMODE] &rYour gamemode was set to &csurvival &rby &c%player%." to arg-2
- set gamemode of arg-2 to survival
- else:
- send "&cYou don't have sufficent permissions to change other users gamemode."
- else if argument 1 is "1", "C" or "Creative":
- if argument 2 isn't set:
- send "&c&l[GAMEMODE] &rYou've set your gamemode to &ccreative."
- set gamemode of player to creative
- else:
- if player has permission "server.admin":
- send "&c&l[GAMEMODE] &rYou've set %arg-2%'s gamemode to &ccreative." to player
- send "&c&l[GAMEMODE] &rYour gamemode was set to &ccreative &rby &c%player%." to arg-2
- set gamemode of arg-2 to creative
- else:
- send "&cYou don't have sufficent permissions to change other users gamemode."
- else if argument 1 is "2", "A" or "Adventure":
- if argument 2 isn't set:
- send "&c&l[GAMEMODE] &rYou've set your gamemode to &aadventure."
- set gamemode of player to adventure
- else:
- if player has permission "server.admin":
- send "&c&l[GAMEMODE] &rYou've set %arg-2%'s gamemode to &cadventure." to player
- send "&c&l[GAMEMODE] &rYour gamemode was set to &cadventure &rby &c%player%." to arg-2
- set gamemode of arg-2 to adventure
- else:
- send "&cYou don't have sufficent permissions to change other users gamemode."
- else:
- send "&c/gamemode <gamemode> [<player>]"
- command /heal [<player>]:
- permission: server.admin
- permission message: &cInsufficent permissions.
- trigger:
- if argument 1 isn't set:
- send "&c&l[HEAL] &rYou've healed yourself."
- heal player
- set hunger of player to 20
- else:
- send "&c&l[HEAL] &rYou've healed %arg-1%." to player
- send "&c&l[HEAL] &rYou've been healed by %player%" to argument 1
- heal arg-1
- set hunger of arg-1 to 20
- command /teleport [<player>] [<player>]:
- permission: server.JrMod
- permission message: &cInsufficent permissions.
- aliases: /tp, /tport
- trigger:
- if argument 1 is set:
- if argument 2 isn't set:
- if argument 1 isn't player:
- send "&c&l[TELEPORT] &rTeleporting yourself to &c%arg-1%." to player
- teleport player to argument 1
- else:
- send "&cYou cannot teleport to yourself."
- else if argument 2 is set:
- if player has permission "server.srmod":
- if argument 1 and argument 2 are player:
- send "&cYou cannot teleport to yourself."
- else:
- send "&c&l[TELEPORT] &rTeleporting &c%arg-1% &rto &c%arg-2%."
- teleport arg-1 to arg-2
- else:
- send "&c/teleport <player> [<player>]"
- command /spectator:
- permission: server.staff
- permission message: &cInsufficent permissions.
- aliases: /spec, /staff, /h, /staffmode
- trigger:
- if {player::%player's uuid%::specmode} is true:
- delete {player::%player's uuid%::specmode}
- send "&c&l[SPECTATOR] &rYou have disabled spectator mode."
- clear player's inventory
- set gamemode of player to survival
- teleport player to {location.spawn}
- reveal the player from all players
- else:
- set {player::%player's uuid%::specmode} to true
- send "&c&l[SPECTATOR] &rYou have enabled spectator mode."
- clear player's inventory
- set gamemode of player to creative
- teleport player to {location.spawn}
- hide the player from all players
- set slot 0 of player to book named "&c&lINSPECTION" with lore "||&rRight-click target player to view their||&rinventory."
- set slot 1 of player to iron fence named "&c&lHALT" with lore "||&rRight-click target player to freeze them."
- set slot 4 of player to red carpet named "&c&l"
- set slot 8 of player to light green dye named "&c&lVANISH &7&o(Vanished)" with lore "||&rRight-click to unvanish."
- on any movement:
- if {player::%player's uuid%::frozen} is true:
- cancel event
- on damage:
- if {player::%attacker's uuid%::specmode} is true:
- if attacker has permission "server.admin":
- stop
- else:
- cancel event
- else:
- if {player::%attacker's uuid%::frozen} is true:
- cancel event
- on place:
- if {player::%player's uuid%::specmode} is true:
- if player has permission "server.admin":
- stop
- else:
- cancel event
- else:
- if {player::%player's uuid%::frozen} is true:
- cancel event
- on inventory click:
- if {player::%player's uuid%::specmode} is true:
- if player has permission "server.admin":
- stop
- else:
- cancel event
- else:
- if {player::%player's uuid%::frozen} is true:
- cancel event
- on break:
- if {player::%player's uuid%::specmode} is true:
- if player has permission "server.admin":
- stop
- else:
- cancel event
- else:
- if {player::%player's uuid%::frozen} is true:
- cancel event
- on right-click on player:
- if player's tool is a book named "&c&lINSPECTION" with lore "||&rRight-click target player to view their||&rinventory.":
- if player has permission "server.staff":
- open the inventory of the clicked entity to the player
- stop
- else:
- if player's tool is a iron fence named "&c&lHALT" with lore "||&rRight-click target player to freeze them.":
- if player has permission "server.staff":
- make player execute "halt %clicked entity%"
- stop
- on right-click:
- if player's tool is a light green dye named "&c&lVANISH &7&o(Vanished)" with lore "||&rRight-click to unvanish.":
- if player has permission "server.staff":
- set slot 8 of player to red dye named "&c&lVANISH &7&o(Not Vanished)" with lore "||&rRight-click to vanish."
- send "&c&l[VANISH] &rYou've been unvanished."
- reveal the player from all players
- stop
- else:
- if player's tool is a red dye named "&c&lVANISH &7&o(Not Vanished)" with lore "||&rRight-click to vanish.":
- if player has permission "server.staff":
- set slot 8 of player to light green dye named "&c&lVANISH &7&o(Vanished)" with lore "||&rRight-click to unvanish."
- send "&c&l[VANISH] &rYou've been vanished."
- hide the player from all players
- stop
- command /screenshare [<player>]:
- permission: server.staff
- permission message: &cInsufficent permissions.
- aliases: /ss, /freeze, /halt
- trigger:
- if argument 1 is set:
- if {player::%arg-1's uuid%::frozen} is true:
- delete {player::%arg-1's uuid%::frozen}
- send "&c&l[SCREENSHARE] &rYou've unfrozen &c%arg-1%." to player
- send "&c&l[SCREENSHARE] &rYou've been unfrozen." to arg-1
- else:
- set {player::%arg-1's uuid%::frozen} to true
- send "&c&l[SCREENSHARE] &rYou've frozen &c%arg-1%." to player
- send "&c&l[SCREENSHARE] &rYou've been frozen." to arg-1
- make player execute "msg %arg-1% You've been frozen, please connect to our discord @ https://discord.gg/sajJVMu DO NOT LOG OUT!"
- command /check [<offline player>]:
- permission: server.srmod
- permission message: &cInsufficent permissions.
- trigger:
- if argument 1 is set:
- if {player::%argument 1's uuid%::punish::ban} is true:
- send "&7&m*-------------------------------------*"
- send "&c&l%arg-1%"
- send "&4&l* &cPunished on: &7%{player::%argument 1's uuid%::punish::ban::time}%"
- send "&4&l* &cDistributed by: &7%{player::%argument 1's uuid%::punish::ban::distributor}%"
- send "&4&l* &cReason: &7%{player::%argument 1's uuid%::punish::ban::reason}%"
- send "&4&l* &cLength: &7%{player::%argument 1's uuid%::punish::ban::length}%"
- send "&7&m*-------------------------------------*"
- else:
- send "&c%arg-1% isn't currently banned."
- else:
- send "&c/check <player>"
- command /ban [<offline player>] [<text>]:
- permission: server.jrmod
- permission message: &cInsufficent permissions.
- trigger:
- if argument 1 is set:
- if argument 2 isn't set:
- if {player::%argument 1's uuid%::punish::ban} is set:
- send "&c%arg-1% is already banned."
- else:
- set {player::%argument 1's uuid%::punish::ban} to true
- ban arg-1 due to "Unspecified reasoning."
- set {player::%argument 1's uuid%::punish::ban::time} to now
- set {player::%argument 1's uuid%::punish::ban::distributor} to player
- set {player::%argument 1's uuid%::punish::ban::reason} to "Unspecified reasoning."
- set {player::%argument 1's uuid%::punish::ban::length} to "Permenant"
- broadcast "&7&m*-------------------------------------*"
- broadcast "&c&l%arg-1% &chas been permanently suspended from the server."
- broadcast "&4&l* &cDistributed by: &7%player%"
- broadcast "&4&l* &cReason: &7Unspecified reasoning."
- broadcast "&4&l* &cLength: &7Permenant"
- broadcast "&7&m*-------------------------------------*"
- else:
- send "&c/ban <player> <reason>"
- command /unban [<offline player>]:
- permission: server.mod
- permission message: &cInsufficent permissions.
- trigger:
- if argument 1 is set:
- if {player::%argument 1's uuid%::punish::ban} isn't set:
- send "&c%arg-1% isn't currently banned."
- else:
- delete {player::%argument 1's uuid%::punish::ban}
- broadcast "&7&m*-------------------------------------*"
- broadcast "&c&l%arg-1% &csuspension has been lifted."
- broadcast "&7&m*-------------------------------------*"
- unban arg-1
- else:
- send "&c/unban <player>"
- command /leave:
- trigger:
- if {player::%player's uuid%::gamestatus} is set:
- if {player::%player's uuid%::pvptag} is true:
- send "&cYou cannot leave the arena with a &lPvP Tag"
- stop
- else:
- if {player::%player's uuid%::leaving} isn't set:
- set {player::%player's uuid%::leaving} to true
- send "&c&l[LEAVE] &rTeleportation has begun..."
- wait 2 seconds
- clear player's inventory
- heal player
- set hunger of player to 20
- delete {player::%player's uuid%::gamestatus}
- teleport player to {location.spawn}
- send "&c&l[LEAVE] &rSuccessfully left the arena."
- delete {player::%player's uuid%::leaving}
- else:
- send "&cYou aren't in the arena. Join with &l/join."
- command /join:
- trigger:
- if {player::%player's uuid%::gamestatus} isn't set:
- set {player::%player's uuid%::gamestatus} to true
- delete {player::%player's uuid%::pvptag}
- clear player's inventory
- heal player
- set hunger of player to 20
- if {player::%player's uuid%::class} isn't set:
- if {player::%player's uuid%::default::sword::level} isn't set:
- set {player::%player's uuid%::default::sword::level} to 1
- set slot 0 of player to stone sword of unbreaking 1 named "&7Sword &8[%{player::%player's uuid%::default::sword::level}%]"
- else:
- send "&cYou are already in the arena."
- on right-click on sign:
- line 1 of event-block is ""
- line 2 of event-block is "&c&lIMPACT"
- line 3 of event-block is "&7FFA Join"
- line 4 of event-block is "":
- make player execute "join"
- on sign change:
- if line 1 is "[FFA Join]":
- set line 1 to ""
- set line 2 to "&c&lIMPACT"
- set line 3 to "&7FFA Join"
- set line 4 to ""
- command /rank [<offline player>] [<text>]:
- permission: server.admin
- permission message: &cInsufficent permissions.
- aliases: /setrank
- trigger:
- if argument 1 is set:
- if argument 2 is set:
- if argument 2 is "admin":
- set {player::%arg-1's uuid%::rank} to "Admin"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&c&lADMIN&8] &c"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cAdmin" to player
- send "&c&l[RANK] &rYour rank has been updated to &cAdmin &rby &c%player%" to argument 1
- else if argument 2 is "dev" or "developer":
- set {player::%arg-1's uuid%::rank} to "Developer"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&d&lDEV&8] &d"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cDeveloper" to player
- send "&c&l[RANK] &rYour rank has been updated to &cDeveloper &rby &c%player%" to argument 1
- else if argument 2 is "senior mod" or "srmod":
- set {player::%arg-1's uuid%::rank} to "Senior Mod"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&6&lSR.MOD&8] &6"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cSenior Mod" to player
- send "&c&l[RANK] &rYour rank has been updated to &cSenior Mod &rby &c%player%" to argument 1
- else if argument 2 is "mod":
- set {player::%arg-1's uuid%::rank} to "Mod"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&e&lMOD&8] &e"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cMod" to player
- send "&c&l[RANK] &rYour rank has been updated to &cMod &rby &c%player%" to argument 1
- else if argument 2 is "junior mod" or "jrmod":
- set {player::%arg-1's uuid%::rank} to "Junior Mod"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&9&lJR.MOD&8] &9"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cJunior Mod" to player
- send "&c&l[RANK] &rYour rank has been updated to &cJunior Mod &rby &c%player%" to argument 1
- else if argument 2 is "builder":
- set {player::%arg-1's uuid%::rank} to "Builder"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&a&lBUILDER&8] &a"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cBuilder" to player
- send "&c&l[RANK] &rYour rank has been updated to &cBuilder &rby &c%player%" to argument 1
- else if argument 2 is "none" or "default":
- set {player::%arg-1's uuid%::rank} to "None"
- set {player::%arg-1's uuid%::rank::prefix} to "&8[&7&lMEMBER&8] &7"
- set tab list name of arg-1 to "%{player::%arg-1's uuid%::rank::prefix}%%arg-1%"
- send "&c&l[RANK] &rYou've updated &c%arg-1%'s &rrank to &cNone" to player
- send "&c&l[RANK] &rYour rank has been updated to &cNone &rby &c%player%" to argument 1
- else:
- send "&cInvalid group title: Admin, Dev, SrMod, Mod, JrMod, Builder or None"
- else:
- send "&c/rank <player> <rank>"
- else:
- send "&c/rank <player> <rank>"
- on first join:
- make console execute "rank %player% none"
- on chat:
- cancel event
- set tab list name of player to "%{player::%player's uuid%::rank::prefix}%%player%"
- broadcast "%{player::%player's uuid%::rank::prefix}%%player% » &r%message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement