Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

NullPointerException in EnchantmentWrapper.getStartLevel #31

Open
ghost opened this issue Oct 18, 2016 · 6 comments
Open

NullPointerException in EnchantmentWrapper.getStartLevel #31

ghost opened this issue Oct 18, 2016 · 6 comments

Comments

@ghost
Copy link

ghost commented Oct 18, 2016

Plugin: https://www.spigotmc.org/resources/kit.24164/

Error: 20:52:05 [ALERT] java.lang.NullPointerException
at org.bukkit.enchantments.EnchantmentWrapper.getStartLevel(EnchantmentWrapper.java:29)
at org.bukkit.inventory.ItemStack.addEnchantment(ItemStack.java:437)
at fr.werter.kit.item(kit.java:91)
at fr.werter.kit.onCommand(kit.java:156)
at nl.rutgerkok.pokkit.plugin.PokkitPlugin.onCommand(PokkitPlugin.java:279)
at cn.nukkit.command.PluginCommand.execute(PluginCommand.java:33)
at cn.nukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:225)
at cn.nukkit.Server.dispatchCommand(Server.java:630)
at cn.nukkit.Player.handleDataPacket(Player.java:2663)
at cn.nukkit.network.Network.processPackets(Network.java:193)
at cn.nukkit.network.Network.processBatch(Network.java:164)
at cn.nukkit.Player.handleDataPacket(Player.java:1750)
at cn.nukkit.network.RakNetInterface.handleEncapsulated(RakNetInterface.java:154)
at cn.nukkit.raknet.server.ServerHandler.handlePacket(ServerHandler.java:123)
at cn.nukkit.network.RakNetInterface.process(RakNetInterface.java:63)
at cn.nukkit.network.Network.processInterfaces(Network.java:75)
at cn.nukkit.Server.tick(Server.java:989)
at cn.nukkit.Server.tickProcessor(Server.java:786)
at cn.nukkit.Server.start(Server.java:765)
at cn.nukkit.Server.(Server.java:456)
at cn.nukkit.Nukkit.main(Nukkit.java:65)

@ghost
Copy link
Author

ghost commented Oct 18, 2016

@leonardosnt
Copy link

"Do not expect that Pokkit allows you to run a random Spigot plugin on Nukkit. Pokkit is still very incomplete, so only a handful of plugins will work..."

@MrPowerGamerBR
Copy link
Collaborator

In general, I will only fix a bug for you if happens to also affect me. Pokkit is a personal project that I uploaded in the hope that it will be useful to others, but I'm not willing to spend the time to create a complete, bug-free implementation of the Spigot API. See my reasoning in the introduction.

Also, quoting me won't automagically make me impelment that, I'm not messing around with Nukkit (and Pokkit) until 0.16.0 is released and Nukkit is updated to 0.16.0.

@ghost
Copy link
Author

ghost commented Oct 18, 2016

Ok ,sorry. I'm created with one answer . thx

@ghost ghost closed this as completed Oct 18, 2016
@rutgerkok rutgerkok changed the title Enchantments NullPointerException in EnchantmentWrapper.getStartLevel Oct 22, 2016
@rutgerkok
Copy link
Owner

I'm reopening this issue. Although I personally have no interest in fixing this right now, it is still a valid bug report, so it can be left open.

@rutgerkok rutgerkok reopened this Oct 22, 2016
@ghost
Copy link
Author

ghost commented Oct 22, 2016

Ok @rutgerkok :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants