CommandHelper

CommandHelper

46.5k Downloads

sudo() failure to op, stacktrace

LadyCailinBot opened this issue ยท 2 comments

commented

CMDHELPER-2939 - Reported by opoq

*:/list = sudo('/list')

[16:26:41 INFO]: opoq issued server command: /reloadaliases
[16:26:42 WARN]: [CommandHelper]: Failed to OP player opoq
[16:26:42 WARN]: Extra information about the error:
[16:26:42 WARN]: java.lang.ClassCastException: net.minecraft.server.v1_7_R3.OpList cannot be cast to java.util.Set
[16:26:42 WARN]: at com.laytonsmith.abstraction.bukkit.BukkitMCPlayer.setTempOp(BukkitMCPlayer.java:385)
[16:26:42 WARN]: at com.laytonsmith.core.functions.Meta$sudo.setOp(Meta.java:273)
[16:26:42 WARN]: at com.laytonsmith.core.functions.Meta$sudo.exec(Meta.java:215)
[16:26:42 WARN]: at com.laytonsmith.core.Script.eval(Script.java:352)
[16:26:42 WARN]: at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1842)
[16:26:42 WARN]: at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1802)
[16:26:42 WARN]: at com.laytonsmith.core.Script.run(Script.java:193)
[16:26:42 WARN]: at com.laytonsmith.core.AliasCore.alias(AliasCore.java:166)
[16:26:42 WARN]: at com.laytonsmith.commandhelper.CommandHelperListener.runAlias(CommandHelperListener.java:86)
[16:26:42 WARN]: at com.laytonsmith.commandhelper.CommandHelperListener.onPlayerCommandPreprocess(CommandHelperListener.java:131)
[16:26:42 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[16:26:42 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[16:26:42 WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[16:26:42 WARN]: at java.lang.reflect.Method.invoke(Method.java:606)
[16:26:42 WARN]: at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292)
[16:26:42 WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[16:26:42 WARN]: at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
[16:26:42 WARN]: at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
[16:26:42 WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
[16:26:42 WARN]: at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:971)
[16:26:42 WARN]: at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:830)
[16:26:42 WARN]: at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28)
[16:26:42 WARN]: at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:65)
[16:26:42 WARN]: at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:163)
[16:26:42 WARN]: at net.minecraft.server.v1_7_R3.ServerConnection.c(ServerConnection.java:77)
[16:26:42 WARN]: at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:713)
[16:26:42 WARN]: at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:283)
[16:26:42 WARN]: at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:576)
[16:26:42 WARN]: at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:482)
[16:26:42 WARN]: at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)
[16:26:43 ERROR]: Uh oh! You've found an error in Core.
This is an error caused while running your code, so you may be able to find a workaround, but is ultimately an error in Core itself.
The line of code that caused the error was this:
sudo('/list')
on or around /mc/plugins/CommandHelper/config.txt:35.
Please report this error to the developers, and be sure to include the version numbers:
Server version: 1.7.8-R0.1-SNAPSHOT;
CommandHelper version: 3.3.1-SNAPSHOT:2680-c984666,master;
Loaded extensions and versions:
Core (version 3.3.1);
Here's the stacktrace:
java.lang.ClassCastException: com.sun.proxy.$Proxy54 cannot be cast to com.laytonsmith.abstraction.bukkit.BukkitMCCommandSender
at com.laytonsmith.abstraction.bukkit.BukkitMCServer.dispatchCommand(BukkitMCServer.java:85)
at com.laytonsmith.core.functions.Meta$sudo.exec(Meta.java:219)
at com.laytonsmith.core.Script.eval(Script.java:352)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1842)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1802)
at com.laytonsmith.core.Script.run(Script.java:193)
at com.laytonsmith.core.AliasCore.alias(AliasCore.java:166)
at com.laytonsmith.commandhelper.CommandHelperListener.runAlias(CommandHelperListener.java:86)
at com.laytonsmith.commandhelper.CommandHelperListener.onPlayerCommandPreprocess(CommandHelperListener.java:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:971)
at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:830)
at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28)
at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:65)
at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:163)
at net.minecraft.server.v1_7_R3.ServerConnection.c(ServerConnection.java:77)
at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:713)
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:283)
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:576)
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:482)
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)

commented

Comment by LadyCailin

Grr, they changed how it works again.

commented

Comment by LadyCailin

Should be good to go in the latest builds, let me know if you have any further problems!