Package com.minigameworld.managers.event
Class GameListenerManager
java.lang.Object
com.minigameworld.managers.event.GameListenerManager
- All Implemented Interfaces:
 org.bukkit.event.Listener
[Rules]
- Must register instance which processes playing game player's only (not about viewers and outers)
- If event is detectable with players by
- If event is not detectable with players by
In this
 
[Listener registration tutorial]
If listener related with minigame needs to handle events
1. Implements
2. Add method as a protected or public with
3. Register in
- Must register instance which processes playing game player's only (not about viewers and outers)
- If event is detectable with players by
MiniGameEventDetector, the
 event will be only passed to the player's playing game listeners.- If event is not detectable with players by
MiniGameEventDetector,
 the event will be passed to all listeners related with event.In this
GameListenerManager class, use getListeners(Class)
 to get listeners with event[Listener registration tutorial]
If listener related with minigame needs to handle events
1. Implements
GameEventListener2. Add method as a protected or public with
GameEvent annotation3. Register in
MiniGameManager.createGameInstance(MiniGame) and unregister in
 MiniGameManager.removeGameInstance(MiniGame)- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidvoidregisterGameListener(GameEventListener instance)voidunregisterGameListener(GameEventListener instance) 
- 
Constructor Details
- 
GameListenerManager
 
 - 
 - 
Method Details
- 
printAllListener
public void printAllListener() - 
registerGameListener
 - 
unregisterGameListener
 
 -