This plugin allows you to control your server via telegram.
Basically all this plugin does right now - executes the command you send and returns console output (it waits ` delay` milliseconds and then sends you console output)
Warning:
- Type commands without / , like you do in usual console.
- For each server you run you will need different bot from BotFather
Instruction:
Instruction
- Firstly, contact @BotFather via telegram and get your bot's API token. Write it down. Also remember your bot's username.
- DO NOT SHARE IT WITH ANYONE.
- Download this plugin, save it to 'plugins' folder and run server once. Then stop the server and open config file(plugins/TGConsole/config.yml).
- Set value enabled to true
- Change values token and botName to your bot`s API token and username .
- Add @usernames of your admins to 'admins' list (you can remove default values from there now)
- Start the server
- Now you can add this bot to the chat with other admins, or, if you dont want to, you can just send commands to it directly.
Example usage:
Spoiler
/exec versionYou can also execute multiple commands via one request by separating the commands with line breaks. It will still wait delay after sending each one of the list you provide.
/exec version
deop Azim
op KhooOptional, but very recommended part:
- After setup, go to dialog with BotFather and type /setjoingroups , choose your bot and set it to Disable
- In dialog with BotFather type /setuserpic to set your bot's avatar
- Do not use 'debug' if you do not need to.
- Do not make 'delay' value less than 4000
- If telegram is blocked in your country, there is a proxy section in config now:
Spoiler
proxy: enabled: false - if you want to use proxy, set this to true type: HTTP - pxory type, can be HTTP, SOCKS4, SOCKS5 adress: 0.0.0.0 - proxy adress port: 8080 - proxy port needAuth: false - if proxy is protected by username and password, set to true username: username - proxy username password: password - proxy password
Known Issues
- Users from Russia may need to use proxy (nothing i can do about it)
- Delay less than 1000 may result in incomplete output message
- on latest Java versions you may(or may not) need to add --illegal-access=permit to your launch options for plugin to work correctly (it's needed for library loading, and i dont know how to awoid it yet)
If something doesn't work - contact me and provide error logs with your bugreport, i will try to help you asap.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
26.2MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
15.6MSueta
Emotecraft
Create your own emotes in Minecraft.
7.9MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
4.7MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta