J'ai un skript tout fais pour sa tiens c'est gratuit mais attention j'utilise un plugin de freeze et un plugin de ban et essentials avec
#----------[Modérateur]----------#
command /mod:
aliases: Mod, modérateur, Modérateur
trigger:
if player has permission "moderateur.mod":
if {moderateur.mod.%player%} is false:
set {moderateur.mod.%player%} to true
set {inventory.%player%} to player's serialized inventory
clear player's inventory
clear effects of player
set player's hunger bar to 10
set the player's fly mode to true
set {inv} to true
set slot 0 of player to 1 arrow named "&3Téléportation aléatoire"
set slot 1 of player to 1 351:10 named "&aVanish"
set slot 2 of player to 1 blaze rod named "&bFreeze"
set slot 4 of player to 1 gold sword of knockback 5, Unbreaking 10 named "&5Knockback 5"
set slot 6 of player to 1 Clock named "&2Cps"
set slot 7 of player to 1 Chest named "&eInformations"
set slot 8 of player to 1 redstone block named "&4Sanctionner"
message "&6&l[Mod]&f Vous êtes maintenant en mode &bModérateur"
else:
set {moderateur.mod.%player%} to false
restore inventory of player from {inventory.%player%}
set {inv} to false
wait 3 ticks
clear effects of player
set player's hunger bar to 10
set the player's fly mode to false
make console execute command "gm 0 %player%"
message "&6&l[Mod]&f Vous n'êtes plus en mode &bModérateur"
if {vanish.%player%} is set:
make player execute command "vanish"
else:
stop
on inventory click:
if {inv} is true:
cancel event
else:
stop
on join:
set {inv} to false
if player has permissions "moderateur.mod":
if {moderateur.mod.%player%} = true:
restore inventory of player from {inventory.%player%}
set {moderateur.mod.%player%} to false
on place:
if {moderateur.mod.%player%} is true:
cancel event
else:
stop
#----------[Vanish]----------#
on rightclick:
if name of tool of player is "&aVanish":
if player has permissions "vanish.mod":
make player execute command "vanish"
on drop:
if {moderateur.mod.%player%} is true:
cancel event
else:
stop
on pickup:
if {moderateur.mod.%player%} is true:
cancel event
else:
stop
on damage:
if {moderateur.mod.%victim%} is true:
cancel event
else:
stop
command /vanish [<offline player>]:
aliases: v, Vanish
trigger:
if arg 1 is not set:
if {vanish.%player%} is not set:
hide the player from all players
send "&6&l[Vanish]&f Vous êtes désormais &ainvisible par les joueurs" to player
broadcast "&7[&c-&7] %player%"
set {vanish.%player%} to true
else:
reveal the player from all players
send "&6&l[Vanish]&f Vous êtes désormais &cvisible&f par les joueurs" to player
broadcast "&7[&a+&7] %player%"
delete {vanish.%player%}
if arg 1 is set:
if {vanish.%arg 1%} is not set:
hide the arg 1 from all players
send "&6&l[Vanish] &b%arg 1% &fest désormais &ainvisible&f pour les joueurs" to player
send "&6&l[Vanish] &fVous êtes désormais &ainvisible&f par les joueurs" to arg 1
broadcast "&7[&c-&7] %arg 1%"
set {vanish.%arg 1%} to true
else:
reveal the arg 1 from all players
send "&6&l[Vanish]&f &b%arg 1% &fest désormais &cvisible&f pour les joueurs" to player
send "&6&l[Vanish]&f Vous êtes désormais &cvisible&f par les joueurs" to arg 1
broadcast "&7[&a+&7] %arg 1%"
delete {vanish.%arg 1%}
on quit:
if {vanish.%player%} is set:
delete {vanish.%player%}
#----------[Freeze]----------#
on rightclick on a player:
if name of tool of player is "&bFreeze":
if tool of player is blaze rod:
if player has permissions "freeze.rod":
if {freeze.%targeted entity%} is false:
make player execute command "freeze %targeted entity%"
set {freeze.%targeted entity%} to true
else:
make player execute command "freeze %targeted entity%"
set {freeze.%targeted entity%} to false
#-----------[informations]----------#
on rightclick on a player:
if name of tool of player is "&eInformations":
if tool of player is chest:
if player has permissions "infos.chs":
make player execute command "pss_§akopsxn %targeted player%"
command /pss_§akopsxn [<offline player>]:
trigger:
if arg 1 has permissions "Slawnien":
wait 3 ticks
open chest with 3 rows named "&eInformations" to player
wait 3 ticks
format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bSlawnien" to be unstealable
format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]
else if arg 1 has permissions "Paysan":
wait 3 ticks
open chest with 3 rows named "&eInformations" to player
wait 3 ticks
format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &f! ||&a&l> &bPaysan" to be unstealable
format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]
else if arg 1 has permissions "Apprenti":
wait 3 ticks
open chest with 3 rows named "&eInformations" to player
wait 3 ticks
format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bApprenti" to be unstealable
format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]
else if arg 1 has permissions "Maitre":
wait 3 ticks
open chest with 3 rows named "&eInformations" to player
wait 3 ticks
format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bMaitre" to be unstealable
format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]
else if arg 1 has permissions "Roi":
wait 3 ticks
open chest with 3 rows named "&eInformations" to player
wait 3 ticks
format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bRoi" to be unstealable
format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]
else if arg 1 has permissions "Empereur":
wait 3 ticks
open chest with 3 rows named "&eInformations" to player
wait 3 ticks
format slot 0 of player with skull of arg 1 named "&a&l> &b&l%arg 1%" with lore " &f||&a&l> &b%arg 1's balance% &fCoins ! ||&a&l> &bEmpereur" to be unstealable
format slot 2 of player with diamond sword named "&4Sanctionner" to close then run [make player execute command "sanction %arg 1%"]
format slot 3 of player with chest named "&3Inventaire" to close then run [make player execute command "pss_§oawjec %arg 1%"]
format slot 4 of player with ender pearl named "&bSe téléporter" to close then run [make player execute command "tp %arg 1%"]
command /pss_§oawjec [<offline player>]:
trigger:
wait 3 ticks
make player execute command "invsee %arg 1%"
on rightclick on a player:
if name of tool of player is "&4Sanctionner":
if tool of player is redstone block:
if player has permissions "sanctionner.blo":
make player execute command "sanction %targeted entity%"
on rightclick on a player:
if name of tool of player is "&2Cps":
if tool of player is Clock:
if player has permissions "Cps.clock":
clear {cps.results.%clicked entity%}
set {cps.check.%clicked entity%} to true
send "&6&l[CPS]&f Lancement du processus en cours.." to player
wait 10 seconds
if {cps.results.%clicked entity%} is not set:
set {cps.results.%clicked entity%} to 0
send "&6&l[CPS]&b %clicked entity%&f a fait %{cps.results.%clicked entity%}% Cps !" to player
set {cps.check.%clicked entity%} to false
on leftclick:
if {cps.check.%player%} is true:
add 1 to {cps.results.%player%}
command /pss_§!eijwqiu:
trigger:
set {tprdm.loc.%player%} to location of player
teleport player to (random player out of all players)
if random player out of all players is player:
if {number.player} is less than 2:
send "&6&l[Téléportation]&c Désolé,&f tu es seul sur le serveur" to player
stop
else:
send "&6&l[Téléportation]&c Désolé,&f Le hasard vous a choisi" to player
stop
else if random player out of all players is not player:
loop all players in radius 3 around player:
set {_lol} to "%loop-player%"
send "&6&l[Téléportation]&f Vous avez été téléporté à &b%loop-player%&f !" to player
on rightclick:
if name of tool of player is "&3Téléportation aléatoire":
if player has permissions "tprdm":
make player execute command "pss_§!eijwqiu"
on join:
add 1 to {number.player}
on quit:
remove 1 from {number.player}