Implement !clean command and f affinity

This commit is contained in:
阁主
2025-11-26 09:05:08 +08:00
committed by Melledy
parent 008cd06b32
commit 3a7d12c7b7
5 changed files with 159 additions and 4 deletions

View File

@@ -16,8 +16,8 @@ import emu.nebula.command.CommandHandler;
label = "character",
aliases = {"c", "char"},
permission = "player.character",
requireTarget = true,
desc = "!c [all | {characterId}] lv(level) a(ascension) s(skill level) t(talent level)"
requireTarget = true,
desc = "!c [all | {characterId}] lv(level) a(ascension) s(skill level) t(talent level) f(affinity level)"
)
public class CharacterCommand implements CommandHandler {
@@ -51,6 +51,7 @@ public class CharacterCommand implements CommandHandler {
// Sanity check
if (characters.isEmpty()) {
args.sendMessage("Error: No characters selected");
return;
}
@@ -72,6 +73,7 @@ public class CharacterCommand implements CommandHandler {
}
if (modified.isEmpty()) {
args.sendMessage("No changes applied");
return;
}
@@ -83,5 +85,6 @@ public class CharacterCommand implements CommandHandler {
}
player.addNextPackage(NetMsgId.chars_final_notify, proto);
args.sendMessage("Updated " + modified.size() + " character(s)");
}
}