CommandHelper

CommandHelper

46.5k Downloads

run() and sudo() broken on build 2345/2346

LadyCailinBot opened this issue ยท 2 comments

commented

CMDHELPER-2773 - Reported by PseudoKnight

Confirmed working on build 2343 and 2344, so use those.

You can reproduce this with any command in run() or sudo().

sudo('/perm player setgroup Player Group')
on or around \CommandHelper\config.txt:396.
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:2346-92111b3,master. Here's the stacktrace:
java.lang.ClassCastException: com.laytonsmith.abstraction.bukkit.BukkitMCPlayer cannot be cast to com.laytonsmith.abstraction.bukkit.BukkitMCCommandSender
	at com.laytonsmith.abstraction.bukkit.BukkitMCServer.dispatchCommand(BukkitMCServer.java:66)
	at com.laytonsmith.core.functions.Meta$sudo.exec(Meta.java:200)
	at com.laytonsmith.core.Script.eval(Script.java:301)
	at com.laytonsmith.core.Script.eval(Script.java:265)
	at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1489)
	at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1454)
	at com.laytonsmith.core.Script.run(Script.java:165)
	at com.laytonsmith.core.AliasCore.alias(AliasCore.java:140)
	at com.laytonsmith.commandhelper.CommandHelperListener.runAlias(CommandHelperListener.java:86)
	at com.laytonsmith.commandhelper.CommandHelperListener.onPlayerCommandPreprocess(CommandHelperListener.java:131)
	at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
	at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
	at net.minecraft.server.v1_6_R2.PlayerConnection.handleCommand(PlayerConnection.java:946)
	at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.java:872)
	at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:829)
	at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49)
	at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
	at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116)
	at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
	at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
	at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
	at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
	at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
	at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
	at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)```

(Is there any way to see the test results in the new builds? I suspect this might have come up there.)
commented

Comment by LadyCailin

I don't see a way to see the tests, unfortunately. I presume they're still running though? I'll have to ping sk about that, because that would be useful information, no? Perhaps it only shows failing tests. (As to the bug, I'm still working on that.)

commented

Comment by LadyCailin

Fixed in latest build.