Merge branch 'master' into 1.15
This commit is contained in:
commit
23c3dc58a5
3 files changed
+31
-2
No files matched your search
@@ -153,6 +153,14 @@ use '_' to use the startup setting from server.properties
|
||||
* Suggested options: `_`
|
||||
* Categories: `CREATIVE`
|
||||
|
||||
## defaultLoggers
|
||||
sets these loggers in their default configurations for all new players
|
||||
use csv, like 'tps,mobcaps' for multiple loggers, none for nothing
|
||||
* Type: `String`
|
||||
* Default value: `none`
|
||||
* Suggested options: `none`, `tps`, `mobcaps,tps`
|
||||
* Categories: `CREATIVE`, `SURVIVAL`
|
||||
|
||||
## desertShrubs
|
||||
Saplings turn into dead shrubs in hot climates and no water access
|
||||
* Type: `boolean`
|
||||
@@ -269,6 +277,14 @@ Customizable maximal entity collision limits, 0 for no limits
|
||||
* Additional notes:
|
||||
* Must be a positive number
|
||||
|
||||
## miningGhostBlockFix
|
||||
Fixes mining ghost blocks by trusting clients with block breaking
|
||||
Increases player allowed mining distance to 32 blocks
|
||||
* Type: `boolean`
|
||||
* Default value: `false`
|
||||
* Required options: `true`, `false`
|
||||
* Categories: `SURVIVAL`
|
||||
|
||||
## missingTools
|
||||
Pistons, Glass and Sponge can be broken faster with their appropriate tools
|
||||
* Type: `boolean`
|
||||
@@ -374,6 +390,14 @@ Rotates block anti-clockwise if possible
|
||||
* Required options: `true`, `false`
|
||||
* Categories: `FEATURE`
|
||||
|
||||
## scriptsAutoload
|
||||
Scarpet script from world files will autoload on server/world start
|
||||
if /script is enabled
|
||||
* Type: `boolean`
|
||||
* Default value: `false`
|
||||
* Required options: `true`, `false`
|
||||
* Categories: `CREATIVE`
|
||||
|
||||
## shulkerSpawningInEndCities
|
||||
Shulkers will respawn in end cities
|
||||
* Type: `boolean`
|
||||
|
||||
@@ -16,7 +16,10 @@ public class TestCommand
|
||||
public static void register(CommandDispatcher<ServerCommandSource> dispatcher)
|
||||
{
|
||||
dispatcher.register(literal("test").
|
||||
then(literal("dump").executes((c) -> CarpetServer.settingsManager.printAllRulesToLog())).
|
||||
then(literal("dump").
|
||||
executes((c) -> CarpetServer.settingsManager.printAllRulesToLog(null)).
|
||||
then(argument("category", word()).
|
||||
executes( (c) -> CarpetServer.settingsManager.printAllRulesToLog(getString(c, "category"))))).
|
||||
then(argument("first",word()).
|
||||
executes( (c)-> test(c, getString(c, "first")+" 1"))).
|
||||
then(argument("second", word()).
|
||||
|
||||
@@ -257,13 +257,15 @@ public class SettingsManager
|
||||
}).collect(ImmutableList.toImmutableList());
|
||||
}
|
||||
|
||||
public int printAllRulesToLog()
|
||||
public int printAllRulesToLog(String category)
|
||||
{
|
||||
PrintStream ps = System.out;
|
||||
ps.println("# "+fancyName+" Settings");
|
||||
for (Map.Entry<String, ParsedRule<?>> e : new TreeMap<>(rules).entrySet())
|
||||
{
|
||||
ParsedRule<?> rule = e.getValue();
|
||||
if (category != null && !rule.categories.contains(category))
|
||||
continue;
|
||||
ps.println("## " + rule.name);
|
||||
ps.println(rule.description+" ");
|
||||
for (String extra : rule.extraInfo)
|
||||
|
||||
Reference in new issue
Block a user