领地系统大重构:全局配置+数据入库+新权限+传送点+安全删除+容器扩展

- 全局配置改为area_config表(替代txt文件)
- area_lands扩展到61列,新增10个权限布尔+5个传送点坐标
- 新增投掷物/发光/红石/门禁/音频/拴绳/农作物/剪毛/投喂等权限
- /protect settp/tp传送点系统
- 删除1分钟延迟+二次确认
- 安全传送判定(空气+实体+边界3格)
- 容器权限覆盖所有UI类型
- .gitignore清理敏感文件
@
This commit is contained in:
ypsdf1
2026-06-23 16:51:30 +08:00
parent b50bfd4379
commit 98f9cb6410
16 changed files with 709 additions and 1651 deletions
+3 -2
View File
@@ -37,11 +37,12 @@ function getDB() {
}
$db = new SQLite3(DB_PATH);
$db->enableExceptions(true);
// 减少 PRAGMA 调用,避免可能的锁问题
// WAL模式 + 长等待超时防止database is locked
$db->exec('PRAGMA journal_mode=WAL');
$db->exec('PRAGMA busy_timeout=15000'); // 数据库锁等待15秒
$db->exec('PRAGMA busy_timeout=30000'); // 30秒等待
$db->exec('PRAGMA synchronous=NORMAL');
$db->exec('PRAGMA cache_size=-64000'); // 64MB 缓存
$db->exec('PRAGMA wal_autocheckpoint=1000');
initTables($db);
migrateDatabase($db); // 迁移旧数据库
}