mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-10 04:28:35 +00:00
Schem file limits (#773)
* added filesize/file count checks for /schematic save * fixed /schematic save, added filesize component to /schematic list * improved /schematics list total filesize output need to add automatic conversion into Mb in the future * temporary fix for page wrap from MessageBox * reverted changed to MessageBox * applied FAWE's checkstyle where applicable * crude fix for worldedit MessageBox line wrapping happening sometimes * small visual adjustments * Update worldedit-core/src/main/java/com/boydti/fawe/config/Settings.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/boydti/fawe/config/Settings.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/boydti/fawe/config/Settings.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java Co-authored-by: NotMyFault <mc.cache@web.de> * Update worldedit-core/src/main/java/com/boydti/fawe/config/Settings.java Co-authored-by: NotMyFault <mc.cache@web.de> * fixed settings variable names * Improved `/schematic save` success/error notifications fixed local variable names * removed unneeded comment * fixed typo * made schematics in subdirectories count towards file limit Co-authored-by: NotMyFault <mc.cache@web.de>
This commit is contained in:
@ -394,6 +394,18 @@ public class Settings extends Config {
|
||||
" - Requires combine_stages = true"
|
||||
})
|
||||
public boolean SEND_BEFORE_HISTORY = false;
|
||||
|
||||
@Comment({
|
||||
"Sets a maximum limit (in kb) for the size of a player's schematics directory (per-player mode only)",
|
||||
"Set to -1 to disable"
|
||||
})
|
||||
public int PER_PLAYER_FILE_SIZE_LIMIT = -1;
|
||||
|
||||
@Comment({
|
||||
"Sets a maximum limit for the amount of schematics in a player's schematics directory (per-player mode only)",
|
||||
"Set to -1 to disable"
|
||||
})
|
||||
public int PER_PLAYER_FILE_NUM_LIMIT = -1;
|
||||
}
|
||||
|
||||
public static class PLOTSQUARED_INTEGRATION {
|
||||
|
Reference in New Issue
Block a user