Skip to content

Deleting players from world #448

@gbaman

Description

@gbaman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions