Using the /effect command in comandsigns doesn't work. #186


  • New
Open
  • WolfeBersahd created this issue Sep 5, 2018

    Spigot Version: 1.12.2

    Vault Version: 1.6.1

     

    Nature of the problem:

     Using /effect within a command sign produces a "Could not pass event PlayerInteractEvent to CommandSigns v1.9.3.3
    org.bukkit.event.EventException: null"

     

    Steps to reproduce the problem:

    1. Step 1 Ensure you have he proper version of Spigot, Vault and CommandSigns installed.
    2. Step 2 Create a CommandSign with "/cmds 1 /effect", "/cmds 1 ?/#effect <name> speed 3500"

    Results:
    The command sign doesn't works errors spam console.

    Console Output:
    [Server thread/ERROR]: Could not pass event PlayerInteractEvent to CommandSigns v1.9.3.3
    org.bukkit.event.EventException: null
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:235) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:202) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at net.minecraft.server.v1_12_R1.PlayerInteractManager.a(PlayerInteractManager.java:109) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:875) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at net.minecraft.server.v1_12_R1.PacketPlayInBlockDig.a(SourceFile:40) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at net.minecraft.server.v1_12_R1.PacketPlayInBlockDig.a(SourceFile:10) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_181]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_181]
    at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_181]
    Caused by: org.bukkit.command.CommandException: Unhandled exception executing 'effect WolfeBersahd minecraft:haste 3600 0 false' in org.bukkit.craftbukkit.v1_12_R1.command.VanillaCommandWrapper(effect)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:148) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:648) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:574) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.zonedabone.commandsigns.handler.CommandHandler.run(CommandHandler.java:110) ~[CommandSigns.jar:?]
    at org.zonedabone.commandsigns.handler.CommandHandler.handle(CommandHandler.java:80) ~[CommandSigns.jar:?]
    at org.zonedabone.commandsigns.SignExecutor.runLines(SignExecutor.java:238) ~[CommandSigns.jar:?]
    at org.zonedabone.commandsigns.ClickHandler.onInteract(ClickHandler.java:160) ~[CommandSigns.jar:?]
    at org.zonedabone.commandsigns.listener.EventListener.onPlayerInteract(EventListener.java:61) ~[CommandSigns.jar:?]
    at sun.reflect.GeneratedMethodAccessor171.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    ... 18 more
    Caused by: java.lang.ClassCastException: org.zonedabone.commandsigns.proxy.PlayerProxy cannot be cast to org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer
    at org.bukkit.craftbukkit.v1_12_R1.command.VanillaCommandWrapper.getListener(VanillaCommandWrapper.java:144) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.bukkit.craftbukkit.v1_12_R1.command.VanillaCommandWrapper.execute(VanillaCommandWrapper.java:36) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:648) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:574) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    at org.zonedabone.commandsigns.handler.CommandHandler.run(CommandHandler.java:110) ~[CommandSigns.jar:?]
    at org.zonedabone.commandsigns.handler.CommandHandler.handle(CommandHandler.java:80) ~[CommandSigns.jar:?]
    at org.zonedabone.commandsigns.SignExecutor.runLines(SignExecutor.java:238) ~[CommandSigns.jar:?]
    at org.zonedabone.commandsigns.ClickHandler.onInteract(ClickHandler.java:160) ~[CommandSigns.jar:?]
    at org.zonedabone.commandsigns.listener.EventListener.onPlayerInteract(EventListener.java:61) ~[CommandSigns.jar:?]
    at sun.reflect.GeneratedMethodAccessor171.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.12.2.jar:git-Spigot-642f6d2-57ab4cf]
    ... 18 more

  • WolfeBersahd added a tag New Sep 5, 2018

To post a comment, please login or register a new account.