CommandHelper

CommandHelper

46.5k Downloads

Error with sudo() and runas()

LadyCailinBot opened this issue ยท 1 comments

commented

CMDHELPER-2808 - Reported by Mateusz.Stefaniak

I get it when running runas or sudo by no-op player.

Uh oh! You've found an error in CommandHelper. This is an error caused by your code, so you may be able to find a workaround, but is ultimately an error in CommandHelper itself. The line of code that caused the error was this:
sudo('/spawn')
on or around /home/m04rcr4f7/morecraft/plugins/CommandHelper/config.txt:92.
Please report this error to the developers, and be sure to include the version numbers: Server version: 1.6.2-R0.2-SNAPSHOT; CommandHelper version: 3.3.1-SNAPSHOT:2393-059aae4,master. Here's the stacktrace:
java.lang.ClassCastException: com.sun.proxy.$Proxy51 cannot be cast to com.laytonsmith.abstraction.bukkit.BukkitMCCommandSender
at com.laytonsmith.abstraction.bukkit.BukkitMCServer.dispatchCommand(BukkitMCServer.java:72)
at com.laytonsmith.core.functions.Meta$sudo.exec(Meta.java:205)
at com.laytonsmith.core.Script.eval(Script.java:300)
at com.laytonsmith.core.Script.eval(Script.java:264)
at com.laytonsmith.core.Script.seval(Script.java:210)
at com.laytonsmith.core.functions.BasicLogic$ifelse.execs(BasicLogic.java:388)
at com.laytonsmith.core.Script.eval(Script.java:256)
at com.laytonsmith.core.Script.seval(Script.java:210)
at com.laytonsmith.core.functions.BasicLogic$ifelse.execs(BasicLogic.java:388)
at com.laytonsmith.core.Script.eval(Script.java:256)
at com.laytonsmith.core.Script.seval(Script.java:210)
at com.laytonsmith.core.functions.BasicLogic$ifelse.execs(BasicLogic.java:388)
at com.laytonsmith.core.Script.eval(Script.java:256)
at com.laytonsmith.core.Script.eval(Script.java:264)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1489)
at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1454)
at com.laytonsmith.core.constructs.CClosure.execute(CClosure.java:142)
at com.laytonsmith.core.functions.Web$http_request.executeFinish(Web.java:386)
at com.laytonsmith.core.functions.Web$http_request.access$300(Web.java:139)
at com.laytonsmith.core.functions.Web$http_request$2$1.run(Web.java:358)
at com.laytonsmith.abstraction.bukkit.BukkitConvertor$1.call(BukkitConvertor.java:389)
at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftFuture.run(CraftFuture.java:89)
at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:784)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:318)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:741)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:625)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

commented

Comment by EntityReborn

What code did you have when this happened?