Aller au contenu
  • 0

[Permission & GUI] Problème de Gui TuSKe et Permission EX


Question

Posté(e)

Version de Minecraft: 1.9.4

Version de Skript: 2.2dev-32d

Problème: Un gui ne s'ouvre pas à cause d'un problème de permission "null" d'après la console, log ci-joint après

Addons: TuSKe, SkQuery, WildSkript, MundoSK, Skellett, SkRayFall, SkQuery-Lime, skript-yaml, SkStuff et SkUtilities

 

Donc je voulais créer un système de /nick assez similaire à Hypixel que j'ai réussi mais en passant sous Permission EX car je faisais mes tests grâce au OP vanilla je me suis rendu compte que ça coinssait, mais quand je me ReOP ca remarche ? WHY ?

 

Je vous mets mon code :

(Ce n'est qu'un brouillon tout est bizzard comme les commandes avec les "§" que je ne sais pas comment faire une fonction pour que ce soit 100% fiable, bref)

 


command /rankset [<offline player>] [<text>]:
permission: set.rank
permission message: &cVous n'avez pas la permission Requise (<ADMINISTRATOR)
trigger:
if arg 1 is not set:
send "&cVeuillez préciser un joueur"
else:
if arg 2 is not set:
open virtual chest inventory with size 6 named "&6Changement de grade" to player
format gui slot 0 of player with red stained glass pane named " " to do nothing
format gui slot 1 of player with red stained glass pane named " " to do nothing
format gui slot 2 of player with red stained glass pane named " " to do nothing
format gui slot 3 of player with red stained glass pane named " " to do nothing
format gui slot 4 of player with red stained glass pane named " " to do nothing
format gui slot 5 of player with red stained glass pane named " " to do nothing
format gui slot 6 of player with red stained glass pane named " " to do nothing
format gui slot 7 of player with red stained glass pane named " " to do nothing
format gui slot 8 of player with red stained glass pane named " " to do nothing
format gui slot 9 of player with red stained glass pane named " " to do nothing
format gui slot 10 of player with red stained glass pane named " " to do nothing
format gui slot 11 of player with red stained glass pane named " " to do nothing
format gui slot 12 of player with red stained glass pane named " " to do nothing
format gui slot 14 of player with red stained glass pane named " " to do nothing
format gui slot 15 of player with red stained glass pane named " " to do nothing
format gui slot 16 of player with red stained glass pane named " " to do nothing
format gui slot 17 of player with red stained glass pane named " " to do nothing
format gui slot 18 of player with red stained glass pane named " " to do nothing
format gui slot 19 of player with red stained glass pane named " " to do nothing
format gui slot 20 of player with red stained glass pane named " " to do nothing
format gui slot 21 of player with red stained glass pane named " " to do nothing
format gui slot 22 of player with red stained glass pane named " " to do nothing
format gui slot 23 of player with red stained glass pane named " " to do nothing
format gui slot 24 of player with red stained glass pane named " " to do nothing
format gui slot 25 of player with red stained glass pane named " " to do nothing
format gui slot 26 of player with red stained glass pane named " " to do nothing
format gui slot 27 of player with red stained glass pane named " " to do nothing
format gui slot 35 of player with red stained glass pane named " " to do nothing
format gui slot 36 of player with red stained glass pane named " " to do nothing
format gui slot 44 of player with red stained glass pane named " " to do nothing
format gui slot 45 of player with red stained glass pane named " " to do nothing
format gui slot 46 of player with red stained glass pane named " " to do nothing
format gui slot 47 of player with red stained glass pane named " " to do nothing
format gui slot 48 of player with red stained glass pane named " " to do nothing
format gui slot 49 of player with red stained glass pane named " " to do nothing
format gui slot 50 of player with red stained glass pane named " " to do nothing
format gui slot 51 of player with red stained glass pane named " " to do nothing
format gui slot 52 of player with red stained glass pane named " " to do nothing
format gui slot 53 of player with red stained glass pane named " " to do nothing
format gui slot 37 of player with red stained glass pane named " " to do nothing
format gui slot 39 of player with red stained glass pane named " " to do nothing
format gui slot 41 of player with red stained glass pane named " " to do nothing
format gui slot 43 of player with red stained glass pane named " " to do nothing
#----------------------------------------------------------------------------------------------------
format gui slot 13 of player with skull of player named "&cJoueur: &b%arg-1%" with lore "&7&o(Surnommé: &a&o%{nick.%arg-1%}%&7&o)||&7&oChoisisez le grade à changer à cette personne" to close
#----------------------------------------------------------------------------------------------------
format gui slot 28 of player with 35:8 named "&7Joueur" to run player command "§confirmrank %arg-1% Joueur"
format gui slot 29 of player with 35:5 named "&a[VIP]" to run player command "§confirmrank %arg-1% vip"
format gui slot 30 of player with green wool named "&a[VIP&e+&a]" to run player command "§confirmrank %arg-1% vip+"
format gui slot 31 of player with light blue wool named "&b[MVP]" to run player command "§confirmrank %arg-1% mvp"
format gui slot 32 of player with blue wool named "&b[MVP&c+&b]" to run player command "§confirmrank %arg-1% mvp+"
format gui slot 33 of player with orange wool named "&6[MVP&c++&6]" to run player command "§confirmrank %arg-1% mvp++"
format gui slot 34 of player with magenta stained hardened clay named "&5[&dSpécials ranks&5]" to run player command "§specialrank %arg-1%"
format gui slot 38 of player with green stained hardened clay named "&2[MOD]" to run player command "§confirmrank %arg-1% modo"
format gui slot 40 of player with red stained hardened clay named "&c[ADMIN]" to run player command "§confirmrank %arg-1% admin"
format gui slot 42 of player with blue stained hardened clay named "&9[HELPER]" to run player command "§confirmrank %arg-1% helper"

