mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-31 09:52:57 +00:00
Merge branch '2.x' into 1.13
This commit is contained in:
commit
d1d5ae814f
41 changed files with 704 additions and 356 deletions
|
@ -433,6 +433,9 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
mFormat = "§r".concat(mFormat);
|
||||
chatFormats.put(group, mFormat);
|
||||
}
|
||||
if (isDebug()) {
|
||||
ess.getLogger().info(String.format("Found format '%s' for group '%s'", mFormat, group));
|
||||
}
|
||||
return mFormat;
|
||||
}
|
||||
|
||||
|
@ -535,6 +538,7 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
unprotectedSigns = _getUnprotectedSign();
|
||||
defaultEnabledConfirmCommands = _getDefaultEnabledConfirmCommands();
|
||||
isCompassTowardsHomePerm = _isCompassTowardsHomePerm();
|
||||
isAllowWorldInBroadcastworld = _isAllowWorldInBroadcastworld();
|
||||
}
|
||||
|
||||
private List<Material> itemSpawnBl = new ArrayList<Material>();
|
||||
|
@ -1294,7 +1298,12 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
if (isCommandCooldownsEnabled()) {
|
||||
for (Entry<Pattern, Long> entry : this.commandCooldowns.entrySet()) {
|
||||
// Check if label matches current pattern (command-cooldown in config)
|
||||
if (entry.getKey().matcher(label).matches()) {
|
||||
boolean matches = entry.getKey().matcher(label).matches();
|
||||
if (isDebug()) {
|
||||
ess.getLogger().info(String.format("Checking command '%s' against cooldown '%s': %s", label, entry.getKey(), matches));
|
||||
}
|
||||
|
||||
if (matches) {
|
||||
return entry;
|
||||
}
|
||||
}
|
||||
|
@ -1452,4 +1461,15 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
public boolean isCompassTowardsHomePerm() {
|
||||
return isCompassTowardsHomePerm;
|
||||
}
|
||||
|
||||
private boolean isAllowWorldInBroadcastworld;
|
||||
|
||||
private boolean _isAllowWorldInBroadcastworld() {
|
||||
return config.getBoolean("allow-world-in-broadcastworld", false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAllowWorldInBroadcastworld() {
|
||||
return isAllowWorldInBroadcastworld;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue