mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
50 lines
2.9 KiB
Diff
50 lines
2.9 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: violetc <58360096+s-yh-china@users.noreply.github.com>
|
|
Date: Wed, 2 Feb 2022 00:43:25 +0800
|
|
Subject: [PATCH] Allow vanilla properties def
|
|
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperConfig.java b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
index 2becc9a274eddb1a01655f24f54d5cf72470580d..175d9f2e655af98875e7ac2a30c21435caaaffb1 100644
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
@@ -470,10 +470,10 @@ public class PaperConfig {
|
|
deobfuscateStacktraces = getBoolean("settings.loggers.deobfuscate-stacktraces", deobfuscateStacktraces);
|
|
}
|
|
|
|
- public static boolean allowBlockPermanentBreakingExploits = false;
|
|
+ public static boolean allowBlockPermanentBreakingExploits = true;
|
|
private static void allowBlockPermanentBreakingExploits() {
|
|
if (config.contains("allow-perm-block-break-exploits")) {
|
|
- allowBlockPermanentBreakingExploits = config.getBoolean("allow-perm-block-break-exploits", false);
|
|
+ allowBlockPermanentBreakingExploits = config.getBoolean("allow-perm-block-break-exploits", true);
|
|
config.set("allow-perm-block-break-exploits", null);
|
|
}
|
|
|
|
@@ -486,10 +486,10 @@ public class PaperConfig {
|
|
consoleHasAllPermissions = getBoolean("settings.console-has-all-permissions", consoleHasAllPermissions);
|
|
}
|
|
|
|
- public static boolean allowPistonDuplication;
|
|
+ public static boolean allowPistonDuplication = true;
|
|
private static void allowPistonDuplication() {
|
|
config.set("settings.unsupported-settings.allow-piston-duplication-readme", "This setting controls if player should be able to use TNT duplication, but this also allows duplicating carpet, rails and potentially other items");
|
|
- allowPistonDuplication = getBoolean("settings.unsupported-settings.allow-piston-duplication", config.getBoolean("settings.unsupported-settings.allow-tnt-duplication", false));
|
|
+ allowPistonDuplication = getBoolean("settings.unsupported-settings.allow-piston-duplication", config.getBoolean("settings.unsupported-settings.allow-tnt-duplication", true));
|
|
set("settings.unsupported-settings.allow-tnt-duplication", null);
|
|
}
|
|
|
|
@@ -510,10 +510,10 @@ public class PaperConfig {
|
|
}
|
|
}
|
|
|
|
- public static boolean allowHeadlessPistons;
|
|
+ public static boolean allowHeadlessPistons = true;
|
|
private static void allowHeadlessPistons() {
|
|
config.set("settings.unsupported-settings.allow-headless-pistons-readme", "This setting controls if players should be able to create headless pistons.");
|
|
- allowHeadlessPistons = getBoolean("settings.unsupported-settings.allow-headless-pistons", false);
|
|
+ allowHeadlessPistons = getBoolean("settings.unsupported-settings.allow-headless-pistons", true);
|
|
}
|
|
|
|
public static int itemValidationDisplayNameLength = 8192;
|