From 526fe9ce81070431feac155b63c963238daf86da Mon Sep 17 00:00:00 2001 From: BONNe Date: Sun, 16 Jun 2019 20:25:02 +0300 Subject: [PATCH] Update flag Registering to newest addon API. --- src/main/java/world/bentobox/challenges/ChallengesAddon.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/world/bentobox/challenges/ChallengesAddon.java b/src/main/java/world/bentobox/challenges/ChallengesAddon.java index 59d3a38..44ad706 100644 --- a/src/main/java/world/bentobox/challenges/ChallengesAddon.java +++ b/src/main/java/world/bentobox/challenges/ChallengesAddon.java @@ -209,8 +209,8 @@ public class ChallengesAddon extends Addon { this.registerListener(new SaveListener(this)); // Register Flags - this.getPlugin().getFlagsManager().registerFlag(CHALLENGES_ISLAND_PROTECTION); - this.getPlugin().getFlagsManager().registerFlag(CHALLENGES_WORLD_PROTECTION); + this.registerFlag(CHALLENGES_ISLAND_PROTECTION); + this.registerFlag(CHALLENGES_WORLD_PROTECTION); // Register Request Handlers this.registerRequestHandler(new ChallengeListRequestHandler(this));