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

Cannot invoke org.bukkit.entity.Player.getServer() because this.playerSnapshot is null #11

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

Comments

@Vladg24YT
Copy link
Member

Attempted to deop a player that isn't online.

Log:

2022-07-15 20:50:37 [WARNING] Unexpected exception while parsing console command
org.bukkit.command.CommandException: Unhandled exception executing 'deop Vladg24' in org.bukkit.command.defaults.DeopCommand@339354e7
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:135)
	at ru.vladthemountain.lilybukkit.LilyBukkit.dispatchCommand(LilyBukkit.java:508)
	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.NullPointerException: Cannot invoke "org.bukkit.entity.Player.getServer()" because "this.playerSnapshot" is null
	at ru.vladthemountain.lilybukkit.LBOfflinePlayer.setOp(LBOfflinePlayer.java:70)
	at org.bukkit.command.defaults.DeopCommand.execute(DeopCommand.java:29)
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:131)
	... 5 more
@Vladg24YT Vladg24YT added bug Something isn't working LilyBukkit LilyBukkit-related labels Jul 15, 2022
@Vladg24YT Vladg24YT self-assigned this Jul 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working LilyBukkit LilyBukkit-related
Projects
Status: Done
Development

No branches or pull requests

1 participant