mirror of
https://github.com/BentoBoxWorld/BSkyBlock.git
synced 2025-01-16 20:21:20 +01:00
Add support for banned falling commands.
https://github.com/BentoBoxWorld/BentoBox/issues/863
This commit is contained in:
parent
d9cba6cd07
commit
bd028988eb
@ -193,6 +193,11 @@ public class Settings implements WorldSettings {
|
|||||||
@ConfigEntry(path = "world.visitor-banned-commands")
|
@ConfigEntry(path = "world.visitor-banned-commands")
|
||||||
private List<String> visitorBannedCommands = new ArrayList<>();
|
private List<String> visitorBannedCommands = new ArrayList<>();
|
||||||
|
|
||||||
|
@ConfigComment("Falling banned commands - players cannot use these commands when falling")
|
||||||
|
@ConfigComment("if the PREVENT_TELEPORT_WHEN_FALLING world setting flag is active")
|
||||||
|
@ConfigEntry(path = "world.falling-banned-commands")
|
||||||
|
private List<String> fallingBannedCommands = new ArrayList<>();
|
||||||
|
|
||||||
// ---------------------------------------------
|
// ---------------------------------------------
|
||||||
|
|
||||||
/* ISLAND */
|
/* ISLAND */
|
||||||
@ -533,6 +538,14 @@ public class Settings implements WorldSettings {
|
|||||||
return visitorBannedCommands;
|
return visitorBannedCommands;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the fallingBannedCommands
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<String> getFallingBannedCommands() {
|
||||||
|
return fallingBannedCommands;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the maxTeamSize
|
* @return the maxTeamSize
|
||||||
*/
|
*/
|
||||||
@ -891,6 +904,13 @@ public class Settings implements WorldSettings {
|
|||||||
this.visitorBannedCommands = visitorBannedCommands;
|
this.visitorBannedCommands = visitorBannedCommands;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param fallingBannedCommands the fallingBannedCommands to set
|
||||||
|
*/
|
||||||
|
public void setFallingBannedCommands(List<String> fallingBannedCommands) {
|
||||||
|
this.fallingBannedCommands = fallingBannedCommands;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param maxTeamSize the maxTeamSize to set
|
* @param maxTeamSize the maxTeamSize to set
|
||||||
*/
|
*/
|
||||||
|
@ -190,6 +190,11 @@ world:
|
|||||||
visitor-banned-commands:
|
visitor-banned-commands:
|
||||||
- spawner
|
- spawner
|
||||||
- spawnmob
|
- spawnmob
|
||||||
|
# Falling banned commands - players cannot use these commands when falling
|
||||||
|
# if the PREVENT_TELEPORT_WHEN_FALLING world setting flag is active
|
||||||
|
falling-banned-commands:
|
||||||
|
- warp
|
||||||
|
- spawn
|
||||||
island:
|
island:
|
||||||
# Default max team size
|
# Default max team size
|
||||||
# Permission size cannot be less than the default below.
|
# Permission size cannot be less than the default below.
|
||||||
|
Loading…
Reference in New Issue
Block a user