Replies: 1 comment
-
You need to get it through the plugin. You can use bukkit to get the plugin and cast it to MarriageMasterPlugin has a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i try do it
MarriagePlayer marriagePlayer = (MarriagePlayer) player;
But server send me error:
[11:16:51 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'marrytogglesit' in plugin ClanAddon v1.0-SNAPSHOT at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.16.5.jar:git-Purpur-1111] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:172) ~[patched_1.16.5.jar:git-Purpur-1111] at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:810) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2306) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:2121) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:2074) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:50) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:8) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:55) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1336) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1329) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1305) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1149) ~[patched_1.16.5.jar:git-Purpur-1111] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:292) ~[patched_1.16.5.jar:git-Purpur-1111] at java.lang.Thread.run(Thread.java:842) [?:?] Caused by: java.lang.ClassCastException: class org.bukkit.craftbukkit.v1_16_R3.entity.CraftPlayer cannot be cast to class at.pcgamingfreaks.MarriageMaster.Bukkit.API.MarriagePlayer (org.bukkit.craftbukkit.v1_16_R3.entity.CraftPlayer is in unnamed module of loader 'app'; at.pcgamingfreaks.MarriageMaster.Bukkit.API.MarriagePlayer is in unnamed module of loader org.bukkit.plugin.java.PluginClassLoader @7888ef32) at orglll.clanaddon.cmd.onCommand(cmd.java:123) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.16.5.jar:git-Purpur-1111] ... 19 more
Beta Was this translation helpful? Give feedback.
All reactions