#Il y a une autre partie du code que je juge inutile pour votre aide

#Et voici un exemple d'autre commande qui ne veut pas s'executer

command /§confirmrank [<offline player>] [<text>]:
permission: set.rank
permission message: &cVous n'avez pas la permission requise (<ADMINISTRATOR)
trigger:
if arg 2 is "Joueur":
open virtual chest inventory with size 4 named "&7Joueur %{nick.%arg-1%}%" to player
format gui slot 13 of player with 35:8 named "&6Confirmation du changement de grade" to do nothing
format gui slot 21 of player with light green dye named "&aAppliquer le changement" with lore "&eJoueur: &f%arg 1%||&eGrade: &7Joueur" to close then run player command "/rankset %arg 1% Joueur"
format gui slot 23 of player with barrier named "&cAnnuler" with lore "&7(Vers - Menu Principal)" to run player command "/rankset %arg 1%"

#Il y a encore une suite mais elle ne vous est pas utile car c'est de la répétition[/Code]

 

Ensuite les erreurs de la console (petites) :

 

[Code]
[16:50:29 ERROR]: Could not pass event InventoryClickEvent to Skript v2.2-dev32d
java.lang.IllegalArgumentException: Permission name cannot be null
at org.bukkit.permissions.PermissibleBase.addAttachment(PermissibleBase.java:197) ~[spigot.jar:git-Spigot-4af49dc-c5e9a16]
at org.bukkit.craftbukkit.v1_9_R2.entity.CraftHumanEntity.addAttachment(CraftHumanEntity.java:125) ~[spigot.jar:git-Spigot-4af49dc-c5e9a16]
at com.github.tukenuke.tuske.util.CommandUtils.runCommand(CommandUtils.java:37) ~[?:?]
at com.github.tukenuke.tuske.sections.gui.EffFormatGUI.lambda$execute$0(EffFormatGUI.java:132) ~[?:?]
at com.github.tukenuke.tuske.manager.gui.GUI.run(GUI.java:29) ~[?:?]
at com.github.tukenuke.tuske.manager.gui.GUIManager$1.onClick(GUIManager.java:149) ~[?:?]
at com.github.tukenuke.tuske.listeners.GUIListener.onEvent(GUIListener.java:57) ~[?:?]
at com.github.tukenuke.tuske.manager.gui.v2.SkriptGUIEvent.check(SkriptGUIEvent.java:39) ~[?:?]
at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:145) ~[?:?]
at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:109) ~[?:?]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-4af49dc-c5e9a16]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-4af49dc-c5e9a16]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.PlayerConnection.a(PlayerConnection.java:1851) [spigot.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.PacketPlayInWindowClick.a(SourceFile:33) [spigot.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.PacketPlayInWindowClick.a(SourceFile:10) [spigot.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-4af49dc-c5e9a16]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_161]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_161]
at net.minecraft.server.v1_9_R2.SystemUtils.a(SourceFile:45) [spigot.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.MinecraftServer.D(MinecraftServer.java:726) [spigot.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:399) [spigot.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:665) [spigot.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:564) [spigot.jar:git-Spigot-4af49dc-c5e9a16]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
[/Code]

 

Espérant compter sur votre aide, merci[/color][/font]

25 réponses à cette question

Messages recommandés

  • 0
Posté(e)

1) Une optimisation ferait le plus grand bien à tout le monde

