测试版

This commit is contained in:
tianyu 2024-08-23 01:54:29 +08:00
parent e0ccdfc871
commit 916d4fd0c6
2 changed files with 18 additions and 17 deletions

View File

@ -48,6 +48,7 @@ public class BossManage {
public boolean isBossSurvive() {
return bossSurvive;
}
public void setBossSurvive(boolean butt) {
bossSurvive = butt;
}
@ -57,13 +58,17 @@ public class BossManage {
}
public boolean isCustomNameContains(String customName) {
// 检查 customName 是否为 null
if (customName == null) {
return false;
}
// 遍历 customNameList 检查是否有任何名称包含 customName
for (String name : this.customNameList) {
if(customName.contains(name)){
// 检查 name 是否为 null
if (name != null && customName.contains(name)) {
return true;
}
}
return false;
}
}

View File

@ -1,14 +1,10 @@
package com.io.yaohun.worldbosshurt.mangage;
import com.io.yaohun.worldbosshurt.data.BossData;
import com.io.yaohun.worldbosshurt.data.RewardData;
import com.sun.xml.internal.txw2.output.StreamSerializer;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.FileConfiguration;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class RewardManage {