Skip to content

Commit

Permalink
1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ra1ny-Yuki committed Aug 27, 2021
1 parent 9591a8c commit 0aff79d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lang/en_us.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 4 additions & 3 deletions mcd_seen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')

Expand All @@ -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()
2 changes: 1 addition & 1 deletion mcdreforged.plugin.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit 0aff79d

Please sign in to comment.