From df5434930c18f0ce9b60e6535886c266343b9733 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Mon, 1 Jan 2018 01:53:03 +0100 Subject: [PATCH] Renamed SettingChangeEvent to FlagChangeEvent and removed references to SettingsFlag --- ...gChangeEvent.java => FlagChangeEvent.java} | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) rename src/main/java/us/tastybento/bskyblock/api/events/island/{SettingChangeEvent.java => FlagChangeEvent.java} (59%) diff --git a/src/main/java/us/tastybento/bskyblock/api/events/island/SettingChangeEvent.java b/src/main/java/us/tastybento/bskyblock/api/events/island/FlagChangeEvent.java similarity index 59% rename from src/main/java/us/tastybento/bskyblock/api/events/island/SettingChangeEvent.java rename to src/main/java/us/tastybento/bskyblock/api/events/island/FlagChangeEvent.java index 3a860aef2..3dbf6a610 100644 --- a/src/main/java/us/tastybento/bskyblock/api/events/island/SettingChangeEvent.java +++ b/src/main/java/us/tastybento/bskyblock/api/events/island/FlagChangeEvent.java @@ -3,32 +3,32 @@ package us.tastybento.bskyblock.api.events.island; import java.util.UUID; import us.tastybento.bskyblock.api.events.IslandBaseEvent; +import us.tastybento.bskyblock.api.flags.Flag; import us.tastybento.bskyblock.database.objects.Island; -import us.tastybento.bskyblock.database.objects.Island.SettingsFlag; /** - * This event is fired when a player changes a setting on his island + * This event is fired when a player changes a flag on his island *

* Canceling this event will result in canceling the change. * * @author Poslovitch * @since 1.0 */ -public class SettingChangeEvent extends IslandBaseEvent { +public class FlagChangeEvent extends IslandBaseEvent { private final UUID player; - private final SettingsFlag editedSetting; + private final Flag editedFlag; private final boolean setTo; /** * @param island * @param player - * @param editedSetting + * @param editedFlag * @param setTo */ - public SettingChangeEvent(Island island, UUID player, SettingsFlag editedSetting, boolean setTo) { + public FlagChangeEvent(Island island, UUID player, Flag editedFlag, boolean setTo) { super(island); this.player = player; - this.editedSetting = editedSetting; + this.editedFlag = editedFlag; this.setTo = setTo; } @@ -40,10 +40,10 @@ public class SettingChangeEvent extends IslandBaseEvent { } /** - * @return the edited setting + * @return the edited flag */ - public SettingsFlag getSetting() { - return this.editedSetting; + public Flag getFlag() { + return this.editedFlag; } /**