mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-04 09:10:17 +01:00
minor web tweaks
This commit is contained in:
parent
3006e941ba
commit
ecf94b8706
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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/";
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user