command /rankset [<offline player>] [<text>]:
   permission: set.rank
   permission message: &cVous n'avez pas la permission Requise (<ADMINISTRATOR)
   trigger:
       if arg 1 is not set:
           send "&cVeuillez préciser un joueur"
       else:
           if arg 2 is not set:
               open virtual chest inventory with size 6 named "&6Changement de grade" to player
               format gui slot (integers from 0 to 27), 35, 36, 39, 41, 43 44, 45, 46, 47, 48, 49, 50, 51, 52 and 53 of player with red stained glass pane named " " to do nothing
       #----------------------------------------------------------------------------------------------------
               format gui slot 13 of player with skull of player named "&cJoueur: &b%arg-1%" with lore "&7&o(Surnommé: &a&o%{nick.%arg-1%}%&7&o)||&7&oChoisisez le grade à changer à cette personne" to close
       #----------------------------------------------------------------------------------------------------
               format gui slot 28 of player with 35:8 named "&7Joueur" to run player command "§confirmrank %arg-1% Joueur"
               format gui slot 29 of player with 35:5 named "&a[VIP]" to run player command "§confirmrank %arg-1% vip"
               format gui slot 30 of player with green wool named "&a[VIP&e+&a]" to run player command "§confirmrank %arg-1% vip+"
               format gui slot 31 of player with light blue wool named "&b[MVP]" to run player command "§confirmrank %arg-1% mvp"
               format gui slot 32 of player with blue wool named "&b[MVP&c+&b]" to run player command "§confirmrank %arg-1% mvp+"
               format gui slot 33 of player with orange wool named "&6[MVP&c++&6]" to run player command "§confirmrank %arg-1% mvp++"
               format gui slot 34 of player with magenta stained hardened clay named "&5[&dSpécials ranks&5]" to run player command "§specialrank %arg-1%"
               format gui slot 38 of player with green stained hardened clay named "&2[MOD]" to run player command "§confirmrank %arg-1% modo"
               format gui slot 40 of player with red stained hardened clay named "&c[ADMIN]" to run player command "§confirmrank %arg-1% admin"
               format gui slot 42 of player with blue stained hardened clay named "&9[HELPER]" to run player command "§confirmrank %arg-1% helper"

 

Ensuite, l'erreur vient de permission ex et non tuske

  • J'aime 1
  • 0
Posté(e)
1) Une optimisation ferait le plus grand bien à tout le monde

