Skip to content

Commit

Permalink
chore: update spigot config and vanilla-like guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulu13022002 committed Oct 15, 2024
1 parent f1b31f1 commit 7223917
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 25 deletions.
16 changes: 8 additions & 8 deletions config-specs/paper/paper-world-defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,35 +384,35 @@ entities:
despawn-ranges:
<mob_category>:
hard:
default: "default"
default: default
description: >-
The horizontal and vertical number of blocks away from a player in which each monster
type (set individually) will be forcibly despawned.
soft:
default: "default"
default: default
description: >-
The horizontal and vertical number of blocks away from a player in which each monster
type (set individually) will be randomly selected to be despawned.
<mob_category>_:
hard:
horizontal:
default: "default"
default: default
description: >-
The horizontal number of blocks away from a player in which each entity type
(set individually) will be forcibly despawned.
vertical:
default: "default"
default: default
description: >-
The vertical number of blocks away from a player in which each entity type
(set individually) will be forcibly despawned.
soft:
horizontal:
default: "default"
default: default
description: >-
The horizontal number of blocks away from a player in which each entity type
(set individually) will be randomly selected to be despawned.
vertical:
default: "default"
default: default
description: >-
The vertical number of blocks away from a player in which each entity type
(set individually) will be randomly selected to be despawned.
Expand Down Expand Up @@ -924,7 +924,7 @@ misc:
world should be. Vanilla uses 5, but this causes issues especially with
plugins such as WorldEdit
max-leash-distance:
default: "default"
default: default
description: >-
Configure the maximum distance of a leash. If the distance to the leashed
entity is greater, the leash will break.
Expand Down Expand Up @@ -957,7 +957,7 @@ misc:
default: HORIZONTAL_FIRST_OUTWARD
description: >-
Controls the order in which Alternate Current updates wires and neighboring blocks.
Only has an effect when using the "alternate-current" redstone implementation.
Only has an effect when using the "ALTERNATE_CURRENT" redstone implementation.
This can be one of the following values:
- **HORIZONTAL_FIRST_OUTWARD**
Expand Down
4 changes: 4 additions & 0 deletions config-specs/paper/spigot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ settings:
max:
default: "2048.0"
description: Overrides the maximum for the attackDamage attribute.
maxAbsorption:
max:
default: "2048.0"
description: Overrides the maximum for the maxAbsorption attribute.
maxHealth:
max:
default: "2048.0"
Expand Down
18 changes: 7 additions & 11 deletions config-specs/paper/vanilla/paper-global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ item-validation:
default: "2147483647"
page:
default: "2147483647"
display-name:
default: "2147483647"
book-size:
page-max:
default: "2147483647"
total-multiplier:
default: "1.0"
lore-line:
default: "2147483647"
default: disabled
display-name:
default: "2147483647"
lore-line:
default: "2147483647"
resolve-selectors-in-books:
default: "true"
misc:
Expand Down Expand Up @@ -51,11 +49,9 @@ unsupported-settings:
default: "true"
allow-piston-duplication:
default: "true"
perform-username-validation:
default: "false"
allow-grindstone-overstacking:
default: "true"
allow-unsafe-end-portal-teleportation:
default: "true"
allow-tripwire-disarming-exploits:
default: "true"
perform-username-validation:
default: "false"
10 changes: 9 additions & 1 deletion config-specs/paper/vanilla/spigot.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
settings:
attribute:
maxHealth:
max:
default: "1024.0"
movementSpeed:
max:
default: "1024.0"
world-settings:
default:
entity-activation-range:
Expand All @@ -16,4 +24,4 @@ world-settings:
flying-monsters:
default: "0"
max-tnt-per-tick:
default: "0"
default: "-1"
10 changes: 5 additions & 5 deletions docs/paper/dev/api/command-api/arguments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ sender will get a message containing the key of the enchantment they selected.
- Custom types
- Non alphanumerical sorting

## Enchantment types
## Argument types

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

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

### Custom types

Expand Down Expand Up @@ -162,9 +162,9 @@ public void onEnable() {
commands.register(Commands.literal("ordericecream")
.then(
Commands.argument("flavor", new IceCreamTypeArgument())
.executes(commandContext -> {
IceCreamType argumentResponse = commandContext.getArgument("flavor", IceCreamType.class);
commandContext.getSource().getSender().sendMessage(Component.text("You ordered: " + argumentResponse));
.executes(ctx -> {
IceCreamType argumentResponse = ctx.getArgument("flavor", IceCreamType.class);
ctx.getSource().getSender().sendMessage(Component.text("You ordered: " + argumentResponse));
return Command.SINGLE_SUCCESS;
})
).build()
Expand Down

0 comments on commit 7223917

Please sign in to comment.