From ecf94b870648974c4280b2ba73d5d75015807102 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 13 May 2018 10:32:32 +1000 Subject: [PATCH] minor web tweaks --- .../java/com/intellectualcrafters/plot/commands/Load.java | 6 ------ .../java/com/intellectualcrafters/plot/commands/Save.java | 8 -------- .../com/intellectualcrafters/plot/config/Settings.java | 4 ++-- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Load.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Load.java index 9c5e6c256..c5309ba80 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Load.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Load.java @@ -30,12 +30,6 @@ public class Load extends SubCommand { @Override public boolean onCommand(final PlotPlayer player, String[] args) { - - if (!Settings.Enabled_Components.METRICS) { - MainUtil.sendMessage(player, - "&cPlease enable metrics in order to use this command.\n&7 - Or host it yourself if you don't like the free service"); - return false; - } String world = player.getLocation().getWorld(); if (!PS.get().hasPlotArea(world)) { return !sendMessage(player, C.NOT_IN_PLOT_WORLD); diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Save.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Save.java index a0d409a87..bdf706faa 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Save.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Save.java @@ -3,7 +3,6 @@ package com.intellectualcrafters.plot.commands; import com.intellectualcrafters.jnbt.CompoundTag; import com.intellectualcrafters.plot.PS; import com.intellectualcrafters.plot.config.C; -import com.intellectualcrafters.plot.config.Settings; import com.intellectualcrafters.plot.object.Location; import com.intellectualcrafters.plot.object.Plot; import com.intellectualcrafters.plot.object.PlotId; @@ -14,7 +13,6 @@ import com.intellectualcrafters.plot.util.Permissions; import com.intellectualcrafters.plot.util.SchematicHandler; import com.intellectualcrafters.plot.util.TaskManager; import com.plotsquared.general.commands.CommandDeclaration; - import java.net.URL; import java.util.List; import java.util.UUID; @@ -29,12 +27,6 @@ public class Save extends SubCommand { @Override public boolean onCommand(final PlotPlayer player, String[] args) { - - if (!Settings.Enabled_Components.METRICS) { - MainUtil.sendMessage(player, - "&cPlease enable metrics in order to use this command.\n&7 - Or host it yourself if you don't like the free service"); - return false; - } String world = player.getLocation().getWorld(); if (!PS.get().hasPlotArea(world)) { return !sendMessage(player, C.NOT_IN_PLOT_WORLD); diff --git a/Core/src/main/java/com/intellectualcrafters/plot/config/Settings.java b/Core/src/main/java/com/intellectualcrafters/plot/config/Settings.java index 5c4bb0326..8283cc2b0 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/config/Settings.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/config/Settings.java @@ -213,13 +213,13 @@ public class Settings extends Config { " - Downloads can be deleted by the user", " - Supports plot uploads, downloads and saves", }) - public static String URL = "http://empcraft.com/plots/"; + public static String URL = "https://empcraft.com/plots/"; @Comment({ "The web interface for assets", " - All schematics are organized and public", " - Assets can be searched, selected and downloaded", }) - public static String ASSETS = "http://empcraft.com/assetpack/"; + public static String ASSETS = "https://empcraft.com/assetpack/"; }