mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-18 07:14:49 +01:00
Implement !clean command and f affinity
This commit is contained in:
@@ -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)");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user