Skip to content

Commit

Permalink
yeets unnecessary configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Aug 17, 2021
1 parent 50c69db commit 3feccb4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion mcdreforged.plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "permanent_backup",
"version": "1.0.2",
"version": "1.0.3",
"name": "Permanent Backup",
"description": {
"en_us": "A plugin for creating permanent zip world backups",
Expand Down
12 changes: 0 additions & 12 deletions permanent_backup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@
from mcdreforged.api.all import *


class SlotInfo(Serializable):
delete_protection: int = 0


class Configure(Serializable):
size_display: bool = True
turn_off_auto_save: bool = True
ignore_session_lock: bool = True
backup_path: str = './perma_backup'
Expand All @@ -28,13 +23,6 @@ class Configure(Serializable):
'list': 0,
'listall': 2
}
slots: List[SlotInfo] = [
SlotInfo(delete_protection=0), # 无保护
SlotInfo(delete_protection=0), # 无保护
SlotInfo(delete_protection=0), # 无保护
SlotInfo(delete_protection=3 * 60 * 60), # 三小时
SlotInfo(delete_protection=3 * 24 * 60 * 60), # 三天
]


config: Configure
Expand Down

0 comments on commit 3feccb4

Please # to comment.