Problème Plugin SwornGuns

Non plus :s
Code:
[15:28:31 ERROR]: Could not pass event PlayerInteractEvent to SwornGuns v2.4-SNAPSHOT-b442
org.bukkit.event.EventException: null
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:234) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:201) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:197) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1430) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PacketPlayInArmAnimation.a(PacketPlayInArmAnimation.java:24) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PacketPlayInArmAnimation.a(PacketPlayInArmAnimation.java:1) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_151]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_151]
        at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]
Caused by: java.lang.NoSuchMethodError: net.dmulloy2.swornguns.types.GunPlayer.<init>(Lnet/dmulloy2/swornguns/SwornGuns;Lorg/bukkit/entity/Player;)V
        at net.dmulloy2.swornguns.SwornGuns.getGunPlayer(SwornGuns.java:343) ~[?:?]
        at net.dmulloy2.swornguns.listeners.PlayerListener.onPlayerInteract(PlayerListener.java:86) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        ... 18 more
 
Je ne sais pas, mais je veux juste modifier un seul message, et je crois que cette modification apporte des erreurs de chemin d'accès ou de je ne sais quoi :s Mais je pense que ça viens peux être du décompileur ( je dis des trucs au pif, la plupart du temps j'ai de bonnes idées x') )
 
Ben là il cherche une méthode et il la trouve pas. Ça part tout de même bien loin pour la modification d'UN message, non ?
On a bien vu qu'il y avait un problème de build.. A moins que tu penses que je supprime des méthodes pour modifier le message.

J'ai reconstruit le projet, j'espère que ça va aller.
 

Fichiers joints

:s
Code:
[14:11:26 ERROR]: Could not pass event PlayerInteractEvent to SwornGuns v2.2.2
org.bukkit.event.EventException: null
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:234) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PlayerInteractManager.a(PlayerInteractManager.java:458) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:951) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:37) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PacketPlayInUseItem.a(PacketPlayInUseItem.java:1) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_151]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_151]
        at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]
Caused by: java.lang.Error: Unresolved compilation problems:
        Type mismatch: cannot convert from element type Object to Gun
        The type new Comparator(){} must implement the inherited abstract method Comparator.compare(Object, Object)

        at net.dmulloy2.swornguns.types.GunPlayer.calculateGuns(GunPlayer.java:390) ~[?:?]
        at net.dmulloy2.swornguns.types.GunPlayer.<init>(GunPlayer.java:49) ~[?:?]
        at net.dmulloy2.swornguns.SwornGuns.getGunPlayer(SwornGuns.java:333) ~[?:?]
        at net.dmulloy2.swornguns.listeners.PlayerListener.onPlayerInteract(PlayerListener.java:78) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_151]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_151]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_151]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        ... 17 more
 
Je pense avoir fait quelque chose de bien, car il me ramène sur d'autre logs :
Code:
[16:24:47 ERROR]: Error occurred while enabling SwornGuns v2.2.2 (Is it up to date?)
java.lang.ClassFormatError: Incompatible magic value 791292426 in class file net/dmulloy2/swornguns/types/GunPlayer
        at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_151]
        at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.8.0_151]
        at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.8.0_151]
        at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.8.0_151]
        at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.8.0_151]
        at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_151]
        at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_151]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_151]
        at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_151]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:191) ~[Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:97) ~[Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_151]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_151]
        at net.dmulloy2.swornguns.SwornGuns.getOnlinePlayers(SwornGuns.java:325) ~[?:?]
        at net.dmulloy2.swornguns.SwornGuns.onEnable(SwornGuns.java:138) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:402) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:384) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:333) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.reload(CraftServer.java:755) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.Bukkit.reload(Bukkit.java:525) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:651) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1392) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1227) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_151]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_151]
        at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [Spigot-v1_12_2.jar:git-Spigot-7754231-94b0980]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_151]

Auriez-vous besoin du fichier ".jar" qui m'as fourni ce code d'erreur ?
 
Dernière édition par un modérateur:
Bonsoir, j'ai essayé un autre plugin d'arme : CrackShot
Merci de votre aide, mais je n'utiliserai plus SwornGuns, je préfére vous avertir au cas ou vous vous acharnerez à trouver une solution, pour au bout du compte, avoir aucune utilité :(
 
Dernière édition:
N'empêche qu'on aurait pu y aller à la méthode barbare: Tu ouvres tout les fichiers, et dans chacun d'eux: ctrl+F, chercher "Reloading", remplacer par: "Rechargement", puis Tout Remplacer