mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
Config option to toggle disabling flight / speed on world change (#2546)
Closes #2141. This PR adds the option to toggle whether or not EssentialsX should handle disabling player flight / speed when they switch to a new world, in case server administrators are handling that via a third party plugin.
This commit is contained in:
parent
40fb496052
commit
2bd6ebd2b1
4 changed files with 49 additions and 19 deletions
|
@ -1498,6 +1498,16 @@ public class Settings implements net.ess3.api.ISettings {
|
|||
return config.getBoolean("allow-direct-hat", true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isWorldChangeFlyResetEnabled() {
|
||||
return config.getBoolean("world-change-fly-reset", true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isWorldChangeSpeedResetEnabled() {
|
||||
return config.getBoolean("world-change-speed-reset", true);
|
||||
}
|
||||
|
||||
private List<String> defaultEnabledConfirmCommands;
|
||||
|
||||
private List<String> _getDefaultEnabledConfirmCommands() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue