diff --git a/plugins/utilities/glowing_profiles.py b/plugins/utilities/glowing_profiles.py index 3668363..799e7c8 100644 --- a/plugins/utilities/glowing_profiles.py +++ b/plugins/utilities/glowing_profiles.py @@ -11,7 +11,7 @@ import enum if TYPE_CHECKING: from typing import Type, Callable, Any, Tuple - + plugman = dict( plugin_name="glowing_profiles", description="This plugin gives your profile glowlight, just like on some servers, but only offline", @@ -22,6 +22,7 @@ plugman = dict( version="1.0.0", ) + def redefine_method(dst: Tuple[Any, str], src: Tuple[Any, str]) -> None: if hasattr(getattr(*src), '__redefine_type') and getattr(*src).__redefine_type in ( RedefineFlag.DECORATE_PRE, RedefineFlag.DECORATE_AFTER, RedefineFlag.DECORATE_ADVANCED): @@ -81,6 +82,7 @@ def redefine_class_methods(orig_cls: Type[object]) -> Callable[[Any], None]: return decorator + class RedefineFlag(enum.Enum): REDEFINE = 0 DECORATE_AFTER = 1 @@ -99,6 +101,7 @@ def redefine_flag(*flags: RedefineFlag) -> Callable[[Callable], Callable]: return decorator + def get_locale(*args): return "Error" @@ -213,5 +216,7 @@ class Chooser: self._update_text() # ba_meta export babase.Plugin + + class Glowing(babase.Plugin): - pass + pass