你是否曾渴望在 Minecraft 中拥有一套全局封禁解决方案?是的,你确实想过。别否认了,别再自欺欺人了。使用 gBan,你不仅可以将其集成到你的网站中,它还是跨服务器网络进行封禁和静音的最新、排名第一的解决方案!
gBan 利用了 MySQL 的强大功能;这允许你通过将所有服务器连接到一个 MySQL 服务器,从而在所有服务器上封禁和静音玩家。你可以拥有无限数量的服务器,但只需要一个 MySQL 数据库。
我们现在集成了非常棒的功能——Web 集成!如果你托管或拥有一个网站,只需上传不到 10 个文件,就能拥有一个美观的封禁和静音页面。采用时尚的黑白设计,你将始终吸引访客的目光!点击此处开始使用 Web 集成。
要开始使用 gBan,请从右侧下载最新版本的文件。下载后,请将其放入插件目录(server/plugins/)。然后,首次运行服务器。服务器启动后,它将创建配置文件并禁用该插件。导航至你的 plugins 目录,选择 gBan 文件夹。在此文件夹中,请打开 config.yml(server/plugins/gban/config.yml)。完成此操作后,请编辑该文件以连接到你的 MySQL 服务器。其内容应类似如下:
此配置适用于 2.0 版本;同样适用于 2.2 和 2.5 版本。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 | # +----------------------------------------------------+
# < gBan Config File >
# < Version 2.0 >
# < Created By Tayler King >
# +----------------------------------------------------+
# 这是你的 MySQL 服务器的主机地址。
# 注意:如果你的 MySQL 服务器不在本地,你必须将其设置为
# 允许外部连接。
host: jdbc:mysql://localhost:3306/
# 这是你的 MySQL 服务器的数据库名称。我们强烈建议
# 你使用 gBan,但这由你决定。
database: gBan
# 这是你的数据库的用户名。我们强烈建议
# 避免使用 root,但这由你决定。
username: root
# 这是你的数据库的密码。我们强烈建议
# 你使用 gBan,但这由你决定。
password: password
|
完成编辑此文件后,请保存并关闭它。现在你可以重新加载服务器。如果没有错误,你就可以正常使用了。
| 权限 | 语法 | 用法 |
| gban.ban | /gban <player> [reason] | 全局封禁 [player](可选:[reason]) |
| gban.unban | /gunban <player> | 全局解封 [player] |
| gban.banlist | /gbanlist | 显示所有被封禁玩家的列表 |
| gban.tempban | /gtempban <player> [time] [reason] | 全局临时封禁 [player](可选:[time] [reason]) |
| gban.mute | /gmute <player> <time> | 全局静音 [player] 持续 [time] |
| gban.unmute | /gunmute <player> | 全局解除静音 [player]
|
本插件使用了 Hidendra 的插件指标系统,这意味着以下信息会被收集并发送到 mcstats.org:
- 唯一标识符
- 服务器的 Java 版本
- 服务器是离线模式还是在线模式
- 插件的版本
- 服务器的版本
- 操作系统版本/名称及架构
- CPU 的核心数量
- 在线玩家数量
- Metrics 版本
如果你希望禁用此功能(我会哭泣),你可以通过退出选项来禁用它,你可以在 /plugins/PluginMetrics/ 下的配置文件中进行操作。
Have you ever wanted a global banning solution in minecraft? Yes, yes you have. You can't deny it. Stop lying to yourself. With gBan, not only can you now integrate it into your website, but it is the latest and #1 solution for banning and muting across your server network!
gBan utilizes the great power of MySQL; this allows you to ban and mute players across all your servers by connecting them to just one of your MySQL servers. You can have unlimited amount of servers, but only need one MySQL database.
We now have integrated a very great feature, web integration! If you host or own a website, you can upload less than 10 files to have a beautiful ban and mute page. Featuring a stylish black and white design, you will always have the visitors attention! Click here to get started with web integration.
To get started with gBan, please download the latest file from the right. Once you have downloaded it, please put it into your plugin directory (server/plugins/). Now, run the server for the first time. Once the server has started, it will create the config and disable the plugin . Navigate to your plugins directory, and select the gBan folder. Within this folder, please open up the config.yml (server/plugins/gban/config.yml). Now you have done this, please edit the file so it can connect to your mysql server. It should look something like this:
This config is for 2.0; it applies to 2.2 and 2.5.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 | # +----------------------------------------------------+
# < gBan Config File >
# < Version 2.0 >
# < Created By Tayler King >
# +----------------------------------------------------+
# This is the host address for your MySQL server.
# Note: If your MySQL server is not local, you must set it to
# allow external connections.
host: jdbc:mysql://localhost:3306/
# This is the database name for your MySQL server. We highly
# suggest you use gBan, but it is up to you.
database: gBan
# This is the user name for your database. We highly
# suggest you avoid using root, but it is up to you.
username: root
# This is the password for your database. We highly
# suggest you use gBan, but it is up to you.
password: password
|
Once you have finished editing this file, please save and close it. You can now reload the server. If there are no errors, you are good to go.
| Permission | Syntax | Usage |
| gban.ban | /gban <player> [reason] | Globally bans [player] (Optional: [reason]) |
| gban.unban | /gunban <player> | Globally unbans [player] |
| gban.banlist | /gbanlist | Shows list of all banned players |
| gban.tempban | /gtempban <player> [time] [reason] | Globally bans [player] (Optional: [time] [reason]) |
| gban.mute | /gmute <player> <time> | Globally mutes [player] for [time] |
| gban.unmute | /gunmute <player> | Globally unmutes [player]
|
This plugin utilises Hidendra’s plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server’s version of Java
- Whether the server is in offline or online mode
- The plugin’s version
- The server’s version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
If you wish to disable this feature (me cries), you can do so by opt-ing out, which you can do in the config file under /plugins/PluginMetrics/
评论 0
登录后参与评分
还没有评论,来抢沙发吧