Перейти к основному содержимому

Vehicle Config

Vehicle Global Configuration

Global configuration manifest for the TypeWriter-Vehicle extension.

Поля

ПолеТипПо умолчаниюОписание
storageRef<VehicleStorageEntry>—Ou les vehicules des joueurs sont stockes
baseOwnershipLimitInt1Base ownership limit if no permission/fact is specified
soundsVehicleSounds—Global sounds configuration
VehicleSounds (6)
ПолеТипПо умолчаниюОписание
spawnSoundEMPTY—
despawnSoundEMPTY—
collisionSoundEMPTY—
levelUpSoundEMPTY—
fuelEmptySoundEMPTY—
destroyedSoundEMPTY—
messagesVehicleMessages—Customizable messages (MiniMessage format)
VehicleMessages (19)
ПолеТипПо умолчаниюОписание
spawnedString<green>Vehicle summoned!</green>—
despawnedString<yellow>Vehicle stored in garage.</yellow>—
insufficientFuelString<red>Not enough fuel to start the engine!</red>—
limitReachedString<red>You have reached your maximum vehicle limit (%limit%).</red>—
repairSuccessString<green>Vehicle repaired successfully.</green>—
fuelRefilledString<green>Vehicle refuelled.</green>—
noRepairMaterialString<red>You lack the materials to repair this vehicle.</red>—
skinAppliedString<green>Skin applied successfully!</green>—
destroyedString<dark_red>Your vehicle has been destroyed!</dark_red>—
needsRepairString<red>This vehicle is destroyed — repair it before summoning it again.</red>—
levelUpString<gold><b>LEVEL UP!</b></gold> Your vehicle is now level <yellow>%level%</yellow>!—
abilityNoVehicleString?<red>You are not driving a vehicle.</red>—
abilityNoDefinitionString?<red>This vehicle has no usable definition.</red>—
abilityNotAvailableString?<red>This ability is not available for your vehicle.</red>—
abilityMissingString?<red>This ability is no longer configured.</red>—
abilityCooldownString?<yellow>This ability is on cooldown for %seconds%s.</yellow>—
abilityInsufficientStaminaString?<red>Not enough stamina to use this ability.</red>—
abilityActivatedString?<green>Ability activated.</green>—
repairAlreadyHealthyString?<yellow>This vehicle is already at full health.</yellow>—

How to use it​

Create one entry and set storage to your Vehicle Storage: this is the only link between the extension and its data. baseOwnershipLimit is the default number of vehicles per player; add a Vehicle Ownership Limit fact entry to also honour typewriter.vehicle.limit.<n> permissions. sounds play for spawn, despawn, collision, level up, fuel empty and destroyed. messages use MiniMessage; %limit%, %level% and %seconds% are replaced where relevant.