feat: add more feature

This commit is contained in:
Tsubasa6848
2024-01-05 22:13:21 +08:00
Unverified
parent 57f70fac0c
commit 87a671899a
6 changed files with 103 additions and 28 deletions
+4 -2
View File
@@ -9,7 +9,9 @@ Plugin::Plugin(ll::plugin::NativePlugin& self) : mSelf(self) {
}
bool Plugin::enable() {
//TPS::CaculateTPS();
RegisterCommands();
item_despawn_time = 300;
Cleaner::AutoCleanTask(60);
Cleaner::CheckCleanTask(20, 15);
logger.info("Cleaner Loaded!");
@@ -21,8 +23,8 @@ bool Plugin::enable() {
bool Plugin::disable() {
logger.info("Disabling Cleaner...");
// Code for disabling the plugin goes here.
auto_clean_task->cancel();
check_clean_task->cancel();
//auto_clean_task->cancel();
//check_clean_task->cancel();
UnregisterCommands();
logger.info("Cleaner Disabled!");
return true;