Remove static injections in ListenerService

- Get other classes via Inject annotation
- Remove no longer needed Utils methods (relates to #736)
- Create tests for ListenerService and AuthMeBlockListener
- Performance improvement: keep unrestricted names as Set instead of List for faster contains() method
This commit is contained in:
ljacqu
2016-06-02 12:46:54 +02:00
parent 2581b95afb
commit e75cff5fb8
12 changed files with 480 additions and 83 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ public class API {
*/
@Deprecated
public boolean isNPC(Player player) {
return Utils.isNPC(player);
return instance.getPluginHooks().isNpc(player);
}
}