-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
The configuration of GregoRail is located at plugins/GregoRail/config.yml
relative to your server root directory. The following sections list the configurable options of the plugin.
The general
section defines configuration that applies to the plugin as a whole.
The range of searching for the nearest block for @block
and ^block
location formats, specified in blocks. Blocks will be searched for in a cuboid with the specified radius around the location of the command.
The range of searching for minecarts, specified in blocks. Minecarts will be searched for in a cuboid with the specified radius around the location of the command.
The webhooks
section defines webhooks that will be executed by commands. Each key in this section is the name of the webhook, and its value is a section to configure the webhook.
An array of types of webhooks that will be executed by this webhook. Possible values are CART_CODE_CHANGED
, CART_SPEED_MULTIPLIER_CHANGED
, BLOCK_SHAPE_CHANGED
, BLOCK_MATERIAL_CHANGED
, SOUND_PLAYED
, CART_ENTERED
, CART_EXITED
, CART_MOVED
, and CART_DESTROYED
.
The URL that defines the location of the webhook.
The cart-prompt
section provides customization for the promt used by the /gcart promptset
command.
The title to use in the inventory screen.
The item material to use for individual code selectors in the inventory screen.
The range of searching for players to display the inventory screen to, specified in blocks. Players will be searched for in a cuboid with the specified radius around the location of the command.
The butcher
section provides customization to automatically kill living entities in a specified range around a player when they are riding a minecart.
Set this to true
to enable the automatic killing of living entities when a player is riding a minecart.
The radius in blocks in which living entities will be killed. Living entities will be searched for in a cuboid with the specified radius around the location of the player.
Set this to true
to spawn an aesthetically pleasing lightning bolt effect when an entity is killed. The spawned lightning bolt is merely an effect and will not cause damage to other entities or fire spread.
A list of mob types to ignore when killing living entities; the entities of these types will stay alive.
Set this to true
to ignore living entities with a custom display name, for example applied with a name tag; these entities will stay alive.
Set this to true
to disable default item drops of killed living entities to not spam your creative inventory with redundant items.
The default plugin configuration is listed below:
general:
block-search-radius: 10
cart-search-distance: 10
webhooks-enabled: true
webhooks:
cart-moved:
type: [CART_MOVED]
url: "https://www.example.com/webhook/cart_moved"
player-entered-cart:
type: [CART_ENTERED]
url: "https://www.example.com/webhook/cart_entered"
cart-prompt:
title: "Select a code"
item-material: MINECART
player-search-radius: 5
butcher:
enabled: true
radius: 5
lightning-bolt-effect: true
ignore-entities-of-type: [ALLAY, VILLAGER]
ignore-named-entities: true
disable-item-drops: true