forked from Upstream/CitizensCMD
😂
This commit is contained in:
parent
65601ddbff
commit
ed505a87bf
@ -152,7 +152,7 @@ public final class CitizensCMD extends JavaPlugin {
|
||||
|
||||
waitingList = new HashMap<>();
|
||||
|
||||
setShift(settings.getProperty(Settings.SHIT_CONFIRM));
|
||||
setShift(settings.getProperty(Settings.SHIFT_CONFIRM));
|
||||
|
||||
switch (settings.getProperty(Settings.TIME_DISPLAY).toLowerCase()) {
|
||||
case "short":
|
||||
@ -284,7 +284,7 @@ public final class CitizensCMD extends JavaPlugin {
|
||||
return false;
|
||||
}
|
||||
economy = registeredServiceProvider.getProvider();
|
||||
shift = settings.getProperty(Settings.SHIT_CONFIRM);
|
||||
shift = settings.getProperty(Settings.SHIFT_CONFIRM);
|
||||
return economy != null;
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ public final class Settings implements SettingsHolder {
|
||||
public static final Property<Integer> DEFAULT_COOLDOWN = PropertyInitializer.newProperty("default-cooldown", 0);
|
||||
|
||||
@Comment({"", "When using a NPC with price, true means that to confirm the use the player needs to seek or press shift"})
|
||||
public static final Property<Boolean> SHIT_CONFIRM = PropertyInitializer.newProperty("shift-confirm", true);
|
||||
public static final Property<Boolean> SHIFT_CONFIRM = PropertyInitializer.newProperty("shift-confirm", true);
|
||||
|
||||
@Comment({"", "Select cooldown display format, SHORT = 3m 3s | MEDIUM = 3 min 3 sec | FULL - 3 minutes 3 seconds"})
|
||||
public static final Property<String> TIME_DISPLAY = PropertyInitializer.newProperty("cooldown-time-display", "MEDIUM");
|
||||
|
@ -47,7 +47,7 @@ public class ReloadCommand extends Npcmd {
|
||||
}
|
||||
|
||||
if (CitizensCMD.getEconomy() != null) {
|
||||
plugin.setShift(settings.getProperty(Settings.SHIT_CONFIRM));
|
||||
plugin.setShift(settings.getProperty(Settings.SHIFT_CONFIRM));
|
||||
}
|
||||
|
||||
plugin.getDataHandler().reload();
|
||||
|
Loading…
Reference in New Issue
Block a user