fix: 清理旧版资源包代码+CLI/GUI补全用户组和公共设施入口
1. UserGroupManager: 移除旧版txt文件加载/解析、过期检查、displayEmoji/permanent/durationMinutes 2. CLI主菜单: 新增公共设施列表/传送入口、管理员用户组管理入口 3. GUI主菜单: 新增公共设施传送按钮(slot41) 4. CLI权限列表: 新增公共建筑设施切换项 5. GUI权限列表: 新增公共建筑设施切换项 6. WebManager同步: 移除displayEmoji字段
This commit is contained in:
@@ -111,10 +111,16 @@ public class AreaCLIManager {
|
|||||||
p.sendMessage(clickableAction("ℹ", "当前领地信息",
|
p.sendMessage(clickableAction("ℹ", "当前领地信息",
|
||||||
"/protect info"));
|
"/protect info"));
|
||||||
|
|
||||||
|
// ★ 公共建筑传送
|
||||||
|
p.sendMessage(clickableAction("🏛", "公共设施列表/传送",
|
||||||
|
"/protect listpublic"));
|
||||||
|
|
||||||
// ★ 管理员配置入口
|
// ★ 管理员配置入口
|
||||||
if (areaProtect.isAreaAdmin(p)) {
|
if (areaProtect.isAreaAdmin(p)) {
|
||||||
p.sendMessage(clickableAction("⚙", "全局配置",
|
p.sendMessage(clickableAction("⚙", "全局配置",
|
||||||
"/protect cli config"));
|
"/protect cli config"));
|
||||||
|
p.sendMessage(clickableAction("👥", "用户组管理",
|
||||||
|
"/protect grouplist"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 设置
|
// 设置
|
||||||
@@ -545,6 +551,7 @@ public class AreaCLIManager {
|
|||||||
case "mob_attack": oldState = land.denyMobAttack; land.denyMobAttack = !land.denyMobAttack; break;
|
case "mob_attack": oldState = land.denyMobAttack; land.denyMobAttack = !land.denyMobAttack; break;
|
||||||
case "glowing": oldState = land.denyGlowing; land.denyGlowing = !land.denyGlowing; break;
|
case "glowing": oldState = land.denyGlowing; land.denyGlowing = !land.denyGlowing; break;
|
||||||
case "peace_mode": oldState = land.peaceMode; land.peaceMode = !land.peaceMode; break;
|
case "peace_mode": oldState = land.peaceMode; land.peaceMode = !land.peaceMode; break;
|
||||||
|
case "public_building": oldState = land.isPublicBuilding; land.isPublicBuilding = !land.isPublicBuilding; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
areaProtect.saveAreaToDb(land);
|
areaProtect.saveAreaToDb(land);
|
||||||
@@ -600,6 +607,7 @@ public class AreaCLIManager {
|
|||||||
case "mob_attack": return "denyMobAttack";
|
case "mob_attack": return "denyMobAttack";
|
||||||
case "glowing": return "denyGlowing";
|
case "glowing": return "denyGlowing";
|
||||||
case "peace_mode": return "peaceMode";
|
case "peace_mode": return "peaceMode";
|
||||||
|
case "public_building": return "isPublicBuilding";
|
||||||
default: return shortKey;
|
default: return shortKey;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -655,6 +663,7 @@ public class AreaCLIManager {
|
|||||||
perms.add(new PermItem("mob_attack", land.denyMobAttack ? "禁止攻击生物" : "允许攻击生物", !land.denyMobAttack));
|
perms.add(new PermItem("mob_attack", land.denyMobAttack ? "禁止攻击生物" : "允许攻击生物", !land.denyMobAttack));
|
||||||
perms.add(new PermItem("glowing", "玩家发光", !land.denyGlowing));
|
perms.add(new PermItem("glowing", "玩家发光", !land.denyGlowing));
|
||||||
perms.add(new PermItem("peace_mode", "和平模式", land.peaceMode));
|
perms.add(new PermItem("peace_mode", "和平模式", land.peaceMode));
|
||||||
|
perms.add(new PermItem("public_building", "公共建筑设施", land.isPublicBuilding));
|
||||||
return perms;
|
return perms;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -691,6 +700,7 @@ public class AreaCLIManager {
|
|||||||
case "mob_attack": return "攻击生物";
|
case "mob_attack": return "攻击生物";
|
||||||
case "glowing": return "玩家发光";
|
case "glowing": return "玩家发光";
|
||||||
case "peace_mode": return "和平模式";
|
case "peace_mode": return "和平模式";
|
||||||
|
case "public_building": return "公共建筑设施";
|
||||||
default: return key;
|
default: return key;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,6 +101,13 @@ public class AreaGUIManager implements Listener {
|
|||||||
"",
|
"",
|
||||||
"§e点击查看"));
|
"§e点击查看"));
|
||||||
|
|
||||||
|
// ★ 公共设施传送(位置41)
|
||||||
|
inv.setItem(41, createItem(Material.BELL, "§b§l公共设施传送",
|
||||||
|
"§7查看公共建筑列表",
|
||||||
|
"§7点击传送到公共设施",
|
||||||
|
"",
|
||||||
|
"§e点击查看"));
|
||||||
|
|
||||||
// ★ 管理员面板:只有tag管理员可见(位置4)
|
// ★ 管理员面板:只有tag管理员可见(位置4)
|
||||||
if (areaProtect.isAreaAdmin(p)) {
|
if (areaProtect.isAreaAdmin(p)) {
|
||||||
inv.setItem(4, createItem(Material.NETHER_STAR, "§c§l管理员面板",
|
inv.setItem(4, createItem(Material.NETHER_STAR, "§c§l管理员面板",
|
||||||
@@ -638,6 +645,7 @@ public class AreaGUIManager implements Listener {
|
|||||||
perms.add(new PermEntry(land.denyMobAttack ? "禁止攻击生物" : "允许攻击生物", !land.denyMobAttack));
|
perms.add(new PermEntry(land.denyMobAttack ? "禁止攻击生物" : "允许攻击生物", !land.denyMobAttack));
|
||||||
perms.add(new PermEntry("玩家发光", !land.denyGlowing));
|
perms.add(new PermEntry("玩家发光", !land.denyGlowing));
|
||||||
perms.add(new PermEntry("和平模式", land.peaceMode));
|
perms.add(new PermEntry("和平模式", land.peaceMode));
|
||||||
|
perms.add(new PermEntry("公共建筑设施", land.isPublicBuilding));
|
||||||
return perms;
|
return perms;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -695,6 +703,7 @@ public class AreaGUIManager implements Listener {
|
|||||||
case "禁止攻击生物": case "允许攻击生物": land.denyMobAttack = !land.denyMobAttack; break;
|
case "禁止攻击生物": case "允许攻击生物": land.denyMobAttack = !land.denyMobAttack; break;
|
||||||
case "玩家发光": land.denyGlowing = !land.denyGlowing; break;
|
case "玩家发光": land.denyGlowing = !land.denyGlowing; break;
|
||||||
case "和平模式": land.peaceMode = !land.peaceMode; break;
|
case "和平模式": land.peaceMode = !land.peaceMode; break;
|
||||||
|
case "公共建筑设施": land.isPublicBuilding = !land.isPublicBuilding; break;
|
||||||
}
|
}
|
||||||
areaProtect.saveAreaToDb(land);
|
areaProtect.saveAreaToDb(land);
|
||||||
}
|
}
|
||||||
@@ -788,6 +797,10 @@ public class AreaGUIManager implements Listener {
|
|||||||
} else {
|
} else {
|
||||||
p.sendMessage("§cCLI管理器未初始化");
|
p.sendMessage("§cCLI管理器未初始化");
|
||||||
}
|
}
|
||||||
|
} else if (raw == 41) {
|
||||||
|
// ★ 公共设施传送
|
||||||
|
p.closeInventory();
|
||||||
|
p.performCommand("protect listpublic");
|
||||||
} else if (raw == 49) {
|
} else if (raw == 49) {
|
||||||
plugin.getGui().openMain(p);
|
plugin.getGui().openMain(p);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5980,7 +5980,7 @@ public class AreaProtection implements Listener {
|
|||||||
sender.sendMessage("§c未找到用户组: " + groupName);
|
sender.sendMessage("§c未找到用户组: " + groupName);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (ugm.addPlayer(playerName, groupName, sender.getName(), 0)) {
|
if (ugm.addPlayer(playerName, groupName, sender.getName())) {
|
||||||
UserGroupManager.UserGroupConfig cfg = ugm.getGroupConfig(groupName);
|
UserGroupManager.UserGroupConfig cfg = ugm.getGroupConfig(groupName);
|
||||||
sender.sendMessage("§a已将 §f" + playerName + " §a加入用户组: §f" + (cfg != null ? cfg.displayName : groupName));
|
sender.sendMessage("§a已将 §f" + playerName + " §a加入用户组: §f" + (cfg != null ? cfg.displayName : groupName));
|
||||||
// 通知在线玩家
|
// 通知在线玩家
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
package Sdf1_login;
|
package Sdf1_login;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import java.io.File;
|
||||||
import org.bukkit.scheduler.BukkitRunnable;
|
|
||||||
|
|
||||||
import java.io.*;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
import java.sql.*;
|
import java.sql.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
@@ -30,7 +26,6 @@ public class UserGroupManager {
|
|||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
initDB();
|
initDB();
|
||||||
loadGroupConfigs();
|
loadGroupConfigs();
|
||||||
startExpiryChecker();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ==================== DB ====================
|
// ==================== DB ====================
|
||||||
@@ -93,13 +88,10 @@ public class UserGroupManager {
|
|||||||
cfg.name = rs.getString("group_name");
|
cfg.name = rs.getString("group_name");
|
||||||
cfg.displayName = rs.getString("display_name");
|
cfg.displayName = rs.getString("display_name");
|
||||||
cfg.displayColor = rs.getString("display_color");
|
cfg.displayColor = rs.getString("display_color");
|
||||||
cfg.displayEmoji = rs.getString("display_emoji");
|
|
||||||
cfg.priority = rs.getInt("priority");
|
cfg.priority = rs.getInt("priority");
|
||||||
cfg.landPricePerSqm = rs.getInt("land_price_per_sqm");
|
cfg.landPricePerSqm = rs.getInt("land_price_per_sqm");
|
||||||
cfg.maxLands = rs.getInt("max_lands");
|
cfg.maxLands = rs.getInt("max_lands");
|
||||||
cfg.defaultPerms = rs.getString("default_perms");
|
cfg.defaultPerms = rs.getString("default_perms");
|
||||||
cfg.permanent = rs.getInt("is_permanent") == 1;
|
|
||||||
cfg.durationMinutes = rs.getInt("duration_minutes");
|
|
||||||
if (cfg.name != null && !cfg.name.isEmpty()) {
|
if (cfg.name != null && !cfg.name.isEmpty()) {
|
||||||
groupConfigs.put(cfg.name, cfg);
|
groupConfigs.put(cfg.name, cfg);
|
||||||
}
|
}
|
||||||
@@ -110,106 +102,24 @@ public class UserGroupManager {
|
|||||||
plugin.getLogger().warning("[UserGroup] loadGroupConfigs failed: " + e.getMessage());
|
plugin.getLogger().warning("[UserGroup] loadGroupConfigs failed: " + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 同时从 txt 文件加载(兼容旧格式,覆盖DB中的同名组)
|
|
||||||
loadFromTxtFiles();
|
|
||||||
|
|
||||||
plugin.getLogger().info("[UserGroup] 已加载 " + groupConfigs.size() + " 个用户组");
|
plugin.getLogger().info("[UserGroup] 已加载 " + groupConfigs.size() + " 个用户组");
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 从 pluginDir/用户组/*.txt 加载旧格式配置 */
|
|
||||||
private void loadFromTxtFiles() {
|
|
||||||
File dir = new File(plugin.getDataFolder(), "用户组");
|
|
||||||
if (!dir.exists()) dir.mkdirs();
|
|
||||||
File[] files = dir.listFiles((d, n) -> n.endsWith(".txt"));
|
|
||||||
if (files == null) return;
|
|
||||||
|
|
||||||
for (File f : files) {
|
|
||||||
try {
|
|
||||||
List<String> lines = java.nio.file.Files.readAllLines(f.toPath(), StandardCharsets.UTF_8);
|
|
||||||
UserGroupConfig cfg = parseTxtGroupConfig(lines);
|
|
||||||
if (cfg != null) {
|
|
||||||
groupConfigs.put(cfg.name, cfg);
|
|
||||||
saveGroupConfigToDB(cfg);
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
plugin.getLogger().warning("[UserGroup] Failed to load txt: " + f.getName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private UserGroupConfig parseTxtGroupConfig(List<String> lines) {
|
|
||||||
UserGroupConfig cfg = new UserGroupConfig();
|
|
||||||
boolean inBlock = false;
|
|
||||||
|
|
||||||
for (String raw : lines) {
|
|
||||||
String l = raw;
|
|
||||||
if (l.contains("<!--")) { inBlock = true; continue; }
|
|
||||||
if (l.contains("-->")) { inBlock = false; continue; }
|
|
||||||
if (l.contains("/*")) { inBlock = true; continue; }
|
|
||||||
if (l.contains("*/")) { inBlock = false; continue; }
|
|
||||||
if (inBlock) continue;
|
|
||||||
|
|
||||||
l = l.trim();
|
|
||||||
if (l.isEmpty()) continue;
|
|
||||||
if (l.startsWith("#") || l.startsWith("//")) continue;
|
|
||||||
|
|
||||||
int h = l.indexOf('#');
|
|
||||||
int s = l.indexOf("//");
|
|
||||||
if (h >= 0) l = l.substring(0, h).trim();
|
|
||||||
if (s >= 0 && (h < 0 || s < h)) l = l.substring(0, s).trim();
|
|
||||||
if (l.isEmpty()) continue;
|
|
||||||
|
|
||||||
String key = l;
|
|
||||||
String val = "";
|
|
||||||
int idx = l.indexOf('\uff1a');
|
|
||||||
if (idx < 0) idx = l.indexOf(':');
|
|
||||||
if (idx >= 0) {
|
|
||||||
key = l.substring(0, idx).trim();
|
|
||||||
val = l.substring(idx + 1).trim();
|
|
||||||
if (val.startsWith("\"") && val.endsWith("\""))
|
|
||||||
val = val.substring(1, val.length() - 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (key) {
|
|
||||||
case "组名": case "name": cfg.name = val; break;
|
|
||||||
case "显示名": case "display": cfg.displayName = val; break;
|
|
||||||
case "颜色": case "color": cfg.displayColor = val; break;
|
|
||||||
case "符号": case "emoji": cfg.displayEmoji = val; break;
|
|
||||||
case "优先级": case "priority":
|
|
||||||
try { cfg.priority = Integer.parseInt(val); } catch (Exception ignored) {}
|
|
||||||
break;
|
|
||||||
case "类型": case "type":
|
|
||||||
cfg.permanent = val.equalsIgnoreCase("永久") || val.equalsIgnoreCase("permanent");
|
|
||||||
break;
|
|
||||||
case "时长": case "duration":
|
|
||||||
try { cfg.durationMinutes = Integer.parseInt(val); } catch (Exception ignored) {}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cfg.name == null || cfg.name.isEmpty()) return null;
|
|
||||||
return cfg;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** 保存组配置到DB */
|
/** 保存组配置到DB */
|
||||||
public void saveGroupConfigToDB(UserGroupConfig cfg) {
|
public void saveGroupConfigToDB(UserGroupConfig cfg) {
|
||||||
try {
|
try {
|
||||||
PreparedStatement ps = db.prepareStatement(
|
PreparedStatement ps = db.prepareStatement(
|
||||||
"INSERT OR REPLACE INTO user_group_config "
|
"INSERT OR REPLACE INTO user_group_config "
|
||||||
+ "(group_name, display_name, display_color, display_emoji,"
|
+ "(group_name, display_name, display_color,"
|
||||||
+ " priority, land_price_per_sqm, max_lands, default_perms,"
|
+ " priority, land_price_per_sqm, max_lands, default_perms)"
|
||||||
+ " is_permanent, duration_minutes)"
|
+ " VALUES (?,?,?,?,?,?,?)");
|
||||||
+ " VALUES (?,?,?,?,?,?,?,?,?,?)");
|
|
||||||
ps.setString(1, cfg.name);
|
ps.setString(1, cfg.name);
|
||||||
ps.setString(2, cfg.displayName);
|
ps.setString(2, cfg.displayName);
|
||||||
ps.setString(3, cfg.displayColor);
|
ps.setString(3, cfg.displayColor);
|
||||||
ps.setString(4, cfg.displayEmoji);
|
ps.setInt(4, cfg.priority);
|
||||||
ps.setInt(5, cfg.priority);
|
ps.setInt(5, cfg.landPricePerSqm);
|
||||||
ps.setInt(6, cfg.landPricePerSqm);
|
ps.setInt(6, cfg.maxLands);
|
||||||
ps.setInt(7, cfg.maxLands);
|
ps.setString(7, cfg.defaultPerms != null ? cfg.defaultPerms : "{}");
|
||||||
ps.setString(8, cfg.defaultPerms != null ? cfg.defaultPerms : "{}");
|
|
||||||
ps.setInt(9, cfg.permanent ? 1 : 0);
|
|
||||||
ps.setInt(10, cfg.durationMinutes);
|
|
||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
ps.close();
|
ps.close();
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
@@ -233,23 +143,19 @@ public class UserGroupManager {
|
|||||||
|
|
||||||
// ==================== 玩家操作 ====================
|
// ==================== 玩家操作 ====================
|
||||||
|
|
||||||
public boolean addPlayer(String player, String groupName, String addedBy, long durationMinutes) {
|
public boolean addPlayer(String player, String groupName, String addedBy) {
|
||||||
UserGroupConfig cfg = groupConfigs.get(groupName);
|
UserGroupConfig cfg = groupConfigs.get(groupName);
|
||||||
if (cfg == null) return false;
|
if (cfg == null) return false;
|
||||||
long now = System.currentTimeMillis();
|
long now = System.currentTimeMillis();
|
||||||
long expiry = cfg.permanent ? 0 : now + durationMinutes * 60 * 1000;
|
|
||||||
if (!cfg.permanent && durationMinutes > 0) expiry = now + durationMinutes * 60 * 1000;
|
|
||||||
else if (!cfg.permanent) expiry = now + cfg.durationMinutes * 60 * 1000;
|
|
||||||
try {
|
try {
|
||||||
PreparedStatement ps = db.prepareStatement(
|
PreparedStatement ps = db.prepareStatement(
|
||||||
"INSERT OR REPLACE INTO user_group_member "
|
"INSERT OR REPLACE INTO user_group_member "
|
||||||
+ "(player_name, group_name, added_by, added_time, expiry_time)"
|
+ "(player_name, group_name, added_by, added_time, expiry_time)"
|
||||||
+ " VALUES (?,?,?,?,?)");
|
+ " VALUES (?,?,?,?,0)");
|
||||||
ps.setString(1, player);
|
ps.setString(1, player);
|
||||||
ps.setString(2, groupName);
|
ps.setString(2, groupName);
|
||||||
ps.setString(3, addedBy);
|
ps.setString(3, addedBy);
|
||||||
ps.setLong(4, now);
|
ps.setLong(4, now);
|
||||||
ps.setLong(5, expiry);
|
|
||||||
ps.executeUpdate();
|
ps.executeUpdate();
|
||||||
ps.close();
|
ps.close();
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
@@ -366,47 +272,6 @@ public class UserGroupManager {
|
|||||||
return cfg.defaultPerms;
|
return cfg.defaultPerms;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ==================== 过期检查 ====================
|
|
||||||
|
|
||||||
private void startExpiryChecker() {
|
|
||||||
new BukkitRunnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
checkExpiry();
|
|
||||||
}
|
|
||||||
}.runTaskTimerAsynchronously(plugin, 1200L, 1200L); // 每60秒检查
|
|
||||||
}
|
|
||||||
|
|
||||||
private void checkExpiry() {
|
|
||||||
try {
|
|
||||||
long now = System.currentTimeMillis();
|
|
||||||
PreparedStatement ps = db.prepareStatement(
|
|
||||||
"SELECT player_name, group_name FROM user_group_member "
|
|
||||||
+ "WHERE expiry_time > 0 AND expiry_time <= ?");
|
|
||||||
ps.setLong(1, now);
|
|
||||||
ResultSet rs = ps.executeQuery();
|
|
||||||
List<String[]> expired = new ArrayList<>();
|
|
||||||
while (rs.next()) {
|
|
||||||
expired.add(new String[]{
|
|
||||||
rs.getString("player_name"),
|
|
||||||
rs.getString("group_name")});
|
|
||||||
}
|
|
||||||
rs.close(); ps.close();
|
|
||||||
|
|
||||||
for (String[] e : expired) {
|
|
||||||
PreparedStatement del = db.prepareStatement(
|
|
||||||
"DELETE FROM user_group_member WHERE player_name=? AND group_name=?");
|
|
||||||
del.setString(1, e[0]);
|
|
||||||
del.setString(2, e[1]);
|
|
||||||
del.executeUpdate();
|
|
||||||
del.close();
|
|
||||||
plugin.getLogger().info("[UserGroup] 过期移除: " + e[0] + " → " + e[1]);
|
|
||||||
}
|
|
||||||
} catch (SQLException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ==================== 工具方法 ====================
|
// ==================== 工具方法 ====================
|
||||||
|
|
||||||
public Map<String, UserGroupConfig> getGroupConfigs() {
|
public Map<String, UserGroupConfig> getGroupConfigs() {
|
||||||
@@ -436,14 +301,10 @@ public class UserGroupManager {
|
|||||||
public String name;
|
public String name;
|
||||||
public String displayName = "";
|
public String displayName = "";
|
||||||
public String displayColor = "§f";
|
public String displayColor = "§f";
|
||||||
public String displayEmoji = "";
|
|
||||||
public int priority = 0;
|
public int priority = 0;
|
||||||
// 领地相关
|
// 领地相关
|
||||||
public int landPricePerSqm = -1; // -1 = 使用全局
|
public int landPricePerSqm = -1; // -1 = 使用全局
|
||||||
public int maxLands = -1; // -1 = 使用全局
|
public int maxLands = -1; // -1 = 使用全局
|
||||||
public String defaultPerms = "{}"; // JSON
|
public String defaultPerms = "{}"; // JSON
|
||||||
// 兼容旧字段
|
|
||||||
public boolean permanent = true;
|
|
||||||
public int durationMinutes = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3041,7 +3041,6 @@ public class WebManager {
|
|||||||
gs.append("\"group_name\":\"").append(escapeJson(cfg.name)).append("\",");
|
gs.append("\"group_name\":\"").append(escapeJson(cfg.name)).append("\",");
|
||||||
gs.append("\"display_name\":\"").append(escapeJson(cfg.displayName)).append("\",");
|
gs.append("\"display_name\":\"").append(escapeJson(cfg.displayName)).append("\",");
|
||||||
gs.append("\"display_color\":\"").append(escapeJson(cfg.displayColor)).append("\",");
|
gs.append("\"display_color\":\"").append(escapeJson(cfg.displayColor)).append("\",");
|
||||||
gs.append("\"display_emoji\":\"").append(escapeJson(cfg.displayEmoji)).append("\",");
|
|
||||||
gs.append("\"priority\":").append(cfg.priority).append(",");
|
gs.append("\"priority\":").append(cfg.priority).append(",");
|
||||||
gs.append("\"land_price_per_sqm\":").append(cfg.landPricePerSqm).append(",");
|
gs.append("\"land_price_per_sqm\":").append(cfg.landPricePerSqm).append(",");
|
||||||
gs.append("\"max_lands\":").append(cfg.maxLands).append(",");
|
gs.append("\"max_lands\":").append(cfg.maxLands).append(",");
|
||||||
|
|||||||
Reference in New Issue
Block a user