command /rankset [<offline player>] [<text>]:
   permission: set.rank
   permission message: &cVous n'avez pas la permission Requise (<ADMINISTRATOR)
   trigger:
       if arg 1 is not set:
           send "&cVeuillez préciser un joueur"
       else:
           if arg 2 is not set:
               open virtual chest inventory with size 6 named "&6Changement de grade" to player
               format gui slot (integers from 0 to 27), 35, 36, 39, 41, 43 44, 45, 46, 47, 48, 49, 50, 51, 52 and 53 of player with red stained glass pane named " " to do nothing
       #----------------------------------------------------------------------------------------------------
               format gui slot 13 of player with skull of player named "&cJoueur: &b%arg-1%" with lore "&7&o(Surnommé: &a&o%{nick.%arg-1%}%&7&o)||&7&oChoisisez le grade à changer à cette personne" to close
       #----------------------------------------------------------------------------------------------------
               format gui slot 28 of player with 35:8 named "&7Joueur" to run player command "§confirmrank %arg-1% Joueur"
               format gui slot 29 of player with 35:5 named "&a[VIP]" to run player command "§confirmrank %arg-1% vip"
               format gui slot 30 of player with green wool named "&a[VIP&e+&a]" to run player command "§confirmrank %arg-1% vip+"
               format gui slot 31 of player with light blue wool named "&b[MVP]" to run player command "§confirmrank %arg-1% mvp"
               format gui slot 32 of player with blue wool named "&b[MVP&c+&b]" to run player command "§confirmrank %arg-1% mvp+"
               format gui slot 33 of player with orange wool named "&6[MVP&c++&6]" to run player command "§confirmrank %arg-1% mvp++"
               format gui slot 34 of player with magenta stained hardened clay named "&5[&dSpécials ranks&5]" to run player command "§specialrank %arg-1%"
               format gui slot 38 of player with green stained hardened clay named "&2[MOD]" to run player command "§confirmrank %arg-1% modo"
               format gui slot 40 of player with red stained hardened clay named "&c[ADMIN]" to run player command "§confirmrank %arg-1% admin"
               format gui slot 42 of player with blue stained hardened clay named "&9[HELPER]" to run player command "§confirmrank %arg-1% helper"

 

Ensuite, l'erreur vient de permission ex et non tuske

Malheureusement c’est la seule version qui marche en 1.9 de PermissionEX mais merci pour ton astuce

 

EDIT : Effectivement problème avec PEX, quand je fais /pl j'ai PEX en rouge. Mais c'est la seule version 1.9 :/ Avez-vous d'autre plugins ? (Hors GroupManager, il ne me convient pas)

  • 0
Posté(e)
Malheureusement c’est la seule version qui marche en 1.9 de PermissionEX mais merci pour ton astuce

 

EDIT : Effectivement problème avec PEX, quand je fais /pl j'ai PEX en rouge. Mais c'est la seule version 1.9 :/ Avez-vous d'autre plugins ? (Hors GroupManager, il ne me convient pas)

Passe en 1.12 :p

  • 0
Posté(e)
1) Une optimisation ferait le plus grand bien à tout le monde

command /rankset [<offline player>] [<text>]:
   permission: set.rank
   permission message: &cVous n'avez pas la permission Requise (<ADMINISTRATOR)
   trigger:
       if arg 1 is not set:
           send "&cVeuillez préciser un joueur"
       else:
           if arg 2 is not set:
               open virtual chest inventory with size 6 named "&6Changement de grade" to player
               format gui slot (integers from 0 to 27), 35, 36, 39, 41, 43 44, 45, 46, 47, 48, 49, 50, 51, 52 and 53 of player with red stained glass pane named " " to do nothing
       #----------------------------------------------------------------------------------------------------
               format gui slot 13 of player with skull of player named "&cJoueur: &b%arg-1%" with lore "&7&o(Surnommé: &a&o%{nick.%arg-1%}%&7&o)||&7&oChoisisez le grade à changer à cette personne" to close
       #----------------------------------------------------------------------------------------------------
               format gui slot 28 of player with 35:8 named "&7Joueur" to run player command "§confirmrank %arg-1% Joueur"
               format gui slot 29 of player with 35:5 named "&a[VIP]" to run player command "§confirmrank %arg-1% vip"
               format gui slot 30 of player with green wool named "&a[VIP&e+&a]" to run player command "§confirmrank %arg-1% vip+"
               format gui slot 31 of player with light blue wool named "&b[MVP]" to run player command "§confirmrank %arg-1% mvp"
               format gui slot 32 of player with blue wool named "&b[MVP&c+&b]" to run player command "§confirmrank %arg-1% mvp+"
               format gui slot 33 of player with orange wool named "&6[MVP&c++&6]" to run player command "§confirmrank %arg-1% mvp++"
               format gui slot 34 of player with magenta stained hardened clay named "&5[&dSpécials ranks&5]" to run player command "§specialrank %arg-1%"
               format gui slot 38 of player with green stained hardened clay named "&2[MOD]" to run player command "§confirmrank %arg-1% modo"
               format gui slot 40 of player with red stained hardened clay named "&c[ADMIN]" to run player command "§confirmrank %arg-1% admin"
               format gui slot 42 of player with blue stained hardened clay named "&9[HELPER]" to run player command "§confirmrank %arg-1% helper"

 

