Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /admin [<text>] [<text>]:
- trigger:
- if player has permission "admin.usar":
- if arg 1 is not set:
- send "&c/admin &4entrar&c/&4sair"
- if arg 1 is "entrar":
- if arg 2 is set:
- if {ViiictorXD::Entrou::%player%} is false:
- set {ViiictorXD::Entrou::%player%} to true
- send "§cVocê entrou no modo Admin!"
- apply invisibility 2 to the player for 1 days
- set player's gamemode to creative
- set the player's tablist name to "%arg 2%"
- set the player's display name to "%arg 2%"
- give 1 glass pane named " " to player
- give 1 glass pane named " " to player
- give 1 wooden sword of sharpness 1000 named "§cHitkill" to player
- give 1 blaze rod named "§cKnockback (UP)" to player
- give 1 chest named "§cAbrir Bau" to player
- give 1 wooden hoe named "§cLimpar Inventário" to player
- give 1 cobweb named "§cPrender Player" to player
- give 1 glass pane named " " to player
- give 1 glass pane named " " to player
- give 1 glass pane named " " to player
- broadcast "&c[-] %player%"
- else:
- send "&cVocê já se encontra no modo admin!"
- else:
- send "&cDigite um nome de um player falso!"
- if arg 1 is "sair":
- if {ViiictorXD::Entrou::%player%} is true:
- set the player's tablist name to "%player%"
- set the player's display name to "%player%"
- set {ViiictorXD::Entrou::%player%} to false
- set player's gamemode to survival
- send "&cVocê saiu do modo Admin!"
- remove invisibility from the player
- clear the player's inventory
- broadcast "&a[+] %player%"
- else:
- send "&cVocê não está no modo Admin!"
- on right click on a player:
- if tool of player is wooden hoe:
- if {ViiictorXD::Entrou::%player%} is true:
- clear the clicked entity's inventory
- send "§cVocê limpou o inventário do §4%clicked entity%§c." to player
- on right click on a player:
- if tool of player is blaze rod:
- if {ViiictorXD::Entrou::%player%} is true:
- push clicked entity up at speed 5
- set {ViiictorXD::NoFall::%clicked entity%} to true
- send "§cVocê jogou §4%clicked entity% §cpara cima!" to player
- wait 4 seconds
- set {ViiictorXD::NoFall::%clicked entity%$} to false
- on right click on a player:
- if tool of player is cobweb:
- if {ViiictorXD::Entrou::%player%} is true:
- loop blocks in radius 3 around clicked entity:
- loop-block is air
- set loop-block to glass
- send "§cVocê prendeu §4%clicked entity%§c!" to player
- on right click on a player:
- if tool of player is chest:
- if {ViiictorXD::Entrou::%player%} is true:
- open inventory of clicked entity to player
- send "§cVocê abriu inventário do §4%clicked entity%§c!" to player
- on damage:
- damage cause is fall:
- {ViiictorXD::NoFall::%victim%} is true:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment