Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AntonIXO
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
|
Beta Was this translation helpful? Give feedback.
-
I want to write command to save instance of player.
To do this I need to get instanceContainer of player inside command:
Player player = MinecraftServer.getCommandManager().getConsoleSender().asPlayer(); Instance instance = player.getInstance(); instance.saveChunksToStorage();
This one is not working for me and .asPlayer is deprecated.
How can I implement this better?
Beta Was this translation helpful? Give feedback.
All reactions