diff --git a/lang/en_us.yml b/lang/en_us.yml index f16b556..7150b58 100644 --- a/lang/en_us.yml +++ b/lang/en_us.yml @@ -1,4 +1,4 @@ -mcd_seen.help_msg: +mcd_seen.help_msg: | ------ MCDR {3} v{4} ------ A plugin to query players online and offline time. §d【Command Help】§r diff --git a/mcd_seen/__init__.py b/mcd_seen/__init__.py index bbbced3..6ae536c 100644 --- a/mcd_seen/__init__.py +++ b/mcd_seen/__init__.py @@ -3,7 +3,7 @@ from mcdreforged.api.decorator import new_thread from mcd_seen.constants import SEEN_PREFIX, META -from mcd_seen.utils import verify_player_name, bot_name, tr, is_bot, logger +from mcd_seen.utils import verify_player_name, bot_name, tr, logger from mcd_seen.storage import storage, bot_list from mcd_seen.config import config from mcd_seen.interface import register_command @@ -29,7 +29,7 @@ def on_server_stop(*args, **kwargs): storage.correct([]) -@new_thread(META.id + '_PluginLoad') +@new_thread(META.name + '_PluginLoad') def warn_first_load(): logger.warning('Load Seen plugin when server is empty is suggested to make sure all the datas are right') @@ -45,4 +45,5 @@ def on_load(server: PluginServerInterface, prev_module): except AttributeError: logger.info('Seems upgraded from a old version, welcome!') else: - warn_first_load() + if server.is_server_running(): + warn_first_load() diff --git a/mcdreforged.plugin.json b/mcdreforged.plugin.json index 8df4098..b804b50 100644 --- a/mcdreforged.plugin.json +++ b/mcdreforged.plugin.json @@ -1,6 +1,6 @@ { "id": "mcd_seen", - "version": "1.1.0-pre.1", + "version": "1.1.1", "name": "Seen", "description": "Show laziness rank easily", "author": [