Skip to content

Commit

Permalink
Remove 1.6.2 configuration version checker
Browse files Browse the repository at this point in the history
  • Loading branch information
nkomarn committed Nov 10, 2020
1 parent 2c1755c commit b2b3bac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 44 deletions.
10 changes: 1 addition & 9 deletions src/main/java/xyz/nkomarn/harbor/Harbor.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@

import com.earth2me.essentials.Essentials;
import org.bukkit.World;
import org.bukkit.boss.BossBar;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import xyz.nkomarn.harbor.command.ForceSkipCommand;
import xyz.nkomarn.harbor.command.HarborCommand;
import xyz.nkomarn.harbor.listener.BedListener;
import xyz.nkomarn.harbor.listener.PlayerListener;
import xyz.nkomarn.harbor.task.Checker;
import xyz.nkomarn.harbor.util.Config;
import xyz.nkomarn.harbor.util.Messages;
Expand Down Expand Up @@ -40,8 +37,7 @@ public void onEnable() {
Arrays.asList(
messages,
playerManager,
new BedListener(this),
new PlayerListener(this)
new BedListener(this)
).forEach(listener -> pluginManager.registerEvents(listener, this));

getCommand("harbor").setExecutor(new HarborCommand(this));
Expand All @@ -55,10 +51,6 @@ public void onEnable() {
if (config.getBoolean("metrics")) {
new Metrics(this);
}

if (!config.getString("version").equals("1.6.2")) {
getLogger().warning("Your Harbor configuration is outdated- please regenerate your config or Harbor may not work properly!");
}
}

@Override
Expand Down
35 changes: 0 additions & 35 deletions src/main/java/xyz/nkomarn/harbor/listener/PlayerListener.java

This file was deleted.

0 comments on commit b2b3bac

Please sign in to comment.