Update flag Registering to newest addon API.

This commit is contained in:
BONNe 2019-06-16 20:25:02 +03:00
parent 071c6ca83a
commit 526fe9ce81

View File

@ -209,8 +209,8 @@ public class ChallengesAddon extends Addon {
this.registerListener(new SaveListener(this)); this.registerListener(new SaveListener(this));
// Register Flags // Register Flags
this.getPlugin().getFlagsManager().registerFlag(CHALLENGES_ISLAND_PROTECTION); this.registerFlag(CHALLENGES_ISLAND_PROTECTION);
this.getPlugin().getFlagsManager().registerFlag(CHALLENGES_WORLD_PROTECTION); this.registerFlag(CHALLENGES_WORLD_PROTECTION);
// Register Request Handlers // Register Request Handlers
this.registerRequestHandler(new ChallengeListRequestHandler(this)); this.registerRequestHandler(new ChallengeListRequestHandler(this));