Added Elemental Bonus

Usage: /stats <epyro | ecryo | ehydro | egeo | edend | eelec | ephys> <amount> for elemental bonus
This commit is contained in:
alt3ri 2022-04-21 03:47:17 +07:00 committed by GitHub
parent 49475a92dd
commit 8d4d4a3203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ import emu.grasscutter.server.packet.send.PacketEntityFightPropUpdateNotify;
import java.util.List; import java.util.List;
@Command(label = "setstats", usage = "setstats <hp|def|atk|em|er|crate|cdmg> <value>", @Command(label = "setstats", usage = "setstats|stats <stat> <value>",
aliases = {"stats"}) aliases = {"stats"})
public class SetStats implements CommandHandler { public class SetStats implements CommandHandler {
@ -23,7 +23,8 @@ public class SetStats implements CommandHandler {
String stat = args.get(0); String stat = args.get(0);
switch (stat) { switch (stat) {
default: default:
CommandHandler.sendMessage(sender, "Usage: setstats|stats <hp|def|atk|em|er|crate|cdmg> <value>"); CommandHandler.sendMessage(sender, "Usage: /setstats|stats <hp | def | atk | em | er | crate | cdmg> <value> for basic stats");
CommandHandler.sendMessage(sender, "Usage: /stats <epyro | ecryo | ehydro | egeo | edend | eelec | ephys> <amount> for elemental bonus");
return; return;
case "hp": case "hp":
try { try {