spigot水龙头1.7.2

如上图 35人配置 s.**niu CPU占用平常10%左右 内存占用平常40%左右
求大神解答并给解决方法!
来大神啊
你这截图
没把
nosuchmethoderror的下面弄出来
大神都不一定能看懂的....
图片来了 似乎是关于chestcommands的错误?
也许是因为你菜单id重复了
也许是因为你位置写重了
也许是因为你: 写成了:
也许是因为:后面忘了空格
→_→我似乎不好发图片 我手打吧. [Server] INFO java.lang.nosuchmethoderror:
org.bukkit.Bukkit.getonlineplayers{}Ljava/unil/Collection
[Server] WARN Task #24274 for ChestCommands v3.1.1 generated an exception
getonlineplayers
获取在线玩家时出错
本帖最后由 lichi2050 于 2016-6-17 17:07 编辑
######################
#+ +#
# MENU SETTINGS #
#+ +#
######################
menu-settings:
# name - appears as the title - REQUIRED
name: '&f&l&m-~&e与村长对话中&f&l&m-~'
# rows - the number of rows of the chest - REQUIRED
rows: 3
# command - OPTIONAL (you can remove this or set it to '')
# Bind multiple commands using ; (command: 'menu; m; me')
command: ''
# auto-refresh - OPTIONAL
# How frequently the menu will be refreshed, in seconds.
# Useful if you have variables in items' descriptions.
auto-refresh: 5
# open-with-item - OPTIONAL
# The menu will open only right-clicking with orange wool [35:1]
open-with-item:
id:
left-click: false
right-click: true
######################
#+ +#
# ITEMS #
#+ +#
######################
spawncmd:
NAME: '&e任务1-1'
LORE:
- '&f&l&m----------------------------------------'
- '&e你就是传送阵中出现的人吗?'
- '&e唉...这个传送阵几年前给我们村庄带来了灾难.'
- '&e召唤出上百只野兽,还好当时是狩猎季'
- '&e我们才能幸免于难,但是房屋全部倒塌了'
- '&e现在想想,还真可怕呀.'
- '&e算了,既然你也是人类,来到了这,那你也要干活'
- '&e先去那边的小树林杀几头豪猪吧.'
- '&f&l&m----------------------------------------'
- '&d任务目标:&e杀<豪猪>*16 &c左键接受/提交任务'
ID: book
POSITION-X: 1
POSITION-Y: 1
colored-enchanted-stacked-wool:
NAME: '&aWool with additional data'
LORE:
- 'This wool has a data value, an amount'
- 'greater than 1, and two enchantments.'
ID: wool
POSITION-X: 2
POSITION-Y: 1
this-text-will-not-appear:
NAME: '&dFormatting codes'
LORE:
- 'You can use all the formatting codes!'
- '&fColors: &c#c &a#a &9#9 &e#e &f... ...'
- '&fRandom (#k): &kfy379!H'
- '&fBold (#l): &lexample'
- '&fStrikethrough (#m): &mexample'
- '&fUnderline (#n): &nexample'
- '&fItalic (#o): &oexample'
ID: paper
POSITION-X: 3
POSITION-Y: 1
test-from-console:
COMMAND: 'console: say Hello {player}!'
NAME: '&cRuns command from the console.'
LORE:
- 'It broadcasts your name with the command /say.'
ID: command block
POSITION-X: 4
POSITION-Y: 1
test-as-op:
COMMAND: 'op: say Hello world!'
NAME: '&cRuns command as OP.'
LORE:
- 'Be careful with this type of commands.'
- 'It will ignore nearly all the permissions.'
ID: command block
POSITION-X: 5
POSITION-Y: 1
test-with-placeholder:
COMMAND: 'tell: &9Online players: &f{online}/{max_players}; tell: &9Your name: &f{player}; tell: &9The world you are in: &f{world}; tell: &9Money: &f{money}'
NAME: '&6This message contains some placeholders'
LORE:
- 'Placeholders will be replaced when the item'
- 'is clicked.'
ID: empty map
POSITION-X: 6
POSITION-Y: 1
economy-give:
COMMAND: 'tell: &aYou have paid 50$ for this command!; give: gold_ingot'
NAME: '&eEconomy & Give command'
LORE:
- 'This command will be executed'
- 'only if you have at least 50$!'
- 'It gives you a gold ingot.'
ID: gold ingot
PRICE: 50
POSITION-X: 7
POSITION-Y: 1
economy-take:
REQUIRED-ITEM: 'gold_ingot'
COMMAND: 'tell: &aYou have been paid 50$; givemoney: 50'
NAME: '&eEconomy & Required item'
LORE:
- 'This command is the opposite of the previous.'
- 'It will take you a gold ingot and give you $50.'
ID: gold ingot
POSITION-X: 8
POSITION-Y: 1
will-not-close:
NAME: '&2Info'
LORE:
- '&7The menu will not close'
- '&7clicking on this item.'
ID: sign
KEEP-OPEN: true
POSITION-X: 9
POSITION-Y: 1
a-talking-head:
COMMAND: 'tell: This is a simple message, without using commands!'
NAME: '&3Tells you something.'
LORE:
- '&7It tells you something without commands.'
ID: head
DATA-VALUE: 3
POSITION-X: 1
POSITION-Y: 2
a-talking-head:
COMMAND: 'tell: This is a simple message, without using commands!'
NAME: '&3Tells you something.'
LORE:
- '&7It tells you something without commands.'
ID: head
DATA-VALUE: 3
POSITION-X: 1
POSITION-Y: 2
test-multiple-command:
COMMAND: 'console: Say Did you know that...; console: say you can run multiple commands?;'
NAME: '&aMultiple commands'
LORE:
- 'Example of multiple commands.'
ID: golden apple
POSITION-X: 2
POSITION-Y: 2
permission:
COMMAND: 'tell: &a[v] You have the correct permission!'
NAME: '&8Permission test'
LORE:
- 'To use this item, you need the'
- 'permission "chestcommands.test".'
- 'Otherwise, a configurable error'
- 'message will be displayed.'
ID: iron bar
POSITION-X: 3
POSITION-Y: 2
PERMISSION: chestcommands.test
PERMISSION-MESSAGE: 'You don''t have the correct permission!'
menu-close-no-commands-no-lore:
NAME: '&6Close the menu'
ID: redstone lamp
LORE:
- 'Create an item without command,'
- 'the GUI will just close.'
POSITION-X: 9
POSITION-Y: 3 |
我拿example来做的菜单 还没改完 能打开菜单 输入/cc后没有显示有错误的菜单
{:10_492:}找你的配置啊
应该你写上了在线人数之类的消息
想一下的话只有Colormotd用了{ONLINE}这个变量 而且正常显示..
{:10_492:}你确定不会再报什么错了吗...
把你cc的配置亮一下
NoSuchMethodError那里隐约看见了是getOnlinePlayers,换用正确版本的chestcommands即可(1.7.10以下适用版本应该就可以了)
本帖最后由 lichi2050 于 2016-6-17 17:02 编辑
######################
#+ +#
# MENU SETTINGS #
#+ +#
######################
menu-settings:
# name - appears as the title - REQUIRED
name: '&f&l&m-~&e与村长对话中&f&l&m-~'
# rows - the number of rows of the chest - REQUIRED
rows: 3
# command - OPTIONAL (you can remove this or set it to '')
# Bind multiple commands using ; (command: 'menu; m; me')
command: ''
# auto-refresh - OPTIONAL
# How frequently the menu will be refreshed, in seconds.
# Useful if you have variables in items' descriptions.
auto-refresh: 5
# open-with-item - OPTIONAL
# The menu will open only right-clicking with orange wool [35:1]
open-with-item:
id:
left-click: false
right-click: true
######################
#+ +#
# ITEMS #
#+ +#
######################
spawncmd:
NAME: '&e任务1-1'
LORE:
- '&f&l&m----------------------------------------'
- '&e你就是传送阵中出现的人吗?'
- '&e唉...这个传送阵几年前给我们村庄带来了灾难.'
- '&e召唤出上百只野兽,还好当时是狩猎季'
- '&e我们才能幸免于难,但是房屋全部倒塌了'
- '&e现在想想,还真可怕呀.'
- '&e算了,既然你也是人类,来到了这,那你也要干活'
- '&e先去那边的小树林杀几头豪猪吧.'
- '&f&l&m----------------------------------------'
- '&d任务目标:&e杀<豪猪>*16 &c左键接受/提交任务'
ID: book
POSITION-X: 1
POSITION-Y: 1
colored-enchanted-stacked-wool:
NAME: '&aWool with additional data'
LORE:
- 'This wool has a data value, an amount'
- 'greater than 1, and two enchantments.'
ID: wool
POSITION-X: 2
POSITION-Y: 1
this-text-will-not-appear:
NAME: '&dFormatting codes'
LORE:
- 'You can use all the formatting codes!'
- '&fColors: &c#c &a#a &9#9 &e#e &f... ...'
- '&fRandom (#k): &kfy379!H'
- '&fBold (#l): &lexample'
- '&fStrikethrough (#m): &mexample'
- '&fUnderline (#n): &nexample'
- '&fItalic (#o): &oexample'
ID: paper
POSITION-X: 3
POSITION-Y: 1
test-from-console:
COMMAND: 'console: say Hello {player}!'
NAME: '&cRuns command from the console.'
LORE:
- 'It broadcasts your name with the command /say.'
ID: command block
POSITION-X: 4
POSITION-Y: 1
test-as-op:
COMMAND: 'op: say Hello world!'
NAME: '&cRuns command as OP.'
LORE:
- 'Be careful with this type of commands.'
- 'It will ignore nearly all the permissions.'
ID: command block
POSITION-X: 5
POSITION-Y: 1
test-with-placeholder:
COMMAND: 'tell: &9Online players: &f{online}/{max_players}; tell: &9Your name: &f{player}; tell: &9The world you are in: &f{world}; tell: &9Money: &f{money}'
NAME: '&6This message contains some placeholders'
LORE:
- 'Placeholders will be replaced when the item'
- 'is clicked.'
ID: empty map
POSITION-X: 6
POSITION-Y: 1
economy-give:
COMMAND: 'tell: &aYou have paid 50$ for this command!; give: gold_ingot'
NAME: '&eEconomy & Give command'
LORE:
- 'This command will be executed'
- 'only if you have at least 50$!'
- 'It gives you a gold ingot.'
ID: gold ingot
PRICE: 50
POSITION-X: 7
POSITION-Y: 1
economy-take:
REQUIRED-ITEM: 'gold_ingot'
COMMAND: 'tell: &aYou have been paid 50$; givemoney: 50'
NAME: '&eEconomy & Required item'
LORE:
- 'This command is the opposite of the previous.'
- 'It will take you a gold ingot and give you $50.'
ID: gold ingot
POSITION-X: 8
POSITION-Y: 1
will-not-close:
NAME: '&2Info'
LORE:
- '&7The menu will not close'
- '&7clicking on this item.'
ID: sign
KEEP-OPEN: true
POSITION-X: 9
POSITION-Y: 1
a-talking-head:
COMMAND: 'tell: This is a simple message, without using commands!'
NAME: '&3Tells you something.'
LORE:
- '&7It tells you something without commands.'
ID: head
DATA-VALUE: 3
POSITION-X: 1
POSITION-Y: 2
a-talking-head:
COMMAND: 'tell: This is a simple message, without using commands!'
NAME: '&3Tells you something.'
LORE:
- '&7It tells you something without commands.'
ID: head
DATA-VALUE: 3
POSITION-X: 1
POSITION-Y: 2
test-multiple-command:
COMMAND: 'console: Say Did you know that...; console: say you can run multiple commands?;'
NAME: '&aMultiple commands'
LORE:
- 'Example of multiple commands.'
ID: golden apple
POSITION-X: 2
POSITION-Y: 2
permission:
COMMAND: 'tell: &a[v] You have the correct permission!'
NAME: '&8Permission test'
LORE:
- 'To use this item, you need the'
- 'permission "chestcommands.test".'
- 'Otherwise, a configurable error'
- 'message will be displayed.'
ID: iron bar
POSITION-X: 3
POSITION-Y: 2
PERMISSION: chestcommands.test
PERMISSION-MESSAGE: 'You don''t have the correct permission!'
menu-close-no-commands-no-lore:
NAME: '&6Close the menu'
ID: redstone lamp
LORE:
- 'Create an item without command,'
- 'the GUI will just close.'
POSITION-X: 9
POSITION-Y: 3 |
就是这些 就这一个菜单 剩下的均为下载后自动生成的配置
我的是1.7.2 难道用1.7.1以下的吗 如果是 我就试一下_(:зゝ∠)_
如果是的话 麻烦请发一下chestcommands的版本.. 我好对应下{:10_512:}
版本过高的话可以发一下适应的版本吗
我的服务器是Spigot 1.7.2
请发chestcommands的版本 我对应下载 谢谢_(:зゝ∠)_
_(:зゝ∠)_大神对不起辣 满意我给另一位了 给你评分金粒表示下感谢吧 如果可以的话 帮我解答一下另一个关于quests插件的问题