This is able to use in both Velocity and Spigot.
But this is created for myself for my server.
So this plugin is maybe good for plugin developers.
FMC-Fabric-Mod and FMC-Forge-Mod with similar functionality to spigot are currently under development. This is all needed by connecting to Velocity even if host server is fabric or forge server.
Freely to edit!
For Velocity Server, Velocity Server notifys Embed's message or plain-text-message under each events.
When server switching, joining, disconnecting like this.
When chatting like this.
This brings an automatic chat conversion Romaji to Kanji like this.
Moving to hub server
After executing, Velocity will be shutdown!
Before being shutdown, discord's embed editing like this.
This enable server to be maintenance mode, which is that for example, it is openable for only Admin who has permission:group.super-admin, others disconnecting.
If arg5 sets "true", server can notify to Discord whether maintenance mode is true or not.
Adding or removing permission written in config.yml by adding or removing permission in mysql database for luckperm MySQL mode.
Getting server status and checking whether you have FMC account from MySQL
In FMC Server, using python script for getting minecrafts' status
Here is python scripts
Moving to specific server as server command
Requesting to let server start-up to Admin through discord like this.
If someone presses YES
button, here will be like this.
Here is minecraft's player chat area.
Let server start by bat file of windows
Only sending "canceled event"
/fmcp conv <add | remove | reload | switch> [<add | remove>:key] [<add>:value] [<add>:<true | false>]
Switching converting type of Romaji to Kanji, reloading romaji.csv from plugins/fmc/romaji.csv
, or adding/removing a theirself word into the csv file that has a lot of maps of conversion romaji to kana.
Switching the way of sending chating message to Discord.
There are Embed editing type or Plane text message type.
Switching debug mode. In details, this is only replacing config value each other. For example, Discord.ChannelId and Debug.ChannelId.
Reloading configuration.
Sockets are enable us to communicate between Velocity and Spigot Servers.
- Communication Available even when players are offline
- Not Java, for example, PHP can be access to it.
<?php
// server address & port
$serverAddress = '127.0.0.1';
$serverPort = 8766;
// create socket and connect
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
socket_connect($socket, $serverAddress, $serverPort);
// send message
socket_write($socket, $message, strlen($message));
// close
socket_close($socket);
Forwarding Velocity's command in Spigot
Reloading config
Only returning arg-1 player writes
This project is licensed under the MIT License, see the LICENSE.txt file for details