mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 10:14:42 +02:00
Merge branch 'v5' into v6
# Conflicts: # Bukkit/src/main/java/com/plotsquared/bukkit/BukkitPlatform.java
This commit is contained in:
@ -42,7 +42,7 @@ import com.plotsquared.core.util.query.PlotQuery;
|
||||
public class Target extends SubCommand {
|
||||
|
||||
public Target() {
|
||||
super(Argument.PlotID);
|
||||
super();
|
||||
}
|
||||
|
||||
@Override public boolean onCommand(PlotPlayer<?> player, String[] args) {
|
||||
@ -51,6 +51,10 @@ public class Target extends SubCommand {
|
||||
MainUtil.sendMessage(player, Captions.NOT_IN_PLOT_WORLD);
|
||||
return false;
|
||||
}
|
||||
if (args.length == 0) {
|
||||
MainUtil.sendMessage(player, this.getUsage());
|
||||
return false;
|
||||
}
|
||||
Plot target = null;
|
||||
if (StringMan.isEqualIgnoreCaseToAny(args[0], "near", "nearest")) {
|
||||
int distance = Integer.MAX_VALUE;
|
||||
|
@ -260,6 +260,16 @@ public class Settings extends Config {
|
||||
@Comment("Whether or not automatic background caching should be enabled. It is HIGHLY recommended to keep this turned on."
|
||||
+ " This should only be disabled if the server has a very large number of plots (>100k)")
|
||||
public static boolean BACKGROUND_CACHING_ENABLED = true;
|
||||
@Comment("Whether the PaperMC service is enabled")
|
||||
public static boolean SERVICE_PAPER = true;
|
||||
@Comment("Whether the LuckPerms service is enabled")
|
||||
public static boolean SERVICE_LUCKPERMS = true;
|
||||
@Comment("Whether the Bukkit service is enabled")
|
||||
public static boolean SERVICE_BUKKIT = true;
|
||||
@Comment("Whether the EssentialsX service is enabled")
|
||||
public static boolean SERVICE_ESSENTIALSX = true;
|
||||
@Comment("Whether the BungeePerms service is enabled")
|
||||
public static boolean SERVICE_BUNGEE_PERMS = true;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user