作者:KeybordPiano459
ServerHub 为新玩家提供了一种快速了解在你的服务器上该做什么的方法。你可以将服务器活动添加到列表中,用户可以根据你在配置文件中定义的内容传送至这些活动。
命令
目前唯一的命令是 /hub。当玩家执行此命令时,会弹出一个 GUI,类似于下图所示。GUI 中将包含一些在服务器中可前往地点的选项,这些都在配置文件中定义,下文也将对此进行说明。
配置文件
你可以在此处查看示例配置文件。
以下是你需要在配置文件中编辑的内容:
gui-rows: [# of rows]
gui-name: [name]
click-item-id: [item-id]
如何将新物品添加到你的 GUI(括号内的内容是你需要添加的):
items:
slot-[number]:
item-id: [id that will be clicked on]
name: [name of item when hovered over]
lore:
line-[line number (starts with 0)]: [text you want on that line]
line-[line number]: [text you want on the next line]
command: [command to be executed by player when item is clicked]
信息
ServerHub 是一个插件,最初是为我所欣赏的一个服务器 Minederp 制作的。我独立开发了此插件,它成为了一个非常轻量级的插件,根据你如何使用它,它可以对你的服务器带来很大的帮助。在 Minederp,我们使用它以便新玩家能够熟悉服务器的操作。
安装插件本身很简单。只需将下载的 .jar 文件拖放到服务器的 plugins 文件夹中即可。安装完成后,启动服务器,便可像使用其他插件一样启用所有功能。
By: KeybordPiano459
ServerHub provides a quick way for new players to figure out what to do on your server. You can add server events to the list, and users could be able to warp to them, based on what you define in the config.
Commands
Currently, the only command is /hub. When the player performs this command, a GUI will pop up, similar to the one below. The GUI will have certain options on places to go around the server, which is all defined in the config, also explained below.
Configuration
You can view an example config file here.
Here are the things that you need to edit in your config file:
gui-rows: [# of rows]
gui-name: [name]
click-item-id: [item-id]
How to add a new item to your GUI (things in brackets are what you need to add):
items:
slot-[number]:
item-id: [id that will be clicked on]
name: [name of item when hovered over]
lore:
line-[line number (starts with 0)]: [text you want on that line]
line-[line number]: [text you want on the next line]
command: [command to be executed by player when item is clicked]
Information
ServerHub is a plugin that was originally made for a server that I appreciate, Minederp. I developed this plugin on my own, and it came out as a very lightweight plugin that can be very beneficial to your server depending on how you use it. At Minederp, we use it so that new players are able to learn their way around the server.
Installing the plugin itself is easy. Just drag the .jar file that you downloaded into your server's plugins folder. Once it's installed, you can start up the server, and use all of the features as you would with any other plugin.
评论 0
登录后参与评分
还没有评论,来抢沙发吧