Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- wait 3 ticks
- set {lastjoined} to "%player%"
- on damage:
- if {god::%victim%} is true:
- cancel event
- if {god::%attacker%} is true:
- cancel event
- command /kontrolpanel [<text>] [<text>]:
- aliases: /kontrol, /k
- permission: mute.mute
- permission message: &4Glem det!
- Trigger:
- if arg-1 is not set:
- open chest with 5 rows named "&6&lKONTROL&e&lPANEL" to player
- if inventory name of player's current inventory is "&6&lKONTROL&e&lPANEL":
- wait 3 ticks
- Format slot 0 of player with Orange stained glass named " " to be unstealable
- Format slot 1 of player with Yellow stained glass named " " to be unstealable
- Format slot 2 of player with Orange stained glass named " " to be unstealable
- Format slot 3 of player with Yellow stained glass named " " to be unstealable
- Format slot 4 of player with Orange stained glass named " " to be unstealable
- Format slot 5 of player with yellow stained glass named " " to be unstealable
- Format slot 6 of player with orange stained glass named " " to be unstealable
- Format slot 7 of player with yellow stained glass named " " to be unstealable
- Format slot 8 of player with orange stained glass named " " to be unstealable
- Format slot 9 of player with Yellow stained glass named " " to be unstealable
- Format slot 17 of player with Yellow stained glass named " " to be unstealable
- Format slot 18 of player with orange stained glass named " " to be unstealable
- Format slot 26 of player with orange stained glass named " " to be unstealable
- Format slot 27 of player with Yellow stained glass named " " to be unstealable
- Format slot 35 of player with Yellow stained glass named " " to be unstealable
- Format slot 36 of player with orange stained glass named " " to be unstealable
- Format slot 37 of player with yellow stained glass named " " to be unstealable
- Format slot 38 of player with orange stained glass named " " to be unstealable
- Format slot 39 of player with yellow stained glass named " " to be unstealable
- Format slot 40 of player with orange stained glass named " " to be unstealable
- Format slot 41 of player with yellow stained glass named " " to be unstealable
- Format slot 42 of player with orange stained glass named " " to be unstealable
- Format slot 43 of player with yellow stained glass named " " to be unstealable
- Format slot 44 of player with orange stained glass named " " to be unstealable
- if {fly::%player%} is true:
- Format slot 21 of player with 160:5 named "&2&lSLÅ FLY FRA" with lore "&e&oKlik for at slå &6fly&e fra" to run [ Make player execute command "/kontrol fly fra"]
- else:
- Format slot 21 of player with 160:14 named "&4&lSLÅ FLY TIL" with lore "&e&oKlik for at slå &6fly&e til" to run [ Make player execute command "/kontrol fly til"]
- if {god::%player%} is true:
- Format slot 22 of player with 160:5 named "&2&lSLÅ GOD FRA" with lore "&e&oKlik for at slå &6god&e fra" to run [ Make player execute command "/kontrol god fra"]
- else:
- Format slot 22 of player with 160:14 named "&4&lSLÅ GOD TIL" with lore "&e&oKlik for at slå &6god&e til" to run [ Make player execute command "/kontrol god til"]
- if {vanish::%player%} is true:
- Format slot 23 of player with 160:5 named "&2&lSLÅ VANISH FRA" with lore "&e&oKlik for at slå &6vanish&e fra" to run [ Make player execute command "/kontrol v fra"]
- else:
- Format slot 23 of player with 160:14 named "&4&lSLÅ VANISH TIL" with lore "&e&oKlik for at slå &6vanish&e til" to run [ Make player execute command "/kontrol v til"]
- format slot 30 of player with anvil named "&2&lTP TIL EN SPILLER" with lore "&7&oKlik for at tp til en spiller" to run [ make player execute command "/kontrol tp"]
- format slot 31 of player with glowing anvil named "&2&lRANDOM TP" with lore "&7&oKlik for at tp til en random spiller" to run [ make player execute command "/kontrol rtp"]
- format slot 32 of player with anvil named "&2&lVANISH LISTE" with lore "&e&oKlik for at se listen over skjulte spillere" to run [ make player execute command "/kontrol v liste"]
- format slot 13 of player with redstone block named "&4&lSTRAF" with lore "&e&oKlik for at straffe en spiller" to run [ make player execute command "kontrol straf"]
- format slot 19 of player with paper named "&2&lSIG VELKOMMEN" with lore "&e&oKlik for at skrive velkommen til &6%{lastjoined}%&e!" to run [ make player execute command "kontrol vel"]
- if arg-1 is "vel":
- if {team::%uuid of player%} is set:
- if {team::%{team::%uuid of player%}%::ejer} is uuid of player:
- set {_prefix} to "**"
- else if {team::%{team::%uuid of player%}%::admin} is uuid of player:
- set {_prefix} to "*"
- else:
- set {_prefix} to ""
- send "&8[%{team::%{team::%uuid of player%}%::farve}%%{_prefix}%%{team::%uuid of player%}%&8]&8[&a%{team::%{team::%uuid of player%}%::lvl}%&8] %player's displayname% &8» %{farve::%player%}%Velkommen %{lastjoined}%, håber du nyder opholdet." to players
- stop
- send "%player's displayname% &8» %{farve::%player%}%Velkommen %{lastjoined}%, håber du nyder opholdet." to players
- if arg-1 is "fly":
- if arg-2 is "til":
- set {fly::%player%} to true
- set player's flight mode to true
- send "&8[&6&lKONTROL&8] &eDu har aktiveret dit &6fly mode&e!"
- Format slot 21 of player with 160:5 named "&2&lSLÅ FLY FRA" with lore "&e&oKlik for at slå &6fly&e fra" to run [ Make player execute command "/kontrol fly fra"]
- if arg-2 is "fra":
- delete {fly::%player%}
- set player's flight mode to false
- send "&8[&6&lKONTROL&8] &eDu har deaktiveret dit &6fly mode&e!"
- Format slot 21 of player with 160:14 named "&4&lSLÅ FLY TIL" with lore "&e&oKlik for at slå &6fly&e til" to run [ Make player execute command "/kontrol fly til"]
- if arg-1 is "god":
- if arg-2 is "til":
- set {god::%player%} to true
- send "&8[&6&lKONTROL&8] &eDu har aktiveret dit &6god mode&e!"
- Format slot 22 of player with 160:5 named "&2&lSLÅ GOD FRA" with lore "&e&oKlik for at slå &6god&e fra" to run [ Make player execute command "/kontrol god fra"]
- if arg-2 is "fra":
- delete {god::%player%}
- send "&8[&6&lKONTROL&8] &eDu har deaktiveret dit &6god mode&e!"
- Format slot 22 of player with 160:14 named "&4&lSLÅ GOD TIL" with lore "&e&oKlik for at slå &6god&e til" to run [ Make player execute command "/kontrol god til"]
- if arg-1 is "v":
- if arg-2 is "til":
- set {vanish::%player%} to true
- add player to {vanishl::*}
- hide the player from all players
- send "&8[&6&lKONTROL&8] &eDu har aktiveret dit &6vanish mode&e!"
- Format slot 23 of player with 160:5 named "&2&lSLÅ VANISH FRA" with lore "&e&oKlik for at slå &6vanish&e fra" to run [ Make player execute command "/kontrol v fra"]
- if arg-2 is "fra":
- delete {vanish::%player%}
- remove player from {vanishl::*}
- reveal the player from all players
- send "&8[&6&lKONTROL&8] &eDu har deaktiveret dit &6vanish mode&e!"
- Format slot 23 of player with 160:14 named "&4&lSLÅ VANISH TIL" with lore "&e&oKlik for at slå &6vanish&e til" to run [ Make player execute command "/kontrol v til"]
- if arg-2 is "liste":
- open chest with 3 rows named "&6&lSKJULTE SPILLERE" to player
- wait 3 ticks
- set {_n} to 0
- loop {vanishl::*}:
- format slot {_n} of player with skull of loop-value named "%{onlinei::%loop-value%}%&l%loop-value%" to be unstealable
- add 1 to {_n}
- if arg-1 is "tp":
- open chest with 6 rows named "&6&lTP TIL EN SPILLER" to player
- wait 3 ticks
- set {_n} to 0
- loop {l.online::*}:
- set {_beta} to loop-value
- set slot {_n} of player's current inventory to skull of loop-value named "%loop-value%" with lore "&e&oKlik her for at strafe &6&o%loop-value%"
- #format slot {_n} of player with skull of loop-value named "%loop-value%" with lore "&e&oKlik her for at strafe &6&o%loop-value%" to close#to run [ make player execute command "straf %{_beta}%"]
- add 1 to {_n}
- if arg-1 is "straf":
- open chest with 6 rows named "&6&lSTRAF EN SPILLER" to player
- wait 3 ticks
- set {_n} to 0
- loop {l.online::*}:
- set {_beta} to loop-value
- set slot {_n} of player's current inventory to skull of loop-value named "%loop-value%" with lore "&e&oKlik her for at strafe &6&o%loop-value%"
- #format slot {_n} of player with skull of loop-value named "%loop-value%" with lore "&e&oKlik her for at strafe &6&o%loop-value%" to close#to run [ make player execute command "straf %{_beta}%"]
- add 1 to {_n}
- if arg-1 is "rtp":
- set {_p} to random player out of all players
- teleport player to {_p}
- send "&8[&6&lKONTROL&8] &eDu teleportede til &6%{_p}%&e!"
- on quit:
- delete {vanish::%player%}
- remove player from {vanishl::*}
- reveal the player from all players
- delete {fly::%player%}
- delete {god::%player%}
- on join:
- delete {vanish::%player%}
- remove player from {vanishl::*}
- reveal the player from all players
- delete {fly::%player%}
- delete {god::%player%}
- on inventory click:
- if inventory name of player's current inventory is "&6&lTP TIL EN SPILLER":
- execute player command "tp %name of clicked item%"
- remove clicked item from player's inventory
- on inventory click:
- if inventory name of player's current inventory is "&6&lSTRAF EN SPILLER":
- execute player command "straf %name of clicked item%"
- remove clicked item from player's inventory
- on join:
- add player to {l.online::*}
- on quit:
- remove player from {l.online::*}
- every 10 second:
- clear {l.online::*}
- loop all players:
- add loop-player to {l.online::*}
Add Comment
Please, Sign In to add comment