Ensuite, l'erreur vient de permission ex et non tuske

Alors j'ai re-testé avec un autre plugin de permission qui fonctionne avec skript et je retrouve la même erreur quand je clique dans le gui et n’exécute pas la commande, je pense que cela vient de Skript quelqu'un à une autre solution ?

 

Bien à vous,

 

EDIT: Vous allez rire mais j'ai trifouillé TuSKe avec Winrar, et j'ai ouvert plugin, je vois quoi ?? "versions: 1.8.1" REALLY ? J'avais pris TuSKe 1.8 !!! Tu m'étonnes que ça marchait pas, mais il était en vert quand je faisais /plugins, mouais je vais prendre un TuSKe 1.9 (s'il existe)

 

Re-EDIT: TuSKe 1.9 n'existe pas ?? -_-

  • 0
Posté(e)
Alors j'ai re-testé avec un autre plugin de permission qui fonctionne avec skript et je retrouve la même erreur quand je clique dans le gui et n’exécute pas la commande, je pense que cela vient de Skript quelqu'un à une autre solution ?

 

Bien à vous,

 

EDIT: Vous allez rire mais j'ai trifouillé TuSKe avec Winrar, et j'ai ouvert plugin, je vois quoi ?? "versions: 1.8.1" REALLY ? J'avais pris TuSKe 1.8 !!! Tu m'étonnes que ça marchait pas, mais il était en vert quand je faisais /plugins, mouais je vais prendre un TuSKe 1.9 (s'il existe)

 

Re-EDIT: TuSKe 1.9 n'existe pas ?? -_-

 

C'est la version de l'addon et non la version de serveur

  • 0
Posté(e)

J’ai mis en 1.12 meme erreur on peut cliquer mais quand on clique ca n’execute pas la commande, et renvoi l’erreur et ce à l’infini et quand je me op ca marche, pourtant ce n’est pas dû au plugin de permission

  • 0
Posté(e)
J’ai mis en 1.12 meme erreur on peut cliquer mais quand on clique ca n’execute pas la commande, et renvoi l’erreur et ce à l’infini et quand je me op ca marche, pourtant ce n’est pas dû au plugin de permission

Quand on clique sur quoi ?

  • 0
Posté(e)
Si les commandes confirmrank sont de script je te conseille de passer par des fonction ...

J’ai dit que je modifierais ça car je ne sais faire cette fonction :/

 

« (Ce n'est qu'un brouillon tout est bizzard comme les commandes avec les "§" que je ne sais pas comment faire une fonction pour que ce soit 100% fiable, bref) »

  • 0
Posté(e)
J’ai dit que je modifierais ça car je ne sais faire cette fonction :/

 

« (Ce n'est qu'un brouillon tout est bizzard comme les commandes avec les "§" que je ne sais pas comment faire une fonction pour que ce soit 100% fiable, bref) »

bha apprend car là nous on a pas le truc des confirmrank et le problème viens de là car tu dis que en op ça marche

  • 0
Posté(e)
bha apprend car là nous on a pas le truc des confirmrank et le problème viens de là car tu dis que en op ça marche

Il n’y a aucun tutoriel sur comment réaliser cette fonction :/ De plus je vais vous transmettre la suite du code

  • 0
Posté(e)
Il n’y a aucun tutoriel sur comment réaliser cette fonction :/ De plus je vais vous transmettre la suite du code

Je vais essayer de voir pour ton code, mais je te conseil quand même très fortement d'apprend les fonctions avec par exemple ce tuto :

https://skript-mc.fr/forum/threads/%E2%9C%AA%E2%9C%AA%E2%9C%AA%E2%9C%AB%E2%9C%AB-les-fonctions-sans-return.13535/

Car ça reste une notion super important et super utile...

  • 0
Posté(e)
Je vais essayer de voir pour ton code, mais je te conseil quand même très fortement d'apprend les fonctions avec par exemple ce tuto :

https://skript-mc.fr/forum/threads/✪✪✪✫✫-les-fonctions-sans-return.13535/

Car ça reste une notion super important et super utile...

Je te remercie ! :) Mais je connais déjà les fonctions :/ Le seul truc que je ne connais pas c'est de vérifier si le joueur a un gui ouvert :/

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.