Skip to content

Commit

Permalink
Merge pull request #1 from CMBill/main
Browse files Browse the repository at this point in the history
fix __init__.py
  • Loading branch information
alex3236 authored Aug 28, 2021
2 parents fa9e0de + cf9fcbc commit 6200dc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
11 changes: 1 addition & 10 deletions src/daycount_nbt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,11 @@
from traceback import print_exc
from math import floor

PLUGIN_METADATA = {
'id': 'daycount_nbt',
'version': '1.2.1',
'name': 'DayCount-NBT',
'description': '通过读取 NBT 文件,获取服务器总运行时间。',
'author': 'Alex3236',
'link': 'https://github.com/eagle3236'
}

class Configure(Serializable):
nbt_mode: bool = True
nbt_file: str = 'server/world/level.dat'
start_date: str = '2021-01-01'
dat_text: str = '这是服务器开服的第 $day 天'
day_text: str = '这是服务器开服的第 $day 天'

config: Configure

Expand Down
4 changes: 2 additions & 2 deletions src/mcdreforged.plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "daycount_nbt",
"version": "2.0.0",
"version": "2.0.1",
"name": "DayCount NBT",
"description": {
"en_us": "Get and export server opening times.",
Expand All @@ -11,4 +11,4 @@
},
"author": "Alex3236",
"link": "https://github.com/eagle3236/joinMOTD_Plus"
}
}

0 comments on commit 6200dc1

Please sign in to comment.