-
Notifications
You must be signed in to change notification settings - Fork 115
TeamManager
Daan van Yperen edited this page Jul 29, 2014
·
2 revisions
You may sometimes want to create teams in your game, so that some players are team mates. A player can only belong to a single team.
World world = new World();
world.setManager(new TeamManager());
Add the player to the Player manager upon creation:
world.getManager(TeamManager.class).setTeam(String player, String team)
You can now query the system when needed.
world.getManager(TeamManager.class).getPlayers(String team)
world.getManager(TeamManager.class).getTeam(String player)
Use this class together with PlayerManager.
- Overview
- Concepts
- Getting Started
- Using
- More guides
- Plugins
- Game Gallery
- Tools and Frameworks
- API reference