TigerReportsSupports by MrTigreroux
依赖于 TigerReports 插件
描述
TigerReportsSupports 为 TigerReports 插件添加了支持。
目前,它提供了 Discord 支持。
截图
新报告警报:\
处理中的报告:\
重要报告:\
已处理的报告:\
命令:\
安装
创建 Discord 机器人
-
访问此网页:(您必须已登录 Discord)
-
点击 New App 按钮:
-
在 Name 下方输入您选择的 bot name。然后点击 Create。
-
通过点击 Add Bot 按钮将应用转换为机器人:
-
取消勾选 Public bot,取消勾选 Requires OAuth2 Code Grant,并勾选 Message Content Intent,然后 Save Changes:
)
- 打开一个新网页,并 粘贴以下 URL(不要按回车):
<ID>&scope=bot&permissions=0
现在 Discord 机器人已创建并成为您 Discord 服务器的成员。
安装 TigerReportsSupports
- 停止您的 Spigot 服务器。
- 如果您尚未安装,请安装最新版本的 TigerReports 插件。
- 下载并将 TigerReportsSupports.jar 文件放入服务器的
plugins 文件夹中。
- 启动您的服务器。
如果您拥有 BungeeCord 网络,您可以按以下方式安装此插件:
配置 Discord 机器人
-
打开 ./plugins/TigerReportsSupports 文件夹中的 config.yml 文件。
-
将 Discord: Enabled 的值从 "false" 改为 "true"。
-
从机器人的网页(如果您关闭了它)复制 Discord 机器人 Token,通过点击 Copy 按钮并将其填入 Discord: Token。
-
进入您的 Discord 服务器,对您希望机器人使用的 文本频道 右键单击,然后点击 Copy the id:
获取 ID 的另一种方法:在您希望机器人使用的 文本频道 名称前加一个 **"" 符号,然后复制它(如下高亮显示)
- 将 频道 ID(之前复制的)填入配置中的
Discord: Channel。
- 在您 Discord 服务器的频道中输入重载命令:
/tigerreports reload。
就这样,机器人现在将在该频道中显示所有新报告。
您可以修改 messages.yml 文件中的每条消息,然后使用上述命令进行重载。
配置
插件可以在 config.yml 文件中配置。
Discord:
Enabled: 定义是否使用 Discord 支持。
Token: 定义 Discord 机器人的 Token。
Channel: 定义 Discord 机器人使用的频道。
Managers: 定义可以使用 /tigerreports 命令的用户。
删除 "none" 和 "#",并将 "pseudo" 替换为用户的 Discord(唯一)名称。
ServerInfo: 是否在警报中显示服务器字段。
默认 config.yml 设置位于 此处。
消息
消息默认为 法语,但所有消息都可以在 messages.yml 文件中修改。
为什么? 因为我是法国人,我不希望插件的默认消息出现糟糕的英语,但我仍然在下面写了一个英语基础版本,以防您没有时间/动力自己翻译。
它们会在所有新版本发布后更新。
为了使 Discord 机器人 标记(/提及) 一个 Discord 角色,您可以在 messages.yml 文件中放置 <@&ROLE_ID>,其中 ROLE_ID 替换为您可以通过在 Discord 频道中输入 \@ROLE_NAME(将 ROLE_NAME 替换为角色名称)获得的角色 ID。
重要提示: 如果您使用的是 Minecraft 1.8 或更低版本,您必须使用 ANSI 编码 messages.yml 文件,否则必须使用 UTF-8 编码。
如果消息未更改,意味着您使用了错误的格式进行编码。
另外,您不能在文件的第 1 行放置注释(#Message)。如果您这样做,消息将简单地不被实现。
更新您的消息
如果您最近将 TigerReportsSupports 更新到了最新版本,您可以使用此在线工具更新您的消息(在 messages.yml 文件中):

默认消息
请点击下方的语言,然后按 CTRL 和 A 键全选所有消息,接着复制/粘贴它们(先按 CTRL 和 C,再按 CTRL 和 V)。
(感谢分享这些翻译的人,他们的用户名位于文件顶部)
English
Français
Español
Русский
命令
目前 Discord 机器人有 2 个命令:
/tigerreports reload: 重新加载配置文件(config.yml 和 messages.yml)。
/tigerreports stop: 断开机器人连接。
服务条款
请通过遵守以下指示来尊重我的劳动成果:
- 不要声称此插件是你的作品。
- 不要在此网站或其他网站上分发或出售此插件,仅重定向到此页面即可。
- 未经引用我并通知我(MrTigreroux),不得复制部分或全部源代码。
这就是全部内容,感谢你阅读此页面。
如果你想查看源代码,该插件托管在 GitHub。
如果遇到任何错误或有任何建议,请在此处告知我:
我会尽快回复。
请记住,我制作此插件是免费的,旨在帮助那些不知道如何创建自己插件的人们,因此非常欢迎点赞或反馈。 :)
TigerReportsSupports by MrTigreroux
Depends on TigerReports plugin
Description
TigerReportsSupports adds supports to TigerReports plugin.
Currently, it is adding Discord support.
Pictures
Alert of a new report:\
In progress report:\
Important report:\
Processed report:\
Commands:\
Installation
Creation of the Discord bot
-
Go on this web page: (You must be logged on Discord)
-
Click on the New App button:
-
Put the bot name of your choice under Name. Then click on Create.
-
Convert the App to Bot by clicking on Add Bot button:
-
Untick Public bot, untick Requires OAuth2 Code Grant and tick Message Content Intent, then Save Changes:
)
- Open a new web page and paste, without validating, this URL:
<ID>&scope=bot&permissions=0
-
Replace the <ID> in the above link with your bot Client ID, then press Enter:
-
Select your Discord server, then authorize the bot to join:
The Discord bot is now created and is a member of your Discord server.
Installation of TigerReportsSupports
- Stop your Spigot server.
- Install the latest version of TigerReports plugin if you don't already have it.
- Download and put TigerReportsSupports.jar file in the
plugins folder of your server.
- Launch your server.
If you have a BungeeCord network, you can install this plugin:
Setting up the Discord bot
-
Open config.yml file in ./plugins/TigerReportsSupports folder.
-
Replace "false" to "true" for Discord: Enabled.
-
Copy the Discord bot Token from the web page of the bot (here if you closed it) by clicking on Copy button and put it for Discord: Token.
-
Go on your Discord server and right click on the text channel you want the bot to use and then click on Copy the id:
Other way of getting the id: type the name of the text channel you want the bot to use with a "" before, then copy it (highlighted below)
- Put the channel ID (previously copied) in the config to
Discord: Channel.
- Type in a channel of your Discord server the reload command:
/tigerreports reload.
That's it, the bot will now display all new reports in this channel.
You can change every message in messages.yml file and then reload with the previous command.
Config
The plugin can be configured in config.yml file.
Discord:
Enabled: Define if the Discord support is used.
Token: Define the Token of the Discord bot.
Channel: Define the channel used by the Discord bot.
Managers: Define users who can use the /tigerreports command.
Remove the "none" and the "#" and replace "pseudo" with the Discord (unique) name of an user.
ServerInfo: Display or not the server field in alerts.
The default config.yml settings are here.
Messages
Messages are by default in french but all can be modified in messages.yml file.
Why? Because I'm french I don't want the default messages of the plugin to have bad english but I nevertheless wrote a base of english below if you don't have the time/motivation to translate them by yourself.
They are updated after all new versions.
In order to make the Discord bot tag(/mention) a Discord role, you can put <@&ROLE_ID> in messages.yml file with ROLE_ID replaced by the id of the role that you can get by typing \@ROLE_NAME in a Discord channel with ROLE_NAME replaced by the name of the role.
Important: If you use Minecraft 1.8 or less, you must encode messages.yml file with ANSI, else you must encode it with UTF-8.
If messages are not changed, it means that you encoded with wrong format.
Also, you can't put a comment (#Message) at first line of the file. If you do it messages will simply not be implemented.
Update your messages
If you recently updated TigerReportsSupports to the latest version, you can update your messages (in messages.yml file) with this online tool:

Default messages
Click on your language below, then press CTRL and A keys to select all the messages and then copy/paste them (CTRL and C then CTRL and V).
(thanks to people who shared these translations, their pseudo is at the top of the file)
English
Français
Español
Русский
Commands
There are currently 2 commands for the Discord bot:
/tigerreports reload: Reloads the config files (config.yml and messages.yml).
/tigerreports stop: Disconnect the bot.
Terms of Service
Please respect my work respecting these directions:
- Do not claim this plugin as yours.
- Do not distribute or sell this plugin on this site or another, just redirect to this page.
- Do not copy part or all of source code without quoting me and notifying me (MrTigreroux).
And that's all, thank you for reading this page.
If you want to look at sources, the plugin is on GitHub.
If you encounter any bug or have suggestions, let me know them here:
I will answer as soon as possible.
Please keep in mind that I made this plugin for free to help people who don't know how to create their own plugin, a like or feedback is highly appreciated. :)
评论 0
登录后参与评分
还没有评论,来抢沙发吧