diff --git a/src/plugins/LuckPerms/LuckPerms.py b/src/plugins/LuckPerms/LuckPerms.py new file mode 100644 index 0000000..12183e5 --- /dev/null +++ b/src/plugins/LuckPerms/LuckPerms.py @@ -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 diff --git a/src/plugins/LuckPerms/config.yml b/src/plugins/LuckPerms/config.yml new file mode 100644 index 0000000..f301d65 --- /dev/null +++ b/src/plugins/LuckPerms/config.yml @@ -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 diff --git a/src/plugins/LuckPerms/perms/authme.yml b/src/plugins/LuckPerms/perms/authme.yml new file mode 100644 index 0000000..dbeb32f --- /dev/null +++ b/src/plugins/LuckPerms/perms/authme.yml @@ -0,0 +1,61 @@ +# /cmd cmd: 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 diff --git a/src/plugins/LuckPerms/plugin.yml b/src/plugins/LuckPerms/plugin.yml new file mode 100644 index 0000000..9e28025 --- /dev/null +++ b/src/plugins/LuckPerms/plugin.yml @@ -0,0 +1,5 @@ +enabled: false +version: 0.1 +name: LuckPerms Integration +dependencies: + - bot >1.3 # Это сам бот diff --git a/src/plugins/readme.md b/src/plugins/readme.md new file mode 100644 index 0000000..33320d7 --- /dev/null +++ b/src/plugins/readme.md @@ -0,0 +1,4 @@ +# Поддержка плагинов + +Пока ещё в работе +