Compatibility
Minecraft: Java Edition
Platforms
Tags
Creators
Details
--日本語
このプラグインはバックエンドサーバーをディスコードで管理とインゲームでのQOLを向上させられるプラグインです。
主な機能
- ディスコードとゲーム内からバックエンドサーバーをコマンドで起動させる機能。
- ディスコードからゲーム内コマンドを実行できる機能。
- ディスコードからホワイトリストにプレイヤーを追加する機能。
- 各サーバーとディスコード間でのチャット同期機能。
- /<サーバー名> でサーバー間を移動できる機能。
コンフィグファイルの説明
ディスコードからインゲームコマンドを実行するには、Minecraft標準機能のrconを使用しています。 rconのポートは必ず”閉じて”ください。 rconを使うにはserver.propertiesで有効にする必要があります。
- enable-rcon=false をtrueに。
- rcon.password 難攻不落なパスワードを指定してください。
- rcon.port=25575 他と被らないポートを指定してください。必ずポートは閉じてください。
discord {
token="YOUR_BOT_TOKEN_HERE" //VelocityのメインBOT。チャットの同期もこのBOTが担います。
channel-id="000000000000000000" //チャットを同期したいチャンネルIDを入力してください。
}
status-check {
interval=5 //下記BOTの更新頻度
}
status-bots=[
{
server-name=lobby //サーバーの名前を入力してください。プラグインはこのサーバー名を参照しています。
token="BOT_TOKEN" //このBOTはサーバーのステータスと、バックエンドサーバーのコマンド入力用です。
start-bat-path="C:\\path\\to\\start.bat" //サーバーのbatファイルのディレクトリを指定してください。パスの区切りには必ず\\ を使用してください。
rcon-address="127.0.0.1" //サーバ機のアドレスを入力してください。すべて同じローカルマシンならデフォルトのままでOKです。
rcon-port=25575 //他のポートと被らないアドレスを入力してください。
rcon-password=password //パスワードを入力してください。
}
]
BOTの導入方法
下記URLより作成してください。 BOTタブにある "Server Members Intent" と "Message Content Intent" を有効にしてOAuth2から "bot" "applications.commands" "管理者" を有効にしてご自身のサーバーにBOTを招待してください。
https://discord.com/developers/applications
コマンドの使い方
ディスコード /を入力して使いたい機能があるBOTのアイコンを選択し、実行したいコマンドを選択してください。
インゲーム /start-server <servername> でサーバーを起動できます。
このMODを作成するのに膨大な時間をかけてきました、このMODを気に入ってもらえたなら支援してもらえると助かります。 https://www.paypal.com/paypalme/MikankanTPF2
--English
This plugin allows you to manage your backend server via Discord and improves in-game quality of life.
Main Features
- Ability to start the backend server via commands from both Discord and within the game.
- Ability to execute in-game commands from Discord.
- Ability to add players to the whitelist from Discord.
- Chat synchronization between each server and Discord.
- Ability to switch between servers using
/<server name>.
Configuration File Explanation
To execute in-game commands from Discord, this plugin uses Minecraft’s standard rcon feature. Please ensure the rcon port is “closed.” To use rcon, you must enable it in server.properties.
- Change
enable-rcon=falsetotrue. rcon.password: Specify a strong, unbreakable password.rcon.port=25575: Specify a port that does not conflict with others. Be sure to close the port.
discord {
token="YOUR_BOT_TOKEN_HERE" //Velocity's main bot. This bot also handles chat synchronization.
channel-id=“000000000000000000” //Enter the channel ID for which you want to synchronize chat.
}
status-check {
interval=5 // Update frequency for the bot below
}
status-bots=[
{
server-name=lobby // Enter the server name. The plugin references this server name.
token="BOT_TOKEN" // This bot is used for server status and command input to the backend server.
start-bat-path=“C:\\path\\to\\start.bat” // Specify the directory of the server's batch file. Be sure to use \\ as the path separator.
rcon-address=“127.0.0.1” //Enter the server machine's address. If everything is on the same local machine, the default setting is fine.
rcon-port=25575 //Enter an address that does not conflict with other ports.
rcon-password=password //Enter the password.
}
]
How to Set Up the Bot
Please create the bot using the URL below. Enable “Server Members Intent” and “Message Content Intent” in the ‘Bots’ tab, then enable “bot applications.commands” under “Administrators” in OAuth2 and invite the bot to your server.
https://discord.com/developers/applications
How to Use Commands
Discord
Type /, select the icon of the bot with the feature you want to use, and then select the command you want to execute.
In-Game
You can start a server with /start-server <servername>.
I’ve spent a tremendous amount of time creating this mod, so if you like it, please consider supporting me. https://www.paypal.com/paypalme/MikankanTPF2


