Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {RaceSelect::%player%} to "False"
- set {RaceSwap::%player%} to 0
- set {Bypass::%player%} to "False"
- command /bypassreset <player>:
- permission: game.admin
- trigger:
- send "&8» &e%arg-1%'s Bypass &7has been &4Deactivated"
- set {Bypass::%arg-1%} to "False"
- every second:
- loop all players:
- if {RaceSwap::%loop-player%} >= 1:
- remove 1 from {RaceSwap::%loop-player%}
- command /adminbypass:
- permission: game.admin
- trigger:
- if {Bypass::%player%} is not set:
- send ""
- send "&8» &7Admin Bypass mode has been &aActivated"
- send ""
- set {Bypass::%player%} to "True"
- stop
- if {Bypass::%player%} is "False":
- send ""
- send "&8» &7Admin Bypass mode has been &aActivated"
- send ""
- set {Bypass::%player%} to "True"
- stop
- else if {Bypass::%player%} is "True":
- send ""
- send "&8» &7Admin Bypass mode has been &4Deactivated"
- send ""
- set {Bypass::%player%} to "False"
- stop
- command /race:
- trigger:
- if {Bypass::%player%} is "True":
- open chest with 3 rows named "&cRace Select" to player
- format slot 0 of player with gray stained glass pane named "&7" to run ""
- format slot 1 of player with gray stained glass pane named "&7" to run ""
- format slot 2 of player with gray stained glass pane named "&7" to run ""
- format slot 3 of player with gray stained glass pane named "&7" to run ""
- format slot 4 of player with gray stained glass pane named "&7" to run ""
- format slot 5 of player with gray stained glass pane named "&7" to run ""
- format slot 6 of player with gray stained glass pane named "&7" to run ""
- format slot 7 of player with gray stained glass pane named "&7" to run ""
- format slot 8 of player with gray stained glass pane named "&7" to run ""
- format slot 9 of player with gray stained glass pane named "&7" to run ""
- format slot 10 of player with leather helmet named "&eElf" to run [make player execute "/elf"]
- format slot 11 of player with gray stained glass pane named "&7" to run ""
- format slot 12 of player with gray stained glass pane named "&7" to run ""
- format slot 13 of player with leather helmet named "&eHuman" to run [make player execute "/human"]
- format slot 14 of player with gray stained glass pane named "&7" to run ""
- format slot 15 of player with gray stained glass pane named "&7" to run ""
- format slot 16 of player with leather helmet named "&eDwarf" to run [make player execute "/dwarf"]
- format slot 17 of player with gray stained glass pane named "&7" to run ""
- format slot 18 of player with gray stained glass pane named "&7" to run ""
- format slot 19 of player with gray stained glass pane named "&7" to run ""
- format slot 20 of player with gray stained glass pane named "&7" to run ""
- format slot 21 of player with gray stained glass pane named "&7" to run ""
- format slot 22 of player with gray stained glass pane named "&7" to run ""
- format slot 23 of player with gray stained glass pane named "&7" to run ""
- format slot 24 of player with gray stained glass pane named "&7" to run ""
- format slot 25 of player with gray stained glass pane named "&7" to run ""
- format slot 26 of player with gray stained glass pane named "&7" to run ""
- stop
- if {RaceSwap::%player%} <= 0:
- open chest with 3 rows named "&cRace Select" to player
- format slot 0 of player with gray stained glass pane named "&7" to run ""
- format slot 1 of player with gray stained glass pane named "&7" to run ""
- format slot 2 of player with gray stained glass pane named "&7" to run ""
- format slot 3 of player with gray stained glass pane named "&7" to run ""
- format slot 4 of player with gray stained glass pane named "&7" to run ""
- format slot 5 of player with gray stained glass pane named "&7" to run ""
- format slot 6 of player with gray stained glass pane named "&7" to run ""
- format slot 7 of player with gray stained glass pane named "&7" to run ""
- format slot 8 of player with gray stained glass pane named "&7" to run ""
- format slot 9 of player with gray stained glass pane named "&7" to run ""
- format slot 10 of player with leather helmet named "&eElf" to run [make player execute "/elf"]
- format slot 11 of player with gray stained glass pane named "&7" to run ""
- format slot 12 of player with gray stained glass pane named "&7" to run ""
- format slot 13 of player with leather helmet named "&eHuman" to run [make player execute "/human"]
- format slot 14 of player with gray stained glass pane named "&7" to run ""
- format slot 15 of player with gray stained glass pane named "&7" to run ""
- format slot 16 of player with leather helmet named "&eDwarf" to run [make player execute "/dwarf"]
- format slot 17 of player with gray stained glass pane named "&7" to run ""
- format slot 18 of player with gray stained glass pane named "&7" to run ""
- format slot 19 of player with gray stained glass pane named "&7" to run ""
- format slot 20 of player with gray stained glass pane named "&7" to run ""
- format slot 21 of player with gray stained glass pane named "&7" to run ""
- format slot 22 of player with gray stained glass pane named "&7" to run ""
- format slot 23 of player with gray stained glass pane named "&7" to run ""
- format slot 24 of player with gray stained glass pane named "&7" to run ""
- format slot 25 of player with gray stained glass pane named "&7" to run ""
- format slot 26 of player with gray stained glass pane named "&7" to run ""
- stop
- else:
- send "&8» &7You need to wait &e%{RaceSwap::%player%}% seconds &7before changing race."
- command /elf:
- trigger:
- if {Bypass::%player%} is "True":
- set {Elf::%player%} to "True"
- set {Human::%player%} to "False"
- set {Dwarf::%player%} to "False"
- teleport player to {ElfBase}
- send ""
- send "&8» &7You have selected the &eElf &7race."
- send ""
- broadcast "&8» &e%player% &7has joined the &eElf &7Race"
- set {RaceSwap::%player%} to 300
- stop
- if {RaceSwap::%player%} <= 0:
- set {Elf::%player%} to "True"
- set {Human::%player%} to "False"
- set {Dwarf::%player%} to "False"
- teleport player to {ElfBase}
- send ""
- send "&8» &7You have selected the &eElf &7race."
- send ""
- broadcast "&8» &e%player% &7has joined the &eElf &7Race"
- set {RaceSwap::%player%} to 300
- stop
- else:
- send "&8» &7You need to wait &e%{RaceSwap::%player%}% seconds &7before changing race."
- command /human:
- trigger:
- if {Bypass::%player%} is "True":
- set {Elf::%player%} to "False"
- set {Human::%player%} to "True"
- set {Dwarf::%player%} to "False"
- teleport player to {HumanBase}
- send ""
- send "&8» &7You have selected the &eHuman &7race."
- send ""
- broadcast "&8» &e%player% &7has joined the &eHuman &7Race"
- set {RaceSwap::%player%} to 300
- stop
- if {RaceSwap::%player%} <= 0:
- set {Elf::%player%} to "False"
- set {Human::%player%} to "True"
- set {Dwarf::%player%} to "False"
- teleport player to {HumanBase}
- send ""
- send "&8» &7You have selected the &eHuman &7race."
- send ""
- broadcast "&8» &e%player% &7has joined the &eHuman &7Race"
- set {RaceSwap::%player%} to 300
- stop
- else:
- send "&8» &7You need to wait &e%{RaceSwap::%player%}% seconds &7before changing race."
- command /dwarf:
- trigger:
- if {Bypass::%player%} is "True":
- set {Elf::%player%} to "False"
- set {Human::%player%} to "False"
- set {Dwarf::%player%} to "True"
- teleport player to {DwarfBase}
- send ""
- send "&8» &7You have selected the &eDwarf &7race."
- send ""
- broadcast "&8» &e%player% &7has joined the &eDwarf &7Race"
- set {RaceSwap::%player%} to 300
- stop
- if {RaceSwap::%player%} <= 0:
- set {Elf::%player%} to "False"
- set {Human::%player%} to "False"
- set {Dwarf::%player%} to "True"
- teleport player to {DwarfBase}
- send ""
- send "&8» &7You have selected the &eDwarf &7race."
- send ""
- broadcast "&8» &e%player% &7has joined the &eDwarf &7Race"
- set {RaceSwap::%player%} to 300
- stop
- else:
- send "&8» &7You need to wait &e%{RaceSwap::%player%}% seconds &7before changing race."
- command /setelfbase:
- permission: game.admin
- trigger:
- set {x} to player's x-coordinate
- set {y} to player's y-coordinate
- set {z} to player's z-coordinate
- send "&8» &7The &eElf Spawn &7has been set at %{x}% %{y}% %{z}%"
- set {ElfBase} to player's location
- command /sethumanbase:
- permission: game.admin
- trigger:
- set {x} to player's x-coordinate
- set {y} to player's y-coordinate
- set {z} to player's z-coordinate
- send "&8» &7The &eHuman Spawn &7has been set at %{x}% %{y}% %{z}%"
- set {HumanBase} to player's location
- command /setdwarfbase:
- permission: game.admin
- trigger:
- set {x} to player's x-coordinate
- set {y} to player's y-coordinate
- set {z} to player's z-coordinate
- send "&8» &7The &eDwarf Spawn &7has been set at %{x}% %{y}% %{z}%"
- set {DwarfBase} to player's location
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement