Aller au contenu
  • 0

Skript /report "GUI"


Question

Posté(e) (modifié)

Version de Minecraft : 1.8.8
Version de Skript : 2.2

Addons utilisés: J'ai beaucoup d'addon je ne sais pas trop le quel sert à quoi..

Type du skript : Un skript qui sert à /report avec un menu GUI

Description du script :

Bonjour, bonsoir.

J'ai un petit problème qui c'est présenter lors du développement de mon skript de /report.
Le problème étant que quand je fais la commande /reports "Permet de voir tout les reports" Le pseudo de la personne ayant report la personne ne s'affiche pas "ça affiche seulement <none>".
Si quelqu'un peut m'aider je suis preneur.
 

Voilà le skript en question

#Skript de REPORT vers 0.5

options:

   delay: 30

   perm: report.see

   p: &7[&cREPORT&7] &f

#Menu pour choisir la raison du report

command /report [<player>]:
	trigger:
		if {cooldown.%player%} is not set:
			if arg 1 is not set:
				send "&7[&cModération&7] &6/report [player]" to player
			else:
				set {cooldown.%player%} to true
				open chest with 5 rows named "{@p}" to player
				format slot 10 of player with paper named "&cAutoclick" to close then run [make player execute command "/reportsend %arg 1% Autoclick"]
				format slot 11 of player with paper named "&cKillAura" to close then run [make player execute command "/reportsend %arg 1% KillAura"]
				format slot 12 of player with paper named "&cForceField" to close then run [make player execute command "/reportsend %arg 1% ForceField"]
				format slot 13 of player with paper named "&cFly" to close then run [make player execute command "/reportsend %arg 1% Fly"]
				format slot 14 of player with paper named "&cClicAimbot" to close then run [make player execute command "/reportsend %arg 1% ClicAimbot"]
				format slot 15 of player with paper named "&cBowAimbot" to close then run [make player execute command "/reportsend %arg 1% BowAimbot"]
				wait {@delay} seconds
				clear {cooldown.%player%}
		else:
			stop



#Commande de report  

command /reportsend <player> <text>:
	executable by: players and player
	trigger:
		set {raison.%arg 1%} to arg 2
		set {reporter.%arg 1%} to player
		add arg 1 to {reportlist::*}
		send "&6Le report a bien été enregistré, le staff va traiter ta demande !"
		loop all players:
			loop-player has permission "{@perm}":
				send "{@p}&fLe joueur &c%arg 1% &fa été report pour &c%arg 2% &fpar &c%player%" to loop-player



#Voir les reports

command /reports:
	permission: mod
	trigger:
		wait 3 ticks
		open chest with 6 rows named "{@p}Admin list" to player
		wait 3 ticks
		set {_slot} to 0
		set {_size} to size of {reportlist::*}
		loop {reportlist::*}:
			set {_l} to loop-value
			evaluate "format slot {_slot} of player with skull of {_l} named ""&6%{_l}%"" with lore ""&c&l%{raison.%{_l}%}% &7report par &c&o%{reporter.%{_1}%}%"" to close then run [make player execute command ""/reportoptions %{_l}%""]"
			add 1 to {_slot}



#Commande de reset des reports

command /reportreset:
	permission: report.admin
	trigger:
		clear {reportlist::*}
		send "{@p}&fLes reports ont bien étés reset"



#Menu du choix de la sentence

command /reportoptions <player>:
	permission: mod
	trigger:
		wait 3 ticks
		open chest with 5 rows named "{@p}Choisir peine" to player
		wait 3 ticks
		set {g} to 0
		loop 9 times:
			format slot {g} of player with 160:8 named "&a" to be unstealable
			add 1 to {g}
		set {g} to 9
		loop 3 times:
			format slot {g} of player with 160:8 named "&a" to be unstealable
			add 9 to {g}
		set {g} to 17
		loop 3 times:
			format slot {g} of player with 160:8 named "&a" to be unstealable
			add 9 to {g}
		set {g} to 36
		loop 9 times:
			format slot {g} of player with 160:8 named "&a" to be unstealable
			add 1 to {g}
		format slot 10 of player with skull of arg 1 named "&6%arg 1%" with lore "&c&l%{raison.%arg 1%}%" to be unstealable
		format slot 12 of player with 101 named "&cBan" to close then run [make player execute command "/menuban %arg 1%"]
		format slot 13 of player with 166 named "&eWarn" to close then run [make player execute command "/warn %arg 1% %{raison.%arg 1%}%"]
		format slot 14 of player with cobweb named "&aMute" to close then run [make player execute command "/menumute %arg 1%"]
		format slot 19 of player with sugar named "&fRetirer ce report" to close then run [make player execute command "/reportdelete %arg 1%"]
		format slot 34 of player with arrow named "&9Retour" to close then run [make player execute command "/reports"]



#Commande de suppression du report

command /reportdelete <player>:
	permission: mod
	trigger:
		remove arg 1 from {reportlist::*}



#Menu choix du temps de ban

command /menuban <player>:
	permission: mod
	trigger:
		wait 3 ticks
		open chest with 3 rows named "&cChoix du temps de ban" to player
		wait 3 ticks
		set {g} to 0
		loop 9 times:
			format slot {g} of player with 160:8 named "&a" to be unstealable
			add 1 to {g}
		set {g} to 8
		format slot 9 of player with 160:8 named "&a" to be unstealable
		format slot 17 of player with 160:8 named "&a" to be unstealable
		set {g} to 18
		loop 9 times:
			format slot {g} of player with 160:8 named "&a" to be unstealable
			add 1 to {g}
		format slot 10 of player with 101 named "&cBan ->" to be unstealable
		format slot 12 of player with 38:6 named "&c15 jours" to close then run [make player execute command "/tempban %arg 1% 15days"]
		format slot 13 of player with 37:0 named "&c30 jours" to close then run [make player execute command "/tempban %arg 1% 30days"]
		format slot 14 of player with 38:5 named "&c90 jours" to close then run [make player execute command "/tempban %arg 1% 90days"]
		format slot 15 of player with 38:4 named "&c180 jours" to close then run [make player execute command "/tempban %arg 1% 180days"]
		format slot 16 of player with 38:0 named "&cA vie" to close then run [make player execute command "/ban %arg 1%"]



#Menu choix du temps de mute

command /menumute <player>:
	permission: mod
	trigger:
		wait 3 ticks
		open chest with 3 rows named "&cChoix du temps de mute" to player
		wait 3 ticks
		set {g} to 0
		loop 9 times:
			format slot {g} of player with 160:8 named "&a" to be unstealable
			add 1 to {g}
		set {g} to 8
		format slot 9 of player with 160:8 named "&a" to be unstealable
		format slot 17 of player with 160:8 named "&a" to be unstealable
		set {g} to 18
		loop 9 times:
			format slot {g} of player with 160:8 named "&a" to be unstealable
			add 1 to {g}
		format slot 10 of player with cobweb named "&cMute ->" to be unstealable
		format slot 12 of player with 38:6 named "&c1 heures" to close then run [make player execute command "/mute %arg 1% 1h %{raison.%arg 1%}%"]
		format slot 13 of player with 37:0 named "&c6 heures" to close then run [make player execute command "/mute %arg 1% 6h days %{raison.%arg 1%}%"]
		format slot 14 of player with 38:5 named "&c1 jour" to close then run [make player execute command "/mute %arg 1% 1d %{raison.%arg 1%}%"]
		format slot 15 of player with 38:4 named "&c1 semaine" to close then run [make player execute command "/mute %arg 1% 1w %{raison.%arg 1%}%"]
		format slot 16 of player with 38:0 named "&cA vie" to close then run [make player execute command "/mute %arg 1%"]

 

 

 

autre.sk

Modifié par LSW

1 réponse à cette question

Messages recommandés

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • Créer...

Information importante

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.