-
Notifications
You must be signed in to change notification settings - Fork 114
TeamManager
Adrian Papari edited this page Jul 19, 2015
·
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(new WorldConfiguration(
.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