minor web tweaks

This commit is contained in:
Jesse Boyd 2018-05-13 10:32:32 +10:00
parent 3006e941ba
commit ecf94b8706
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
3 changed files with 2 additions and 16 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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/";
}