mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-04-20 15:20:31 +00:00
BEAMP -> BeamMP
This commit is contained in:
@@ -8,7 +8,7 @@ class KuiToi:
|
||||
|
||||
def __init__(self, name=None):
|
||||
if name is None:
|
||||
raise Exception("BEAMP: Name is required")
|
||||
raise Exception("BeamMP: Name is required")
|
||||
self.log = get_logger(f"PluginsLoader | {name}")
|
||||
self.name = name
|
||||
|
||||
@@ -43,7 +43,7 @@ class PluginsLoader:
|
||||
plugin.print = print
|
||||
file = os.path.join(self.__plugins_dir, file)
|
||||
with open(f'{file}', 'r') as f:
|
||||
code = f.read().replace("import BEAMP\n", "")
|
||||
code = f.read().replace("import KuiToi\n", "")
|
||||
exec(code, plugin.__dict__)
|
||||
plugin.load()
|
||||
self.__plugins.update({file[:-3]: plugin})
|
||||
|
||||
Reference in New Issue
Block a user