This commit is contained in:
2024-01-15 16:34:55 +03:00
parent b5a982923a
commit 8a03911814
5 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
try:
import Bot
import logger
except ImportError:
Bot = object
class Plugin(Bot):
ac_dir = "./perms"
def __init__(self):
super(Plugin, self).__init__()
logger.info(f"Инициализация {self.name} v{self.version}")
async def load(self):
pass
async def unload(self):
pass

View File

@@ -0,0 +1,16 @@
LuckPerms:
# Разрешенные варианты: MySQL, MariaDB, PostgreSQL
storage-method: PostgreSQL
data:
# Указывайте host:port
address: 127.0.0.1:5432
# База данных в которой хранятся настройки LuckPerms
database: minecraftDB
# Логин и пароль для доступа к БД
username: user
password: user
# Смотрите настройку LuckPerms
table-prefix: luckperms_
server: global

View File

@@ -0,0 +1,61 @@
# /cmd cmd: perm - Можно только <perm>
# /cmd cmd: noOne - Команду нельзя использовать из под бота
enabled: false
pluginName: AuthMeReloaded 5.6.0-beta2
data:
/authme register: authme.admin.register
/authme unregister: authme.admin.unregister
/authme forcelogin: authme.admin.forcelogin
/authme password: authme.admin.changepassword
/authme lastlogin: authme.admin.lastlogin
/authme accounts: authme.admin.accounts
/authme email: authme.admin.getemail
/authme setemail: authme.admin.changemail
/authme getip: authme.admin.getip
/authme totp: authme.admin.totpviewstatus
/authme disabletotp: authme.admin.totpdisable
/authme spawn: authme.admin.spawn
/authme setspawn: authme.admin.setspawn
/authme firstspawn: authme.admin.firstspawn
/authme setfirstspawn: authme.admin.setfirstspawn
/authme purge: authme.admin.purge
/authme purgeplayer: authme.admin.purgeplayer
/authme backup: authme.admin.backup
/authme resetpos: authme.admin.purgelastpos
/authme purgebannedplayers: authme.admin.purgebannedplayers
/authme switchantibot: authme.admin.switchantibot
/authme reload: authme.admin.reload
/authme version: authme.admin # Вставил так как стандартно есть у всех
/authme converter: authme.admin.converter
/authme messages: authme.admin.updatemessages
/authme recent: authme.admin.seerecent
/authme debug: authme.debug.command
/authme help: noOne
/email: noOne
/email show: noOne
/email add: noOne
/email change: noOne
/email recover: noOne
/email code: noOne
/email setpassword: noOne
/email help: noOne
/login: noOne
/login help: noOne
/logout: noOne
/logout help: noOne
/register: noOne
/register help: noOne
/unregister: noOne
/unregister help: noOne
/changepassword: noOne
/changepassword help: noOne
/totp: noOne
/totp code: noOne
/totp add: noOne
/totp confirm: noOne
/totp remove: noOne
/totp help: noOne
/captcha: noOne
/captcha help: noOne
/verification: noOne
/verification help: noOne

View File

@@ -0,0 +1,5 @@
enabled: false
version: 0.1
name: LuckPerms Integration
dependencies:
- bot >1.3 # Это сам бот

4
src/plugins/readme.md Normal file
View File

@@ -0,0 +1,4 @@
# Поддержка плагинов
Пока ещё в работе