Shows the player a menu for managing a player.
This menu is the menu that is opened when the player clicks on a player in the manage players menu.
The player viewing the UI.
The player to manage.
A promise that resolves to 0 if the previous menu should be closed, or 1 if the previous menu should be reopened.
0
1
Split each of the cases in the switch function into separate functions.
If sourceEntity is not an instance of the Player class or an instance of the executeCommandPlayerW class with a Player linked to it.
Shows the player a menu for managing a player.
This menu is the menu that is opened when the player clicks on a player in the manage players menu.