Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Player can't be cast to OfflinePlayer #16

Closed
Vladg24YT opened this issue Jul 16, 2022 · 0 comments
Closed

Player can't be cast to OfflinePlayer #16

Vladg24YT opened this issue Jul 16, 2022 · 0 comments
Assignees
Labels
bug Something isn't working CraftBukkit CraftBukkit-related LilyBukkit-API API-related

Comments

@Vladg24YT
Copy link
Member

Log:

[WARNING] Unexpected exception while parsing console command
org.bukkit.command.CommandException: Unhandled exception executing 'deop Vladg24' in org.bukkit.command.defaults.DeopCommand@29bf050f
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:135)
	at ru.vladthemountain.lilybukkit.LilyBukkit.dispatchCommand(LilyBukkit.java:512)
	at net.minecraft.server.MinecraftServer.commandLineParser(MinecraftServer.java:301)
	at net.minecraft.server.MinecraftServer.doTick(MinecraftServer.java:283)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:217)
	at net.minecraft.src.ThreadServerApplication.run(ThreadServerApplication.java:14)
Caused by: java.lang.ClassCastException: class ru.vladthemountain.lilybukkit.entity.LBPlayer cannot be cast to class org.bukkit.OfflinePlayer (ru.vladthemountain.lilybukkit.entity.LBPlayer and org.bukkit.OfflinePlayer are in unnamed module of loader 'app')
	at ru.vladthemountain.lilybukkit.LilyBukkit.getOfflinePlayer(LilyBukkit.java:677)
	at org.bukkit.command.defaults.DeopCommand.execute(DeopCommand.java:28)
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:131)
	... 5 more
@Vladg24YT Vladg24YT added bug Something isn't working CraftBukkit CraftBukkit-related labels Jul 16, 2022
@Vladg24YT Vladg24YT self-assigned this Jul 16, 2022
Vladg24YT added a commit that referenced this issue Jul 16, 2022
Vladg24YT added a commit to LilyBukkit/LilyBukkit-API that referenced this issue Jul 16, 2022
Fix Player cast to OfflinePlayer (LilyBukkit/LilyBukkit-QA#16)
@Vladg24YT Vladg24YT added the LilyBukkit-API API-related label Jul 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working CraftBukkit CraftBukkit-related LilyBukkit-API API-related
Projects
Status: Done
Development

No branches or pull requests

1 participant