All Projects → kraftwerk28 → spigot-tg-bridge

kraftwerk28 / spigot-tg-bridge

Licence: GPL-3.0 license
Connect Telegram chats and Minecraft servers seamlessly

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to spigot-tg-bridge

UltiTools
This is a sum of some basic plugins of a Bukkit server or Spigot server. Including a few useful and creative functions.
Stars: ✭ 17 (-37.04%)
Mutual labels:  spigot, spigot-plugin, spigot-api, minecraft-plugin
EliteMobs
This is a spigot plugin that aims to extend Minecraft's survival endgame by making mobs more interesting.
Stars: ✭ 114 (+322.22%)
Mutual labels:  spigot, spigot-plugin, spigot-api, minecraft-plugin
CommandWhitelist
You decide what commands players can use or tab complete on your server!
Stars: ✭ 115 (+325.93%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
McRPG
An RPG plugin for Minecraft 1.13
Stars: ✭ 32 (+18.52%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
Maintenance
Enable maintenance mode on your Minecraft server
Stars: ✭ 122 (+351.85%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
Bukkit Coding Tutorial
This is the repository for my Bukkit Coding series
Stars: ✭ 44 (+62.96%)
Mutual labels:  spigot, spigot-plugin, spigot-api
oraxen
Oraxen is a minecraft plugin that allows to easily use Minecraft 1.14 features in order to create new items with custom textures. It handles the resourcepack generation, upload (using Polymath) and has an extensible API.
Stars: ✭ 358 (+1225.93%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
ClayTech
An addon for slimefun.
Stars: ✭ 15 (-44.44%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
HeadsPlus
A heads plugin that has grown for over two years into something more ambitious than other plugins.
Stars: ✭ 35 (+29.63%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
NotQuests
Flexible, open & solid paper Quest Plugin [with GUI]
Stars: ✭ 32 (+18.52%)
Mutual labels:  spigot, spigot-plugin, spigot-api
Boss
Premium custom monsters plugin with skill system, natural spawning and lots of sickest features!
Stars: ✭ 72 (+166.67%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
MinecraftManhunt
Minecraft Bukkit plugin to run Manhunt minigames, with Discord music integration
Stars: ✭ 20 (-25.93%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
MinetopiaVehicles
A realistic vehicle plugin for your Minecraft server!
Stars: ✭ 52 (+92.59%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
NativeScreen
Spigot plugin that displays your desktop content and videos using Minecraft's maps.
Stars: ✭ 31 (+14.81%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
advanced-region-market
A Bukkit/Spigot plugin for renting/selling WorldGuard regions
Stars: ✭ 40 (+48.15%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
pyplugins
Python Plugins loader plugin for Minecraft Spigot (Jython)
Stars: ✭ 25 (-7.41%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
HamsterAPI
Simple and easy to use API to read and write Packets.
Stars: ✭ 25 (-7.41%)
Mutual labels:  spigot, spigot-api, minecraft-plugin
grakkit
A modern JavaScript development environment for Minecraft.
Stars: ✭ 184 (+581.48%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
MarriageMaster
Marriage Plugin for Bukkit/Spigot
Stars: ✭ 79 (+192.59%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin
AntiCheatReloaded
The free anti-cheat since 2016
Stars: ✭ 94 (+248.15%)
Mutual labels:  spigot, spigot-plugin, minecraft-plugin

Spigot <-> Telegram bridge plugin

This plugin will send chat messages from Minecraft to Telegram, and from Telegram to Minecraft.

How to use:

  1. Download .jar file from releases page, and put it in plugins/ directory on your server OR clone this repo and run gradle inside repo's directory.

  2. If you already have telegram bot, skip this step. Otherwise create it through BotFather. You'll go through step-by-step instructions, give a bot username and most importantly, obtain a bot token. Save this token for future use. Note: in order to make your bot hear raw text messages (not commands), you must disable privacy mode option which is on by default. Go through bot's settings: Bot Settings -> Group Privacy and click Turn Off.

  3. Next, you need to tell plugin about your new bot. You can either:

    • Run Spigot server, plugin will log "No config file found! Saving default one.". After that, stop server and proceed to 4th step.
    • Copy config.yml to plugins/SpigotTGBridge/ in your server directory.
  4. A config.yml is just a valid YAML file, alternative for JSON, but more human-readable. Now, take bot's token which you got in 2nd step and paste them into config.yml, so it looks like this:

    botToken: abcdefghijklmnopq123123123
    # other configuration values...
  5. Run spigot server.

  6. Add you bot to chats, where you plan to use it. In each of them, run /chat_id command. The bot should respond and give special value - chat id. Now, open config.yml and paste this ID under chats section, so it will look like this:

    botToken: abcdefghijklmnopq123123123
    chats: [
      -123456789,
      987654321,
      # other chat id's...
    ]
  7. You can extend config.yml with more tweaks, which are described in the table below, but it's not nesessary, plugin will use default values instead, if they're missing. Also, check out the example.

  8. Re-run server or type tgbridge_reload into server's console.

Plugin configuration:

Field Description Type Required Default
enable If plugin should be enabled boolean true
botToken Telegram bot token (How to create bot) string ✔️ -
chats Chats, where bot will work (to prevent using bot by unknown chats) number[] or string[] ✔️ []
serverStartMessage What will be sent to chats when server starts string 'Server started.'
serverStopMessage What will be sent to chats when server stops string 'Server stopped.'
logJoinLeave If true, plugin will send corresponding messages to chats, when player joins or leaves server boolean true
logFromMCtoTG If true, plugin will send messages from players on server, to Telegram chats boolean true
logFromTGtoMC If true, plugin will send messages from chats, to Minecraft server boolean true
logPlayerDeath If true, plugin will send message to Telegram if player died boolean false
logPlayerAsleep If true, plugin will send message to Telegram if player fell asleep boolean false
strings Dictionary of tokens - strings for plugin i18n Map<string, string> See default config
commands Dictionary of command text used in Telegram bot Map<string, string> ✔️ See below
telegramMessageFormat Format string for TGtoMC chat message string See default config
minecraftMessageFormat Format string for MCtoTG chat message string See default config
silentMessages Disable notification in Telegram chats boolean false
apiOrigin Use different API endpoint for the bot string https://api.telegram.org
disableConfigWatch Do not watch the config for changes string false

Telegram bot commands:

Commands are customizeable through config. If command doesn't exist in config, it will be disabled

Command Description
/online Get players, currently online
/time Get time on server
/chat_id Get current chat ID (in which command was run) for config.yml

Format string:

+--------+ >--minecraftMessageFormat(message)-> +--------------+
| Spigot |                                      | Telegram bot |
+--------+ <--telegramMessageFormat(message)--< +--------------+

Applies to telegramMessageFormat and minecraftMessageFormat configurations. Must contain %username% and %message% inside. You can customize message color with it (coloring works only for telegramMessageFormat). You can customize bold/italics/stirethrough formatting (works only for minecraftMessageFormat). See Minecraft message color codes and Telegram message formatting for more information. This feature is related to this issue

Plugin commands:

Command Description
tgbridge_reload Reload plugin configuration w/o need to stop the server. Works only through server console
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].