RT,求教一下
关于中文输入的问题,这样解决,config.yml里有一个name-regex设置选项,将内容替换为
01.复制代码
即可可以中英文混合。
01.
- name-regex: '[^\x00-\x1f\x21-\x2f\x3a-\x40\x5b-\x60\x7b-\xff]{2,25}'
即可可以中英文混合。
__Tong__ 发表于 2015-1-30 22:15
关于中文输入的问题,这样解决,config.yml里有一个name-regex设置选项,将内容替换为
01.
即可可以中英 ...
谢谢了。斗胆再问一下,那个我装了motd插件的啊,怎么把服务器的彩色滚动标语弄成2排的,怎么弄都是1排啊..或者是其他插件能行的都行~
__Tong__ 发表于 2015-1-30 22:15
关于中文输入的问题,这样解决,config.yml里有一个name-regex设置选项,将内容替换为
01.
即可可以中英 ...
额...等一下!!我吧config.yml改了还是不行...那这样,我把我yml里面的代码发上来,你看看哪里不对。不行就帮一下我发一个完整的代码吧..
- disable-other-villagers: true
- hire-other-villagers: false
- block-villager-spawns: false
- enable-spawn-verifier: false
- bypass-spawn-blocking: true
- enable-purchase-logging: false
- save-instantly: true
- enable-world-guard-restrictions: false
- enable-towny-restrictions: false
- require-chest-recently-placed: true
- create-player-shop-with-command: false
- simulate-right-click-on-command: true
- protect-chests: true
- delete-shopkeeper-on-break-chest: false
- max-shops-per-player: 0
- max-shops-perm-options: 10,15,25
- max-chest-distance: 15
- player-shopkeeper-inactive-days: 0
- prevent-trading-with-own-shop: true
- tax-rate: 0
- tax-round-up: false
- shop-creation-item: MONSTER_EGG
- shop-creation-item-data: 120
- shop-creation-item-name: ''
- prevent-shop-creation-item-regular-usage: false
- deleting-player-shop-returns-egg: false
- enable-villager-shops: true
- enable-sign-shops: true
- enable-witch-shops: true
- enable-creeper-shops: false
- sign-shop-first-line: '[SHOP]'
- show-nameplates: true
- always-show-nameplates: false
- nameplate-prefix: '&a'
- name-regex: '[A-Za-z0-9 ]{3,32}'
- editor-title: Shopkeeper Editor
- name-item: ANVIL
- delete-item: FIRE
- hire-item: EMERALD
- hire-other-villagers-costs: 1
- hire-item-text: '&aHire This Shopkeeper'
- for-hire-title: For Hire
- currency-item: EMERALD
- currency-item-data: 0
- zero-item: SLIME_BALL
- high-currency-item: EMERALD_BLOCK
- high-currency-item-data: 0
- high-currency-value: 9
- high-currency-min-cost: 20
- high-zero-item: SLIME_BALL
- msg-button-name: '&aSet Shop Name'
- msg-button-type: '&aChoose Appearance'
- msg-button-delete: '&4Delete'
- msg-button-hire: '&aHire'
- msg-selected-normal-shop: '&aNormal shopkeeper selected (sells items to players).'
- msg-selected-book-shop: '&aBook shopkeeper selected (sell books).'
- msg-selected-buy-shop: '&aBuying shopkeeper selected (buys items from players).'
- msg-selected-trade-shop: '&aTrading shopkeeper selected (trade items with players).'
- msg-selected-villager-shop: '&aVillager shop selected.'
- msg-selected-sign-shop: '&aSign shop selected.'
- msg-selected-witch-shop: '&aWitch shop selected.'
- msg-selected-creeper-shop: '&aCreeper shop selected.'
- msg-selected-chest: '&aChest selected! Right click a block to place your shopkeeper.'
- msg-must-select-chest: '&aYou must right-click a chest before placing your shopkeeper.'
- msg-chest-too-far: '&aThe shopkeeper''s chest is too far away!'
- msg-chest-not-placed: '&aYou must select a chest you have recently placed.'
- msg-type-new-name: "&aPlease type the shop's name into the chat.\n &aType a dash\
- \ (-) to remove the name."
- msg-name-set: '&aThe shop''s name has been set!'
- msg-name-invalid: '&aThat name is not valid!'
- msg-unknown-shopkeeper: '&7No shopkeeper found with that name.'
- msg-unknown-player: '&7No player found with that name.'
- msg-must-target-chest: '&7You have to target a chest.'
- msg-unused-chest: '&7No shopkeeper is using this chest.'
- msg-not-owner: '&7You are not the owner of this shopkeeper.'
- msg-owner-set: '&aNew owner was set to &e{owner}'
- msg-must-hold-hire-item: '&7You have to hold the required hire item in your hand.'
- msg-set-for-hire: '&aThe Shopkeeper was set for hire.'
- msg-hired: '&aYou have hired this shopkeeper!'
- msg-cant-hire: '&aYou cannot afford to hire this shopkeeper.'
- msg-villager-for-hire: '&aThe villager offered his services as a shopkeeper in exchange
- for &6{costs}x {hire-item}&a.'
- msg-player-shop-created: '&aShopkeeper created!
- &aAdd items you want to sell to your chest, then
- &aright-click the shop while sneaking to modify costs.'
- msg-book-shop-created: '&aShopkeeper created!
- &aAdd written books and blank books to your chest, then
- &aright-click the shop while sneaking to modify costs.'
- msg-buy-shop-created: '&aShopkeeper created!
- &aAdd one of each item you want to sell to your chest, then
- &aright-click the shop while sneaking to modify costs.'
- msg-trade-shop-created: '&aShopkeeper created!
- &aAdd items you want to sell to your chest, then
- &aright-click the shop while sneaking to modify costs.'
- msg-admin-shop-created: '&aShopkeeper created!
- &aRight-click the shop while sneaking to modify trades.'
- msg-shop-create-fail: '&aYou cannot create a shopkeeper there.'
- msg-too-many-shops: '&aYou have too many shops.'
- file-encoding: ''
q82148900 发表于 2015-1-30 23:44
额...等一下!!我吧config.yml改了还是不行...那这样,我把我yml里面的代码发上来,你看看哪里不对。不 ...
第35行
改成
- name-regex: '[^\x00-\x1f\x21-\x2f\x3a-\x40\x5b-\x60\x7b-\xff]{2,25}'
那个标语好像是换行或者使用大量空格刷新到下一行吧
实在不行http://www.mcbbs.net/forum.php?m ... &highlight=MOTD
这个插件也不错