From 3feccb4013b7ea06260596de460d16d0a7ba43f8 Mon Sep 17 00:00:00 2001 From: Fallen_Breath Date: Tue, 17 Aug 2021 13:49:47 +0800 Subject: [PATCH] yeets unnecessary configs --- mcdreforged.plugin.json | 2 +- permanent_backup/__init__.py | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/mcdreforged.plugin.json b/mcdreforged.plugin.json index bb7a840..70321de 100644 --- a/mcdreforged.plugin.json +++ b/mcdreforged.plugin.json @@ -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", diff --git a/permanent_backup/__init__.py b/permanent_backup/__init__.py index 6997ff7..52a7371 100644 --- a/permanent_backup/__init__.py +++ b/permanent_backup/__init__.py @@ -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' @@ -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