AuthTG icon

AuthTG -----

Плагин для привязки майнкрафт аккаунта к телеграмму (Bukkit/Spigot)



1.Установка
Скопируйте в папку plugins

Перезапустите сервер

В папке Minetelegram отредактируйте файл config.yml замените changeme на токен и юзернейм бота (без @)

И перезапустите сервер

Бот готов к использованию!

2.Команды в майнкрафт
/register <пароль> <повтор пароля> - Регистрация на сервере - Permission не требуется
/login <пароль> - Авторизация на сервере (Если включена двухфакторная авторизация,то в телеграмм придет потверждение входа) - Permission не требуется
/code <код из телеграмма> - Для привязки/Отвязки телеграмм аккаунта - Permission не требуется
/changepassword <старый пароль> <новый пароль> <потверждение нового пароля> - Изменяет старый пароль на новый - Permission не требуется
/setpassword <пароль> <повтор пароля> <Игрок> - Изменяет игроку пароль (На случай если игрок забыл пароль) -
Permission: minetelegram.setpassword
/tgbc <сообщение> - Отправить всем привязанным пользователем сообщение (Для объявлений) - Permission: minetelegram.tgbc
/setspawn - Установка спавн игрока при заходе на сервер - Permission: minetelegram.setspawn - (можно передать параметр none,тогда игрок будет при заходе на сервер телепортироваться на место,где он вышел)

ЧТО БЫ ДОБАВЛЯТЬ\УДАЛЯТЬ ИЗ ДРУЗЕЙ НУЖЕН ПРИВЯЗАННЫЙ АККАУНТ К ТЕЛЕГРАММУ
/addfriend <Ник> -Добавить игрока в друзья - Permission не требуется
/removefriend <Ник> - Удалить игрока из друзей - Permission не требуется
/tellfriends <Ник> - Отправить сообщение другу в телеграмм ) - Permission не требуется

/listfriends -Показывает список друзей - Permission не требуется

3.Команды в Телеграмме
(Вы можете добавить их в список команд через BotFather)

/link - Привязать еще один аккаунт к телеграмму
/unlink - Отвязать аккаунт телеграмма
/accounts - Посмотреть список своих привязанных аккаунтов и выбрать аккаунт которым будете управлять
/tfon - Включить двухэтапную аунтификацию
/tfoff - Выключить двухэтапную аунтификацию
/kickme - Кикнуть свой аккаунт из телеграмма
/resetpassword - Поменять пароль (На случай если Вы забыли пароль)
/friends - Список друзей (Если нажать на друга ,то откроется меню управления другом:
1. Удалить друга
2. Отправить сообщение в телеграмм
3. Если игрок онлайн в майнкрафте, то появится действие: Отправить другу сообщение в майнкрафт)

Если в бота отправить сообщение,то это сообщение отправится в общий чат в боте

Если перед сообщением поставить # то оно отправиться в игровой чат, при этом если выбранный игрок в Онлайне ,то сообщение отправится от его имени ,но если игрок не в Онлайне то будет отправлено сообщение вида: [MT] Сообщение от игрока <Имя игрока> из оффлайна: <ваше сообщение>

4.Пример работы плагина
При входе игрока в игру его замораживает и блокирует чат,если он не зарегистрирован то он должен зарегистрироваться командой /register ,а если зарегистрирован то он должен авторизоваться командой /login.Так же зарегистрированный игрок может привязать телеграмм аккаунт в таком случаи разморозка происходит после потверждения входа из телеграмм



P.s Мой ютуб: https://youtube.com/@Ezhik_11

Действующий мой сервер с этим плагином: 135.181.237.49:25817 заходите и играйте!




1.Installation
Copy it to the plugins folder

Restart the server

In the Minetelegram folder, edit the config.yml file and replace changeme with a token and a bot username (without @)

And restart the server

The bot is ready to use!

2.Commands in minecraft
/register <password> <repeat password> - Registration on the server - Permission is not required
/login <password> - Authorization on the server (If two-factor authorization is enabled, then login confirmation will come in telegram) - Permission is not required
/code <code from telegram> - For binding/Account telegram unlinking - Permission is not required
/changepassword <old password> <new password> <new password confirmation> - Changes the old password to a new one - Permission is not required
/setpassword <password> <repeat password> <Player> - Changes the player's password (In case the player forgot the password) - Permission: minetelegram.setpassword
/tgbc <message> - Send a message to all linked users (For ads) - Permission: minetelegram.tgbc
TO ADD/REMOVE AND
FROM FRIENDS, YOU NEED AN ACCOUNT LINKED TO A TELEGRAM
/addfriend <Nickname> -Add a player to friends - Permission is not required
/removefriend <Nickname> - Remove a player from friends - Permission is not required
/tellfriends <Nickname> - Send a message to a friend in telegram) - Permission is not required
/listfriends -Shows a list of friends - Permission is not required

3. Commands in the Telegram
(You can add them to the list of commands via BotFather)
/link - Link another account to telegram
/unlink - Unlink telegram account
/accounts - View the list of your linked accounts and select the account you will manage
/tfon - Enable two-stage authentication
/tfoff - Disable two-stage authentication
/kickme - Kick your account from telegram
/resetpassword - Change the password (In case you forgot the password)
/friends - Friends list (If you click on a friend, the friend management menu opens:
1. Delete a friend
2. Send a message in telegram
3. If the player is online in minecraft, then the action will appear
Send a message to a friend in minecraft)

If you send a message to the bot, then this message will be sent to the general chat in the bot

If you put a # before the message, then it will go to the game chat, while if the selected player is Online, then the message will be sent on his behalf, but if the player is not online, then a message of the form will be sent: [MT] Message from the player <Player name> from offline: <your message>
4. An example of how the plugin works
When a player enters the game, he freezes and blocks the chat, if he is not registered, then he must register with the /register command, and if he is registered, then he must log in with the / login command.Also, a registered player can link a telegram account in such cases, defrosting occurs after confirming the entry from the telegram


P.s My YouTube: https://youtube.com/@Ezhik_11

My current server with this plugin is: 135.181.237.49:25817 come and play!
Resource Information
Author:
----------
Total Downloads: 763
First Release: Aug 1, 2024
Last Update: Jan 4, 2025
Category: ---------------
All-Time Rating:
15 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings