Cnzw 提交新资源:
ServerListPlus - 跨平台、支持大量配置的服务器MOTD插件 [1.8-1.20] - ServerListPlus 是一个跨平台、支持大量配置的服务器MOTD插件。
阅读关于此资源更多信息...
ServerListPlus - 跨平台、支持大量配置的服务器MOTD插件 [1.8-1.20] - ServerListPlus 是一个跨平台、支持大量配置的服务器MOTD插件。
阅读关于此资源更多信息...
在配置文件里配置以下内容,可以实现随机使用请问一下怎么用自己的图片作为服务器图标,最好是可以随机变换的。
/plugins/ServerListPlus/icons
文件夹里的图片。--- !Status
Default:
Favicon:
# The file names here should be relative to the plugin folder.
Folders:
- icons
/plugins/favicon1.png
或/plugins/ServerListPlus/favicon2.png
文件的图片。--- !Status
Default:
Favicon:
# The file names here should be relative to the plugin folder.
Files:
- favicon1.png
- favicon2.png
这里说的plugin是指插件文件夹吧,而不是放serverlistplus插件的那个文件夹。在配置文件里配置以下内容,可以实现随机使用/plugins/icons
文件夹里的图片。
YAML:Favicon: # The file names here should be relative to the plugin folder. Folders: - icons
这个则是随机使用/plugins/favicon1.png
或/plugins/favicon2.png
文件的图片。
YAML:Favicon: # The file names here should be relative to the plugin folder. Files: - favicon1.png - favicon2.png
原文文档在这 https://github.com/Minecrell/ServerListPlus/wiki/Favicons
我自己试了下,文件路径是我搞错了,已经修改了原文,你可以再回去看下这里说的plugin是指插件文件夹吧,而不是放serverlistplus插件的那个文件夹。
可是这两边我都试过,也没用呀!
能不能在说详细点呢!
Favicon
的配置内容是在--- !Status
章节里面的,不是--- !Plugin
章节里的--- !Status
Default:
Description:
- |-
&aA Minecraft Server.
&7Now with [&a&lPvP&7], [&a&lMinigames&7], and much more!
- |-
&aA Minecraft Server.
&eNow running the latest &lMinecraft &eversion!
Players:
Hover:
- |-
&aWelcome to &lA Minecraft Server&a!
&aCurrently &e&l%online%/%max% &aplayers are playing on our server!
Favicon: # 配置的是这里
# The file names here should be relative to the plugin folder.
Files:
- 1.png
--- !Plugin
Favicon: # 不是配置这里
Timeout: 10s
RecursiveFolderSearch: false
ResizeStrategy: SCALE
--- !Bukkit
ProtocolLib: AUTO