Skip to content

Exception if you execute a command from rcon #91

@Narimm

Description

@Narimm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions