Skip to content

Commit

Permalink
refactor: Merge vanilla default files with normal config files
Browse files Browse the repository at this point in the history
  • Loading branch information
Leguan16 committed Jan 3, 2025
1 parent 379a114 commit bbbc952
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 146 deletions.
21 changes: 20 additions & 1 deletion config-specs/paper/paper-global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,20 @@ collisions:
however, in the majority of cases, this is a worthy tradeoff
commands:
fix-target-selector-tag-completion:
vanilla: "false"
default: "true"
description: >-
Workaround for a client bug preventing entity type tag suggestions from
functioning in target selectors. Resolves
[MC-235045](https://bugs.mojang.com/browse/MC-235045)
suggest-player-names-when-null-tab-completions:
vanilla: "false"
default: "true"
description: >-
Instructs the server to return a list of players when tab-completing when
there are no other completions available
time-command-affects-all-worlds:
vanilla: "true"
default: "false"
description: >-
Whether the /time command should act on all worlds or just the sender's
Expand All @@ -117,9 +120,11 @@ console:
description: Whether the console command sender has all permissions
item-validation:
display-name:
vanilla: "2147483647"
default: "8192"
description: The maximum length of an item's display name in characters
lore-line:
vanilla: "2147483647"
default: "8192"
description: The maximum length of a lore line in characters
resolve-selectors-in-books:
Expand All @@ -129,16 +134,20 @@ item-validation:
creative mode will be able to crash the server in yet another way
book:
author:
vanilla: "2147483647"
default: "8192"
description: The maximum length of a book's author in characters
page:
vanilla: "2147483647"
default: "16384"
description: The maximum length of a book's page in characters
title:
vanilla: "2147483647"
default: "8192"
description: The maximum length of a book's title in characters
book-size:
page-max:
vanilla: disabled
default: "2560"
description: >-
The max number of bytes a single page in a book can contribute to the
Expand Down Expand Up @@ -197,6 +206,7 @@ messages:
Formatted using [MiniMessage](https://docs.advntr.dev/minimessage/).
misc:
fix-entity-position-desync:
vanilla: "false"
default: "true"
description: >-
Causes the server to lose the same precision that the client does for
Expand All @@ -208,6 +218,7 @@ misc:
Loads bukkit's permission.yml file before plugins, allowing them to check
information set there immediately on enable
max-joins-per-tick:
vanilla: "2147483647"
default: "5"
description: >-
Sets the maximum amount of players that may join the server in a single
Expand Down Expand Up @@ -265,9 +276,11 @@ packet-limiter:
DROP which will ignore packets over the limit, and KICK which will kick
players for exceeding the limit
interval:
vanilla: "0.000001"
default: "7.0"
description: "The interval, in seconds, for which max-packet-rate should apply"
description: The interval, in seconds, for which max-packet-rate should apply
max-packet-rate:
vanilla: "999999.0"
default: "500.0"
description: The number of packets allowed per player within the interval
kick-message:
Expand Down Expand Up @@ -338,6 +351,7 @@ scoreboards:
will incur a performance degradation
spam-limiter:
incoming-packet-threshold:
vanilla: "2147483647"
default: "300"
description: >-
Sets the threshold at which the server will consider incoming packets spam
Expand Down Expand Up @@ -409,16 +423,19 @@ unsupported-settings:
The following settings are provided by Paper but are not officially
supported. Use them at your own risk and they may be removed at any time.
allow-headless-pistons:
vanilla: "true"
default: "false"
description: >-
Whether the server should allow the creation of headless pistons. These
are often used to break permanent blocks
allow-permanent-block-break-exploits:
vanilla: "true"
default: "false"
description: >-
Whether unbreakable blocks can be broken with Vanilla exploits. This
includes bedrock, end portal frames, end portal blocks, and more
allow-piston-duplication:
vanilla: "true"
default: "false"
description: >-
Whether to allow duplication of TNT, carpets, and rails. This does not
Expand All @@ -431,6 +448,7 @@ unsupported-settings:
standing bug in Paper. Enabling this option means that the damage tick will be
skipped, which may result in rapid damage on shields due to the missing invulnerability.
perform-username-validation:
vanilla: "false"
default: "true"
description: >-
Whether the server should validate usernames. While this may allow users
Expand All @@ -443,6 +461,7 @@ unsupported-settings:
supports ZLIB, GZIP and NONE, where None namely allows for compression to
be disabled
allow-unsafe-end-portal-teleportation:
vanilla: "true"
default: "false"
description: >-
This setting allows for exploits related to end portal teleportation to be
Expand Down
17 changes: 17 additions & 0 deletions config-specs/paper/paper-world-defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ chunks:
ticks-per.autosave in bukkit.yml for this world. By default it will use
the global ticks-per.autosave in bukkit.yml
delay-chunk-unloads-by:
vanilla: 0s
default: 10s
description: >-
Delays chunk unloads by the specified time. Formatted as a duration with a
Expand All @@ -132,6 +133,7 @@ chunks:
The timer is increased when chunks are kept loaded because of player
activity
max-auto-save-chunks-per-tick:
vanilla: "200"
default: "24"
description: >-
The maximum number of chunks the auto-save system will save in a single
Expand All @@ -148,6 +150,7 @@ chunks:
This may have a performance impact
collisions:
allow-player-cramming-damage:
vanilla: "true"
default: "false"
description: >-
Allows players to take damage from cramming when colliding with more
Expand All @@ -165,6 +168,7 @@ collisions:
also be counted towards the entity cramming limit so that they can take
suffocation damage
max-entity-collisions:
vanilla: "2147483647"
default: "8"
description: >-
Instructs the server to stop processing collisions after this value is
Expand Down Expand Up @@ -251,6 +255,7 @@ entities:
default: "false"
description: "Removes AI from pigmen spawned via nether portals "
only-merge-items-horizontally:
vanilla: "true"
default: "false"
description: >-
Prevents merging items that are not on the same y level, preventing potential
Expand All @@ -261,9 +266,11 @@ entities:
Makes parrots "sticky" so they do not fall off a player's shoulder when
they move. Use crouch to shake them off
phantoms-do-not-spawn-on-creative-players:
vanilla: "false"
default: "true"
description: "Disables spawning of phantoms on players in creative mode "
phantoms-only-attack-insomniacs:
vanilla: "false"
default: "true"
description: "Prevents phantoms from attacking players who have slept "
piglins-guard-chests:
Expand Down Expand Up @@ -360,6 +367,7 @@ entities:
H**; the item id will appear at the bottom of the tooltip that
appears when you hover over an item
count-all-mobs-for-spawning:
vanilla: "true"
default: "false"
description: >-
Determines whether spawner mobs and other misc mobs are counted towards
Expand Down Expand Up @@ -429,6 +437,7 @@ entities:
spawn egg
duplicate-uuid:
mode:
vanilla: "NOTHING"
default: SAFE_REGEN
description: >-
Specifies the method the server uses to resolve entities with
Expand All @@ -448,13 +457,15 @@ entities:
If multiple entities with duplicate UUIDs are within this many blocks,
saferegen will delete all but 1 of them
filter-bad-tile-entity-nbt-from-falling-blocks:
vanilla: "false"
default: "true"
description: >-
Instructs the server to remove certain NBT data from falling blocks.
**Note**: Some adventure maps may require this to be turned off to
function correctly, but we do not recommend turning it off on a public
server
filtered-entity-tag-nbt-paths:
vanilla: "[]" # I don't know if we want this as it is kinda ugly in the actual page. I can change it to "[] " (will not be parsed as array) if it looks better.
default: "[Pos, Motion, SleepingX, SleepingY, SleepingZ]"
description: >-
A list of NBT tags that will be removed from the EntityTag tag on items
Expand Down Expand Up @@ -484,6 +495,7 @@ entities:
despawned. The default value instructs the server to use the same
default arrow despawn rate from spigot.yml that is used for all arrows
per-player-mob-spawns:
vanilla: "false"
default: "true"
description: >-
Determines whether the mob limit (in bukkit.yml) is counted per player
Expand Down Expand Up @@ -818,6 +830,7 @@ fixes:
value of disabled will disable this feature
hopper:
cooldown-when-full:
vanilla: "false"
default: "true"
description: >-
Instructs the server to apply a short cooldown when the hopper is full,
Expand Down Expand Up @@ -883,6 +896,7 @@ lootables:
to new locations by breaking them via the likes of pistons.
maps:
item-frame-cursor-limit:
vanilla: "2147483647"
default: "128"
description: >-
The number of cursors (markers) allowed per map. A large number of cursors
Expand Down Expand Up @@ -999,6 +1013,7 @@ scoreboards:
never on a team. Disabling this may slightly decrease the amount of time
the server spends calculating entity collisions
use-vanilla-world-scoreboard-name-coloring:
vanilla: "true"
default: "false"
description: >-
Instructs the server to use the Vanilla scoreboard for player nickname
Expand Down Expand Up @@ -1048,11 +1063,13 @@ tick-rates:
for the names. Might change between updates!
unsupported-settings:
disable-world-ticking-when-empty:
vanilla: "true"
default: "false"
description: >-
Stops the ticking of the world when there are no players or force loaded chunks present in
the world.
fix-invulnerable-end-crystal-exploit:
vanilla: "false"
default: "true"
description: >-
If set to false, the creation of invulnerable end crystals will be
Expand Down
1 change: 1 addition & 0 deletions config-specs/paper/server-properties.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ op-permission-level:
default: "4"
description: "Sets the default permission level for ops when using /op. (Allowed values: 0, 1, 2, 3, 4)"
pause-when-empty-seconds:
vanilla: "60"
default: "-1"
description: >
How many seconds have to pass after no player has been online before the server is paused.
Expand Down
9 changes: 9 additions & 0 deletions config-specs/paper/spigot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,12 @@ settings:
description: Overrides the maximum for the maxAbsorption attribute.
maxHealth:
max:
vanilla: "1024.0"
default: "2048.0"
description: Overrides the maximum for the maxHealth attribute.
movementSpeed:
max:
vanilla: "1024.0"
default: "2048.0"
description: Overrides the maximum for the movementSpeed attribute.
bungeecord:
Expand Down Expand Up @@ -262,21 +264,26 @@ world-settings:
to 0 for global (including cross-dimension).
entity-activation-range:
animals:
vanilla: "0"
default: "32"
description: The entity activation range for animals.
flying-monsters:
vanilla: "0"
default: "32"
description: The entity activation range for flying monsters.
ignore-spectators:
default: "false"
description: Whether spectators activate entities within range.
misc:
vanilla: "0"
default: "16"
description: The entity activation range for misc entities.
monsters:
vanilla: "0"
default: "32"
description: The entity activation range for monsters.
raiders:
vanilla: "0"
default: "64"
description: The entity activation range for raiders.
tick-inactive-villagers:
Expand Down Expand Up @@ -358,6 +365,7 @@ world-settings:
A limit of how many inactive villagers can be woken up on the same
tick.
water:
vanilla: "0"
default: "16"
description: The entity activation range for water mobs.
entity-tracking-range:
Expand Down Expand Up @@ -624,6 +632,7 @@ world-settings:
default: "50"
description: "This option does not operate, as it is disabled by a Paper patch."
max-tnt-per-tick:
vanilla: "-1"
default: "100"
description: How many TNT to process per server tick. Set to 0 to disable.
merge-radius:
Expand Down
55 changes: 0 additions & 55 deletions config-specs/paper/vanilla/paper-global.yml

This file was deleted.

Loading

0 comments on commit bbbc952

Please sign in to comment.