#Staff Mode
options:
perm: panel.modo
msgperm: &cVous n'avez pas la permission.
logo: &9&l[&aFreeze&9&l] &r
command /staff:
trigger:
if player have permission "{@perm}":
if {staff.mode.%player%} is not set:
wait 2 ticks
set {staff.mode.%player%} to true
send "&c(&4!&c) &3Tu est maintenant en staff mode !"
set {staffinv.%player%} to player's serialized inventory
set {staff.%player%::casque} to helmet of player
set {staff.%player%::plastron} to chestplate of player
set {staff.%player%::pantalon} to leggings of player
set {staff.%player%::bottes} to boots of player
wait 2 ticks
clear player's inventory
make player execute command "/vanish on"
set slot 0 of player to compass named "&6TP random"
set slot 1 of player to wooden sword of knockback 10 named "&6Test-AntiKB"
set slot 2 of player to stick named "&cKill"
set slot 3 of player to diamond named "&3Kick"
set slot 4 of player to blaze rod named "&bFreeze"
set slot 5 of player to light green dye named "&6Vanish &f[&aON&f]"
set slot 6 of player to book named "&6Panel de Modération"
set slot 8 of player to redstone named "&cQuitter"
else if {staff.mode.%player%} is true:
wait 2 ticks
clear player's inventory
restore inventory of player from {staffinv.%player%}
set helmet of player to {staff.%player%::casque}
set chestplate of player to {staff.%player%::plastron}
set leggings of player to {staff.%player%::pantalon}
set boots of player to {staff.%player%::bottes}
delete {staff.mode.%player%}
wait 2 ticks
make player execute command "vanish off"
send "&c(&4!&c) &3Tu as quitter le staff mode !" to player
else:
send "{@msgperm}" to player
on drop:
if {staff.mode.%player%} is true:
send "&c(&4!&c) &3Tu ne peut pas drop tes items !"
cancel event
on break:
if {staff.mode.%player%} is true:
send "&c(&4!&c) &3Tu ne peut pas cassé de blocks !"
cancel event
on place:
if {staff.mode.%player%} is true:
send "&c(&4!&c) &3Tu ne peut pas placé de blocks !"
cancel event
on pickup:
if {staff.mode.%player%} is true:
cancel event
death:
victim is a player
{staff.mode.%victim%} is true
clear drops
set {staff.mode.%victim%} to false
On hunger meter change:
if {staff.mode.%player%} is true:
cancel event
on rightclick with dye:
if name of player's tool is "&6Vanish &f[&aON&f]":
make player execute command "/vanish off"
set slot 5 of player to gray dye named "&6Vanish &f[&cOff&f]"
stop
if name of player's tool is "&6Vanish &f[&cOff&f]":
make player execute command "/vanish on"
set slot 5 of player to light green dye named "&6Vanish &f[&aON&f]"
on rightclick with diamond:
if name of player's tool is "&3Kick":
if targeted entity is a player:
make player execute command "/kick %targeted entity%"
else:
send "&cVise un joueur !" to player
stop
on rightclick with book:
if name of player's tool is "&6Panel de Modération":
if targeted entity is a player:
make player execute command "/modo %targeted entity%"
else:
send "&cVise un joueur !" to player
stop
on rightclick with redstone:
if name of player's tool is "&cQuitter":
make player execute command "/staff"
stop
on rightclick with stick:
if name of player's tool is "&cKill":
if targeted entity is a player:
make player execute command "/kill %targeted entity%"
else:
send "&cVise un joueur !" to player
stop
on rightclick with blaze rod:
if name of player's tool is "&bFreeze":
if targeted entity is a player:
make player execute command "/freeze %targeted entity%"
else:
send "&cVise un joueur !" to player
stop
on rightclick with compass:
if name of player's tool is "&6TP random":
cancel event
wait 1 ticks
delete {list::*}
add all players to {list::*}
remove player from {list::*}
set {_random} to a random element of {list::*}
teleport player to {_random}
send "&fTu as été tp à &b%{_random}%"[code]
Et pourtant quand j'execute la commande rien ne se passe, ça marchait un jour et le lendemain ça ne marche plus :/
j'ai verfié les perm, rien, aucune erreur je ne comprend pas :/
help me
Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.
Question
MGamer91
Bein voila,
j'ai ce Skript:
10 réponses à cette question
Messages recommandés