Configuration: Difference between revisions
From Citizens Wiki
Line 4: | Line 4: | ||
<pre> | <pre> | ||
# Citizens Configuration | # Citizens Configuration | ||
npc: | npc: | ||
chat: | chat: | ||
options: | |||
bystandersheartargetedchat: true | |||
maxnumberoftargetstoshow: 2 | |||
multipletargetsformat: <target>|, <target>| & <target>| & others | |||
range: 5 | |||
format: | |||
notargets: '[<npc>]: <text>' | |||
withtargettobystanders: '[<npc>] -> [<target>]: <text>' | |||
totarget: '[<npc>] -> You: <text>' | |||
withtargetstobystanders: '[<npc>] -> [<targets>]: <text>' | |||
default: | default: | ||
lookclose: # NPCs turning heads towards players settings | |||
enabled: false | enabled: false # whether look close is enabled by default | ||
range: 5 | range: 5 # the look close range | ||
pathfinding: | pathfinding: | ||
range: 25.0 | range: 25.0 # the maximum pathfinding range to search through before giving up | ||
randomtalker: true # whether the NPC will randomly select a text item instead of sequentially | |||
realisticlooking: false # whether the NPC will ensure potential players to look at / talk to aren't obscured by walls | |||
stationaryticks: -1 # how long the NPC will be stationary while pathfinding before giving up | |||
talkclose: | |||
enabled: false | enabled: false # default talk close | ||
range: 5 | range: 5 # range before NPC talks | ||
text: | text: | ||
'0': Hi, I'm <npc>! | '0': Hi, I'm <npc>! # default text | ||
limits: | limits: | ||
default-limit: | defaultlimit: 10 # the default per-player NPC limit | ||
maxpermissionchecks: 100 # the maximum number of per-player NPCs a player can have | |||
maxspeed: 100 # the maximum speed an NPC can have | |||
chunks: | |||
alwayskeeploaded: false # whether to always keep chunks loaded with NPCs in them or unload them when there are no other players inside the chunk | |||
selection: | selection: | ||
quickselect: false # no message will be sent | |||
item: '280' | item: '280' # the selector item: default is stick | ||
message: <b>You selected <a><npc><b>! | message: <b>You selected <a><npc><b>! # the message sent on select | ||
player: | |||
removefromlist: true # setting this to false will enable human NPCs to be recognised by mobs; it will also make them just like a normal player, which means other plugins will recognise them as well. This can be enabled per-NPC using /npc playerlist | |||
serverownership: false # whether the server owns NPCs by default | |||
text: | text: | ||
maxtalkcooldown: 1 # the maximum cooldown before the NPC will talk close in seconds : the cooldown is chosen at random between the min/max | |||
mintalkcooldown: 1 # the minimum cooldown before the NPC will talk close in seconds | |||
talkitem: '340' # the items that will cause the NPC to talk to you on right click : default is book | |||
pathfinding: | |||
usenewfinder: false # EXPERIMENTAL: enable non-Minecraft pathfinder | |||
advanced: | |||
checkminecraftversion: true # set this to false to disable minecraft compatibility checks. Should not normally be used. | |||
storage: | storage: | ||
database: | database: | ||
driver: '' | driver: '' # should be sqlite/mysql/h2, depending on the database | ||
password: '' | password: '' # the database password if needed | ||
url: '' | url: '' # the database URL: eg. sqlite://path/to/my.db | ||
username: '' | username: '' # the database username if needed | ||
savetask: | |||
delay: 72000 | delay: 72000 # the delay in ticks before everything gets serialised to disk | ||
file: saves.yml | file: saves.yml # the storage file | ||
type: yaml | type: yaml # the type: can be NBT, database, YAML. | ||
general: | general: | ||
debug | debugmode: false # enable debug output | ||
colorscheme: | |||
messagehighlight: <e> # set the default highlight colour: usually yellow. | |||
message: <a> # set the default message colour: usually green. | |||
translation: | |||
locale: '' # set the locale explicitly if needed: eg. en_US is US English, de_DE is the generic German locale | |||
economy: | economy: | ||
npc: | npc: | ||
cost: 100.0 | cost: 100.0 # the cost of an NPC. NOTE: requires Vault | ||
subplugins: | subplugins: | ||
folder: plugins | folder: plugins # subplugins like Denizen etc can be placed into Citizens/<subplugins folder> for organisational purposes. | ||
</pre> | </pre> | ||
Revision as of 13:54, 7 March 2013
Citizens configuration is handled in the file /plugins/Citizens/config.yml. See below for detailed information on each setting. For more information on text nodes such as <npc>, see the Text Syntax page.
Default Configuration
# Citizens Configuration npc: chat: options: bystandersheartargetedchat: true maxnumberoftargetstoshow: 2 multipletargetsformat: <target>|, <target>| & <target>| & others range: 5 format: notargets: '[<npc>]: <text>' withtargettobystanders: '[<npc>] -> [<target>]: <text>' totarget: '[<npc>] -> You: <text>' withtargetstobystanders: '[<npc>] -> [<targets>]: <text>' default: lookclose: # NPCs turning heads towards players settings enabled: false # whether look close is enabled by default range: 5 # the look close range pathfinding: range: 25.0 # the maximum pathfinding range to search through before giving up randomtalker: true # whether the NPC will randomly select a text item instead of sequentially realisticlooking: false # whether the NPC will ensure potential players to look at / talk to aren't obscured by walls stationaryticks: -1 # how long the NPC will be stationary while pathfinding before giving up talkclose: enabled: false # default talk close range: 5 # range before NPC talks text: '0': Hi, I'm <npc>! # default text limits: defaultlimit: 10 # the default per-player NPC limit maxpermissionchecks: 100 # the maximum number of per-player NPCs a player can have maxspeed: 100 # the maximum speed an NPC can have chunks: alwayskeeploaded: false # whether to always keep chunks loaded with NPCs in them or unload them when there are no other players inside the chunk selection: quickselect: false # no message will be sent item: '280' # the selector item: default is stick message: <b>You selected <a><npc><b>! # the message sent on select player: removefromlist: true # setting this to false will enable human NPCs to be recognised by mobs; it will also make them just like a normal player, which means other plugins will recognise them as well. This can be enabled per-NPC using /npc playerlist serverownership: false # whether the server owns NPCs by default text: maxtalkcooldown: 1 # the maximum cooldown before the NPC will talk close in seconds : the cooldown is chosen at random between the min/max mintalkcooldown: 1 # the minimum cooldown before the NPC will talk close in seconds talkitem: '340' # the items that will cause the NPC to talk to you on right click : default is book pathfinding: usenewfinder: false # EXPERIMENTAL: enable non-Minecraft pathfinder advanced: checkminecraftversion: true # set this to false to disable minecraft compatibility checks. Should not normally be used. storage: database: driver: '' # should be sqlite/mysql/h2, depending on the database password: '' # the database password if needed url: '' # the database URL: eg. sqlite://path/to/my.db username: '' # the database username if needed savetask: delay: 72000 # the delay in ticks before everything gets serialised to disk file: saves.yml # the storage file type: yaml # the type: can be NBT, database, YAML. general: debugmode: false # enable debug output colorscheme: messagehighlight: <e> # set the default highlight colour: usually yellow. message: <a> # set the default message colour: usually green. translation: locale: '' # set the locale explicitly if needed: eg. en_US is US English, de_DE is the generic German locale economy: npc: cost: 100.0 # the cost of an NPC. NOTE: requires Vault subplugins: folder: plugins # subplugins like Denizen etc can be placed into Citizens/<subplugins folder> for organisational purposes.
old config
Mouse over each field to see what each one is used for.
# Citizens Configuration npc: chat: prefix: '[<npc>]: ' selection: quick-select: false item: 280 message: <b>You selected <a><npc><b>! default: look-close: false random-talker: true talk-close: false talk: max-cooldown: 60 min-cooldown: 30 talk-item: 340 server-ownership: false database: password: username: url: driver: general: debug-mode: false use-database: false subplugins: folder: 'plugins'
{{#if:|}}
Quick Navigation | |
---|---|
Usage | Installation · Frequently Asked Questions · Commands · Editors · Characters · API · |
Configuration | Configuration · Text Syntax · Permissions · Waypoints · Data Storage |