Find command target in world instead of channel (#328)

This commit is contained in:
MedicOP
2019-01-15 02:33:25 +01:00
committed by Ronan Lana
parent 8158955365
commit c63fc7475c
13 changed files with 26 additions and 26 deletions

View File

@@ -66,12 +66,12 @@ public class GiveMesosCommand extends Command {
}
}
MapleCharacter victim = c.getChannelServer().getPlayerStorage().getCharacterByName(recv_);
MapleCharacter victim = c.getWorldServer().getPlayerStorage().getCharacterByName(recv_);
if (victim != null) {
victim.gainMeso((int) mesos_, true);
player.message("MESO given.");
} else {
player.message("Player '" + recv_ + "' could not be found on this channel.");
player.message("Player '" + recv_ + "' could not be found.");
}
}
}