Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception if you execute a command from rcon #91

Open
Narimm opened this issue Jul 31, 2020 · 0 comments
Open

Exception if you execute a command from rcon #91

Narimm opened this issue Jul 31, 2020 · 0 comments

Comments

@Narimm
Copy link
Member

Narimm commented Jul 31, 2020

08:45:58 [ hardcore]: An unexpected exception occurred during the execution of a script.
08:45:58 [ hardcore]: org.bukkit.command.CommandException: Unhandled exception executing command 'th' in plugin TrueHardcore v1.4-SNAPSHOT-212
08:45:58 [ hardcore]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47)
08:45:58 [ hardcore]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159)
08:45:58 [ hardcore]: at org.bukkit.craftbukkit.v1_16_R1.CraftServer.dispatchCommand(CraftServer.java:794)
08:45:58 [ hardcore]: An unexpected exception occurred during the execution of your script. Please check the console for more information.
08:45:58 [ hardcore]: at com.laytonsmith.abstraction.bukkit.BukkitMCServer.dispatchCommand(BukkitMCServer.java:108)
08:45:58 [ hardcore]: at com.laytonsmith.core.AliasCore.lambda$alias$0(AliasCore.java:162)
08:45:58 [ hardcore]: at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:2781)
08:45:58 [ hardcore]: at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:2729)
08:45:58 [ hardcore]: at com.laytonsmith.core.Script.run(Script.java:200)
08:45:58 [ hardcore]: at com.laytonsmith.core.AliasCore.alias(AliasCore.java:148)
08:45:58 [ hardcore]: at com.laytonsmith.commandhelper.CommandHelperServerListener.onServerCommand(CommandHelperServerListener.java:48)
08:45:58 [ hardcore]: at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor440.execute(Unknown Source)
08:45:58 [ hardcore]: at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69)
08:45:58 [ hardcore]: at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
08:45:58 [ hardcore]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
08:45:58 [ hardcore]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607)
08:45:58 [ hardcore]: at au.com.addstar.rcon.NetHandler$1.run(NetHandler.java:51)
08:45:58 [ hardcore]: at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftTask.run(CraftTask.java:99)
08:45:58 [ hardcore]: at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468)
08:45:58 [ hardcore]: at net.minecraft.server.v1_16_R1.MinecraftServer.b(MinecraftServer.java:1292)
08:45:58 [ hardcore]: at net.minecraft.server.v1_16_R1.DedicatedServer.b(DedicatedServer.java:377)
08:45:58 [ hardcore]: at net.minecraft.server.v1_16_R1.MinecraftServer.a(MinecraftServer.java:1213)
08:45:58 [ hardcore]: at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:1001)
08:45:58 [ hardcore]: at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$a$0(MinecraftServer.java:177)
08:45:58 [ hardcore]: at java.lang.Thread.run(Thread.java:748)
08:45:58 [ hardcore]: Caused by: java.lang.ClassCastException: au.com.addstar.rcon.UserCommandSender cannot be cast to org.bukkit.entity.Player
08:45:58 [ hardcore]: at au.com.addstar.truehardcore.commands.CommandTH.onCommand(CommandTH.java:107)
08:45:58 [ hardcore]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
08:45:58 [ hardcore]: ... 23 more
08:46:01 [ survival]: [PLAYER_COMMA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant