Potion Stack Plugin

Discussion in 'Plugin Requests' started by TedTheGamerYT, Jul 19, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    TedTheGamerYT

    Plugin category: Fun, I guess?

    Suggested name: PotionStack

    What I want: Since I already know you guys are going to direct me to PotionStacker or StackableItems, this is different. Basically a plugin that allows /pot and stacks potions, but only for groups/players with a certain permission. And a configureable message when using /pot

    Ideas for commands: /pot

    Ideas for permissions: potionstack.allow

    When I'd like it by: ASAP
     
  2. Offline

    chunkaymonkay

  3. Offline

    TedTheGamerYT

  4. Offline

    Asc_Nicholas

    @TedTheGamerYT

    I'll see what I can do about this!

    -EDIT- I've laid out the structure for this plugin and I'll be completing it some time tomorrow
     
    Last edited: Jul 19, 2015
  5. Offline

    TedTheGamerYT

    Thanks so much man :D
     
  6. Offline

    Asc_Nicholas

    @TedTheGamerYT
    PotionStack on BukkitDev
    Source Code on GitHub


    Everything should be working fine, let me know if there are issues. The command to access potion stacking is /potionstack. The permission for that command is potionstack.allow and in the config.yml you can display a message when the command is executed.
     
    Last edited: Jul 20, 2015
  7. Offline

    TedTheGamerYT

    Thank you, I'll start using it as soon as I get home :)
     
  8. Offline

    Asc_Nicholas

    @TedTheGamerYT

    The plugin is now on BukkitDev, let me know how things go either comment here or on the plugin's BukkitDev page
     
  9. Offline

    TedTheGamerYT

    When I do /potionstack it says an internal error occured
     
  10. Offline

    Asc_Nicholas

    @TedTheGamerYT

    Did you download the version from BukkitDev?

    -EDIT- I just tried the plugin on two different servers. My local dev server and a hosted online server and they both work. What version of Bukkit are you using? This was built for v1.8 and should work with Spigot as well.
     
    Last edited: Jul 21, 2015
  11. Offline

    Twistaar_

    Doesn't work, just get a internal error.
     
  12. Offline

    Asc_Nicholas

    What server version are you using? Also what kind of errors are you getting in the console?
     
  13. Offline

    Ventality

    Code:
    [22:36:32 INFO]: Ventality issued server command: /potionstack
    [22:36:32 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'potionstack' in plugin PotionStack v0.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Spigot-1642]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) ~[craftbukkit.jar:git-Spigot-1642]
        at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767) ~[craftbukkit.jar:git-Spigot-1642]
        at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1043) [craftbukkit.jar:git-Spigot-1642]
        at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:880) [craftbukkit.jar:git-Spigot-1642]
        at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit.jar:git-Spigot-1642]
        at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65) [craftbukkit.jar:git-Spigot-1642]
        at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:186) [craftbukkit.jar:git-Spigot-1642]
        at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [craftbukkit.jar:git-Spigot-1642]
        at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [craftbukkit.jar:git-Spigot-1642]
        at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [craftbukkit.jar:git-Spigot-1642]
        at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [craftbukkit.jar:git-Spigot-1642]
        at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [craftbukkit.jar:git-Spigot-1642]
        at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Spigot-1642]
    Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_8_R3/Item
        at io.github.Asiatic.PotionStack.PotionStack.onCommand(PotionStack.java:61) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-1642]
        ... 13 more
    Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_8_R3.Item
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) ~[craftbukkit.jar:git-Spigot-1642]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[craftbukkit.jar:git-Spigot-1642]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_20]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_20]
        at io.github.Asiatic.PotionStack.PotionStack.onCommand(PotionStack.java:61) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Spigot-1642]
        ... 13 more
    >
    
     
  14. Offline

    Twistaar_

    1.7.10 Spigot, and here:

     
  15. Offline

    Asc_Nicholas

    That's the issue. The plugin was built for Spigot/Craftbukkit 1.8+
     
  16. Offline

    Twistaar_

    Using 1.8 now,

    Code:
    31.07 14:31:05 [Server] INFO ... 14 more
    31.07 14:31:05 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at io.github.Asiatic.PotionStack.PotionStack.onCommand(PotionStack.java:61) ~[?:?]
    31.07 14:31:05 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_45]
    31.07 14:31:05 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_45]
    31.07 14:31:05 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) ~[spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_8_R3.Item
    31.07 14:31:05 [Server] INFO ... 14 more
    31.07 14:31:05 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at io.github.Asiatic.PotionStack.PotionStack.onCommand(PotionStack.java:61) ~[?:?]
    31.07 14:31:05 [Server] INFO Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_8_R3/Item
    31.07 14:31:05 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
    31.07 14:31:05 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696) [spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_45]
    31.07 14:31:05 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_45]
    31.07 14:31:05 [Server] INFO at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:53) [spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:26) [spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:950) [spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerConnection.java:1115) [spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:646) ~[spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-BT36_1.8_04.29.jar:git-Spigot-550ebac-7019900]
    31.07 14:31:05 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'potionstack' in plugin PotionStack v0.1
    31.07 14:31:05 [Server] ERROR null
    31.07 14:30:59 [Server] ERROR Plugin PotionStack v0.1 has failed to register events for class io.github.Asiatic.PotionStack.PotionStack because net/minecraft/server/v1_8_R3/Item does not exist.
    31.07 14:30:59 [Server] INFO PotionStack enabled!
    
     
  17. Offline

    Asc_Nicholas

    Hmm I'll look into this issue. I know the plugin works on my server and a few others and I'm not entirely sure why its not working for you. I've tried switching JARs and everything.

    Can you send me a link to what JAR you are using currently?
     
  18. Offline

    Ventality

    When I do /Version http://prntscr.com/7zeoah - Could you also make an alias for the command /pstack <3 ty
     
  19. Offline

    Asc_Nicholas

    @Ventality

    The reason the plugin is probably not working is due to the fact that you are using Spigot 1.7.10 and the plugin was built for 1.8+

    I'll look into adding the alias in the next update.
     
  20. Offline

    Ventality

    Could you decompile it so it works with Spigot 1.7.10 ?
     
Thread Status:
Not open for further replies.

Share This Page