-
Notifications
You must be signed in to change notification settings - Fork 33
Deleting players from world #448
Copy link
Copy link
Open
Description
Describe the bug
I'm attempting to delete all players associated with a world (Bedrock). Using the below code, players don't seem to be deleted from the world. I'm assuming I am doing something wrong or missing something.
To Reproduce
Steps to reproduce the behavior:
Run the following code
import amulet
level = amulet.load_level("world_folder")
players = level.all_player_ids()
for p in players:
level.players.delete_player(p)
level.save()
level.close()There are no errors etc.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels