mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-27 16:02:32 +00:00
Add "allow-world-in-broadcastworld" option
Allows players to send broadcasts to a specified world by running `/broadcastworld [world] <message>` if enabled. This is disabled by default in old configs to avoid confusion between updates.
This commit is contained in:
parent
e642192461
commit
2806156cf4
4 changed files with 50 additions and 2 deletions
|
@ -537,6 +537,7 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
unprotectedSigns = _getUnprotectedSign();
|
||||
defaultEnabledConfirmCommands = _getDefaultEnabledConfirmCommands();
|
||||
isCompassTowardsHomePerm = _isCompassTowardsHomePerm();
|
||||
isAllowWorldInBroadcastworld = _isAllowWorldInBroadcastworld();
|
||||
}
|
||||
|
||||
private List<Integer> itemSpawnBl = new ArrayList<Integer>();
|
||||
|
@ -1459,4 +1460,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