Rename and clean up MapleStat

This commit is contained in:
P0nk
2021-09-09 21:25:35 +02:00
parent 8f91d8e7ac
commit d35ead558f
13 changed files with 110 additions and 111 deletions

View File

@@ -25,7 +25,7 @@ package client.command.commands.gm3;
import client.Character;
import client.Client;
import client.MapleStat;
import client.Stat;
import client.command.Command;
public class FameCommand extends Command {
@@ -44,7 +44,7 @@ public class FameCommand extends Command {
Character victim = c.getWorldServer().getPlayerStorage().getCharacterByName(params[0]);
if (victim != null) {
victim.setFame(Integer.parseInt(params[1]));
victim.updateSingleStat(MapleStat.FAME, victim.getFame());
victim.updateSingleStat(Stat.FAME, victim.getFame());
player.message("FAME given.");
} else {
player.message("Player '" + params[0] + "' could not be found.");