Skip to content

Commit 7223917

Browse files
committed
chore: update spigot config and vanilla-like guide
1 parent f1b31f1 commit 7223917

File tree

5 files changed

+33
-25
lines changed

5 files changed

+33
-25
lines changed

config-specs/paper/paper-world-defaults.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -384,35 +384,35 @@ entities:
384384
despawn-ranges:
385385
<mob_category>:
386386
hard:
387-
default: "default"
387+
default: default
388388
description: >-
389389
The horizontal and vertical number of blocks away from a player in which each monster
390390
type (set individually) will be forcibly despawned.
391391
soft:
392-
default: "default"
392+
default: default
393393
description: >-
394394
The horizontal and vertical number of blocks away from a player in which each monster
395395
type (set individually) will be randomly selected to be despawned.
396396
<mob_category>_:
397397
hard:
398398
horizontal:
399-
default: "default"
399+
default: default
400400
description: >-
401401
The horizontal number of blocks away from a player in which each entity type
402402
(set individually) will be forcibly despawned.
403403
vertical:
404-
default: "default"
404+
default: default
405405
description: >-
406406
The vertical number of blocks away from a player in which each entity type
407407
(set individually) will be forcibly despawned.
408408
soft:
409409
horizontal:
410-
default: "default"
410+
default: default
411411
description: >-
412412
The horizontal number of blocks away from a player in which each entity type
413413
(set individually) will be randomly selected to be despawned.
414414
vertical:
415-
default: "default"
415+
default: default
416416
description: >-
417417
The vertical number of blocks away from a player in which each entity type
418418
(set individually) will be randomly selected to be despawned.
@@ -924,7 +924,7 @@ misc:
924924
world should be. Vanilla uses 5, but this causes issues especially with
925925
plugins such as WorldEdit
926926
max-leash-distance:
927-
default: "default"
927+
default: default
928928
description: >-
929929
Configure the maximum distance of a leash. If the distance to the leashed
930930
entity is greater, the leash will break.
@@ -957,7 +957,7 @@ misc:
957957
default: HORIZONTAL_FIRST_OUTWARD
958958
description: >-
959959
Controls the order in which Alternate Current updates wires and neighboring blocks.
960-
Only has an effect when using the "alternate-current" redstone implementation.
960+
Only has an effect when using the "ALTERNATE_CURRENT" redstone implementation.
961961
This can be one of the following values:
962962
963963
- **HORIZONTAL_FIRST_OUTWARD**

config-specs/paper/spigot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ settings:
126126
max:
127127
default: "2048.0"
128128
description: Overrides the maximum for the attackDamage attribute.
129+
maxAbsorption:
130+
max:
131+
default: "2048.0"
132+
description: Overrides the maximum for the maxAbsorption attribute.
129133
maxHealth:
130134
max:
131135
default: "2048.0"

config-specs/paper/vanilla/paper-global.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ item-validation:
1313
default: "2147483647"
1414
page:
1515
default: "2147483647"
16-
display-name:
17-
default: "2147483647"
1816
book-size:
1917
page-max:
20-
default: "2147483647"
21-
total-multiplier:
22-
default: "1.0"
23-
lore-line:
24-
default: "2147483647"
18+
default: disabled
19+
display-name:
20+
default: "2147483647"
21+
lore-line:
22+
default: "2147483647"
2523
resolve-selectors-in-books:
2624
default: "true"
2725
misc:
@@ -51,11 +49,9 @@ unsupported-settings:
5149
default: "true"
5250
allow-piston-duplication:
5351
default: "true"
54-
perform-username-validation:
55-
default: "false"
56-
allow-grindstone-overstacking:
57-
default: "true"
5852
allow-unsafe-end-portal-teleportation:
5953
default: "true"
6054
allow-tripwire-disarming-exploits:
6155
default: "true"
56+
perform-username-validation:
57+
default: "false"

config-specs/paper/vanilla/spigot.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
settings:
2+
attribute:
3+
maxHealth:
4+
max:
5+
default: "1024.0"
6+
movementSpeed:
7+
max:
8+
default: "1024.0"
19
world-settings:
210
default:
311
entity-activation-range:
@@ -16,4 +24,4 @@ world-settings:
1624
flying-monsters:
1725
default: "0"
1826
max-tnt-per-tick:
19-
default: "0"
27+
default: "-1"

docs/paper/dev/api/command-api/arguments.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ sender will get a message containing the key of the enchantment they selected.
5050
- Custom types
5151
- Non alphanumerical sorting
5252

53-
## Enchantment types
53+
## Argument types
5454

5555
By default, you can use [the registry API](../registries) to get simple argument types like
5656
blocks, items, potions and many more. In the example above, we used the Enchantment
@@ -90,7 +90,7 @@ Argument type, but there are many others:
9090
| MEMORY_MODULE_TYPE | MemoryKey | Keys for saving per-entity data |
9191
| FLUID | Fluid | [Fluid types](https://minecraft.wiki/w/Fluid) |
9292

93-
Paper specifies many argument types. For more information on them, see <Javadoc name={"io.papermc.paper.command.brigadier.argument.ArgumentTypes"}>ArgumentTypes</Javadoc>
93+
Paper specifies many more argument types. For more information on them, see <Javadoc name={"io.papermc.paper.command.brigadier.argument.ArgumentTypes"}>ArgumentTypes</Javadoc>
9494

9595
### Custom types
9696

@@ -162,9 +162,9 @@ public void onEnable() {
162162
commands.register(Commands.literal("ordericecream")
163163
.then(
164164
Commands.argument("flavor", new IceCreamTypeArgument())
165-
.executes(commandContext -> {
166-
IceCreamType argumentResponse = commandContext.getArgument("flavor", IceCreamType.class);
167-
commandContext.getSource().getSender().sendMessage(Component.text("You ordered: " + argumentResponse));
165+
.executes(ctx -> {
166+
IceCreamType argumentResponse = ctx.getArgument("flavor", IceCreamType.class);
167+
ctx.getSource().getSender().sendMessage(Component.text("You ordered: " + argumentResponse));
168168
return Command.SINGLE_SUCCESS;
169169
})
170170
).build()

0 commit comments

Comments
 (0)