List
/train list
/cart list
Lists the number of stationary and moving trains in the world. It also lists the total number of cart entities (as part of those trains) and lists the trains that belong to you.
Reroute
/train reroute
If the path finding system is failing because the track got changed, you can use this command to force the plugin to re-calculate all destination paths.
Destroy all
/train destroyall
/train removeall
Destroys all minecarts and trains on the server. Can be useful to re-set the plugin.
Fix bugged
/train destroyall
/train fixbugged
Destroys all minecarts that are not managed by the plugin. Useful for is the server was shut down unexpectedly, leaving orphaned trains on the track.
Train - only commands
The below commands work only for /train.
Rename
/train setname [name]
/train name [name]
/train rename [name]
Sets the name of the train, the name may not be assigned to another train already
[edit]Set display name
/train setdname [name]
/train displayname [name]
/train setdisplayname [name]
Sets the display name of the train, may be double-assigned. This name is displayed on SignLink-variable signs when using trigger signs.
Train and Cart commands
The below commands work for both /train and /cart.
Information
/train info
/train i
Shows train or cart related information, such as the name and set properties.
Ownership
/train claim
Sets you as the only owner of this train.
/train setowner [names...]
/train setowners [names...]
/train setowners
Sets the owner names of this train. Use no names to clear the owners.
/train addowner [names...]
/train addowners [names...]
Adds the owner names to this train.
To change ownership of a single minecart, use the '/cart' command instead of '/train'. When setting train owners, you set owners on all minecarts simultaneously. If no owners are set for a minecart, it can be freely edited and destroyed by everyone else.
Tags
/train settags [tags...]
/train settag [tags...]
/train tags [tags...]
/train tag [tags...]
/train settags
Sets the tags of this train. Use no tags to clear the tags.
/train addtags [tags...]
/train addtag [tags...]
Add tags to this train.
Tags can be used in combination with switcher or detector signs. For example, you can set a tag to order a train to be destroyed. Every minecart has a separate set of tags, setting tags on a train sets it for all minecarts simultaneously.
Destination
/train destination [destination]
/train dest [destination]
Sets the destination for this train.
You can also set a destination on a single minecart in the train, this way letting switcher signs split trains up in multiple carriages.
Player enter
/train playerenter [bool]
Sets if players can enter the train or minecart.
Player exit
/train playerexit [bool]
/train playerleave [bool]
Sets if players can exit the train or minecart.
Pick up
/train pickup [bool]
权限
PermissionDefaults.yml文件
#> Below are the default permissions set for plugin 'Train_Carts'.
#> These permissions are ignored if the permission is set for a group or player.
#> Use the defaults as a base to keep the permissions file small
#> Need help with this file? Please visit:
#> http://dev.bukkit.org/server-mods/bkcommonlib/pages/general/permission-defaults/
train:
command:
globalproperties:
default: op
description: The player can edit the properties of all carts
properties:
default: true
description: The player can edit the properties of carts he owns
destroy:
default: op
description: The player can destroy owned carts through commands
destroyall:
default: op
description: The player can destroy all trains on the server
fixbugged:
default: op
description: The player can destroy all bugged minecarts on the server
reroute:
default: op
description: The player can force path finding to re-calculate
reload:
default: op
description: The player can reload the configuration
break:
default: true
description: The player can set blocks the cart can break from a set list
breakblock:
admin:
default: op
description: The player can set blocks the cart can break, any type
setpublic:
default: true
description: The player can make his owned carts open for the public
setowners:
default: true
description: The player can set the owners of his owned carts
settags:
default: true
description: The player can set the tags of his owned carts
mobenter:
default: true
description: The player can set if mobs can enter his owned carts
setdestination:
default: true
description: The player can set destinations for his owned carts
playerenter:
default: true
description: The player can set if players can enter his owned carts
playerexit:
default: true
description: The player can set if players can exit his owned carts
pickup:
default: true
description: The player can set if his owned storage carts pick up items
setlinking:
default: true
description: The player can set if his owned trains can link to other trains
keepchunksloaded:
default: op
description: The player can if his owned trains keep nearby chunks loaded
pushing:
default: true
description: The player can if his owned trains push away certain entities
slowdown:
default: true
description: The player can if his owned trains slow down over time
setcollide:
default: true
description: The player can if his owned trains can collide
setspeedlimit:
default: true
description: The player can set the maximum speed for his trains
setpoweredcartrequirement:
default: true
description: The player can set if a powered minecart is needed for his train to stay alive
rename:
default: true
description: The player can rename his owned trains
displayname:
default: true
description: The player can change the display name of his owned trains
manualmove:
default: true
description: Whether the player can change if trains can be moved by damaging them
saveall:
default: op
description: Whether the player can save all TrainCarts stored information to file
message:
default: op
description: Whether the player can add message shortcuts
pathinfo:
default: op
description: Whether the player can view the route the train is following to reach the destination
playertake:
default: op
description: Whether the player can change if players take Minecarts with them when they leave
soundenabled:
default: op
description: Whether the player can turn Minecart sound on or off
teleport:
default: op
description: Whether the player can teleport to where trains are
changeblock:
default: op
description: Whether the player can alter the type of block displayed in a minecart
build:
station:
default: op
description: The player can build train stations
spawner:
default: op
description: The player can build train spawners
trigger:
default: op
description: The player can build train triggers
destination:
default: op
description: The player can build destinations
switcher:
default: op
description: The player can build track switchers
destructor:
default: op
description: The player can build train destructors
detector:
default: op
description: The player can build train detectors
ejector:
default: op
description: The player can build train ejectors
property:
default: op
description: The player can build train property setters
collector:
default: op
description: The player can build systems to let trains collect from storage blocks
depositor:
default: op
description: The player can build systems to fill storage blocks with items from trains
elevator:
default: op
description: The player can build systems to teleport trains vertically
teleporter:
default: op
description: The player can build train teleporters (portals)
blocker:
default: op
description: The player can build train blockers
wait:
default: op
description: The player can build train wait signs
crafter:
default: op
description: The player can build item crafter signs
ticket:
default: op
description: The player can build a sign that will charge money or ejects a player if he can't pay
announcer:
default: op
description: The player can build a sign that sends a message to all the players in a train
effect:
default: op
description: The player can build a sign that can play an effect
blockchanger:
default: op
description: The player can build a sign that alters the block displayed in minecarts
jumper:
default: op
description: The player can build a sign that can cause a train to jump in a certain direction
launcher:
default: op
description: The player can build a sign that can launch trains
enter:
default: op
description: The player can build a sign that can make nearby players/mobs enter a train
place:
minecart:
default: true
description: The player can place minecarts
traincart:
default: true
description: The player can place TrainCarts minecarts
properties:
admin:
default: op
description: Carts placed by this player get the admin properties