Jump to content
News ticker
  • Bienvenue sur le nouveau forum VeryGames
  • Welcome to the new VeryGames forum
  • VeryNews

    Problème avec la création d'items!


    sysko
     Share

    Recommended Posts

    Bonjour,

     

    J'ai une erreur, j'ai créé de nouveaux items mais je ne peux pas les casser, que faire? voici ce que j'obtiens:

     

    http://www.noelshack.com/2012-40-1349544352-sans-titre.png

     

    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] Could not pass event PlayerInteractEvent to Modifyworld[/font][/color]
    [color=#FFFFFF][font=Terminal]org.bukkit.event.EventException[/font][/color]
    [color=#FFFFFF][font=Terminal]at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341)[/font][/color]
    [color=#FFFFFF][font=Terminal]at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)[/font][/color]
    [color=#FFFFFF][font=Terminal]at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)[/font][/color]
    [color=#FFFFFF][font=Terminal]at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)[/font][/color]
    [color=#FFFFFF][font=Terminal]at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)[/font][/color]
    [color=#FFFFFF][font=Terminal]at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:114)[/font][/color]
    [color=#FFFFFF][font=Terminal]at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:547)[/font][/color]
    [color=#FFFFFF][font=Terminal]at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)[/font][/color]
    [color=#FFFFFF][font=Terminal]at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)[/font][/color]
    [color=#FFFFFF][font=Terminal]at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)[/font][/color]
    [color=#FFFFFF][font=Terminal]at net.minecraft.server.ServerConnection.b(SourceFile:35)[/font][/color]
    [color=#FFFFFF][font=Terminal]at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)[/font][/color]
    [color=#FFFFFF][font=Terminal]at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:577)[/font][/color]
    [color=#FFFFFF][font=Terminal]at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)[/font][/color]
    [color=#FFFFFF][font=Terminal]at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)[/font][/color]
    [color=#FFFFFF][font=Terminal]at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)[/font][/color]
    [color=#FFFFFF][font=Terminal]at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)[/font][/color]
    [color=#FFFFFF][font=Terminal]Caused by: java.lang.NullPointerException[/font][/color]
    [color=#FFFFFF][font=Terminal]at ru.tehkode.modifyworld.ModifyworldListener.getMaterialPermission(ModifyworldListener.java:88)[/font][/color]
    [color=#FFFFFF][font=Terminal]at ru.tehkode.modifyworld.ModifyworldListener.getMaterialPermission(ModifyworldListener.java:92)[/font][/color]
    [color=#FFFFFF][font=Terminal]at ru.tehkode.modifyworld.ModifyworldListener.getBlockPermission(ModifyworldListener.java:96)[/font][/color]
    [color=#FFFFFF][font=Terminal]at ru.tehkode.modifyworld.ModifyworldListener.getObjectPermission(ModifyworldListener.java:161)[/font][/color]
    [color=#FFFFFF][font=Terminal]at ru.tehkode.modifyworld.ModifyworldListener.assemblePermission(ModifyworldListener.java:146)[/font][/color]
    [color=#FFFFFF][font=Terminal]at ru.tehkode.modifyworld.ModifyworldListener.permissionDenied(ModifyworldListener.java:122)[/font][/color]
    [color=#FFFFFF][font=Terminal]at ru.tehkode.modifyworld.handlers.PlayerListener.onPlayerInteract(PlayerListener.java:216)[/font][/color]
    [color=#990000][font=Terminal]at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
    [/font][/color][color=#FFFFFF][font=Terminal]at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[/font][/color]
    [color=#FFFFFF][font=Terminal]at java.lang.reflect.Method.invoke(Method.java:601)[/font][/color]
    [color=#FFFFFF][font=Terminal]at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)[/font][/color]
    [color=#FFFFFF][font=Terminal]... 16 more[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] java.lang.NullPointerException[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at com.griefcraft.lwc.LWC.resolveProtectionConfiguration(LWC.java:1273)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at com.griefcraft.listeners.LWCPlayerListener.onPlayerInteract(LWCPlayerListener.java:145)[/font][/color]
    [color=#990000][font=Terminal]>18:26:54 [sEVERE] at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
    [/font][/color][color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at java.lang.reflect.Method.invoke(Method.java:601)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:114)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:547)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at net.minecraft.server.Packet14BlockDig.handle(SourceFile:46)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:282)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at net.minecraft.server.ServerConnection.b(SourceFile:35)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:577)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:473)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:405)[/font][/color]
    [color=#FFFFFF][font=Terminal]>18:26:54 [sEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)[/font][/color]

     

    Merci de votre aide :)

    Link to comment
    Share on other sites

    Bonsoir,

     

    Le problème viens de LWC, vous devez le modifier car, à mon avis, il ne reconnait pas le bloc que vous avez ajouté, ce qui est normal. LWC ne reconnait pas votre bloc puisqu'il ne s'agit pas d'un bloc de base et il génère donc une exception.

    Vous pouvez aussi opter pour un autre plugin, ce qui a mon avis sera plus facile et rapide à mettre en place.

    Link to comment
    Share on other sites

    Guest Invité
    Sinon, comment crée-t'on des items ?

     

    Il faut modifier le .jar de ton serveur. Tu peux regarder sur bukkit.fr il y a déjà pas mal de tuto sur le sujet.

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

     Share

    ×
    ×
    • Create New...