mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-03 04:55:28 +02:00
Wire up inspect command settings
This commit is contained in:
@@ -360,10 +360,6 @@ public class MainConfig extends ConfigValidated {
|
||||
}
|
||||
}*/
|
||||
|
||||
/* Inspect command distance */
|
||||
if (getInspectDistance() <= 0) {
|
||||
reason.add(COMMANDS + "." + INSPECT1 + "." + MAX_DISTANCE + " should be greater than 0!");
|
||||
}
|
||||
|
||||
/*if (getTreeFellerThreshold() <= 0) {
|
||||
reason.add(ABILITIES + "." + LIMITS + "." + TREE_FELLER_THRESHOLD + " should be greater than 0!");
|
||||
@@ -547,15 +543,6 @@ public class MainConfig extends ConfigValidated {
|
||||
return getIntValue(PARTICLES, LEVEL_UP + TIER);
|
||||
}
|
||||
|
||||
public boolean getLargeFireworks() {
|
||||
return getBooleanValue(PARTICLES, LARGE_FIREWORKS);
|
||||
}
|
||||
|
||||
/* Inspect command distance */
|
||||
public double getInspectDistance() {
|
||||
return getDoubleValue(COMMANDS, INSPECT1, MAX_DISTANCE);
|
||||
}
|
||||
|
||||
/*
|
||||
* SKILL SETTINGS
|
||||
*/
|
||||
|
@@ -9,17 +9,21 @@ public class ConfigCommandsInspect {
|
||||
private static final double INSPECT_MAX_DISTANCE_DEFAULT = 30.0D;
|
||||
private static final boolean LIMIT_INSPECT_RANGE_DEFAULT = false;
|
||||
private static final boolean ALLOW_OFFLINE_INSPECTION_DEFAULT = true;
|
||||
private static final String BYPASS_PERMISSION = "mcmmo.commands.mcrank.others.far";
|
||||
|
||||
@Setting(value = "Inspect-Max-Distance", comment = "The maximum range at which players can inspect one another." +
|
||||
"\nIs only used if limit inspect range is turned on." +
|
||||
"\nDefault value: "+INSPECT_MAX_DISTANCE_DEFAULT)
|
||||
private double inspectCommandMaxDistance = INSPECT_MAX_DISTANCE_DEFAULT;
|
||||
|
||||
@Setting(value = "Limit-Inspect-Range", comment = "Inspection is limited by the distance between players instead of always being usable.")
|
||||
@Setting(value = "Limit-Inspect-Range", comment = "Inspection is limited by the distance between players instead of always being usable." +
|
||||
"Permission to bypass this limit - " + BYPASS_PERMISSION
|
||||
+"\nDefault value: "+LIMIT_INSPECT_RANGE_DEFAULT)
|
||||
private boolean limitInspectRange = LIMIT_INSPECT_RANGE_DEFAULT;
|
||||
|
||||
@Setting(value = "Allow-Offline-Inspection", comment = "If set to true players will be able to look at the profiles of anyone on the server whether they are connected or not." +
|
||||
"\nAdmins and the console can always check the profiles of offline players.")
|
||||
"\nAdmins and the console can always check the profiles of offline players." +
|
||||
"\nDefault value: "+ALLOW_OFFLINE_INSPECTION_DEFAULT)
|
||||
private boolean allowInspectOnOfflinePlayers = ALLOW_OFFLINE_INSPECTION_DEFAULT;
|
||||
|
||||
public double getInspectCommandMaxDistance() {
|
||||
|
Reference in New Issue
Block a user