import com.bdoemu.commons.network.ReceivablePacket;
import com.bdoemu.commons.network.SendablePacket;
import com.bdoemu.core.network.GameClient;
import com.bdoemu.core.network.sendable.SMCash;
import com.bdoemu.gameserver.model.creature.player.Player;
public class CMCash extends ReceivablePacket<GameClient> {
public CMCash(final short opcode) {
super(opcode);
}
protected void read() {
}
public void runImpl() {
final Player player = this.getClient().getPlayer();
//if (player != null && !player.getBanController().checkChat()) { // The getBanController.checkChat() method caused cash not to be shown in pearl shop after adding to db
if (player != null) { // Temporary replaced above line with this. Cash Points show in game if added to db via web or direct modification of db
this.getClient().sendPacket(new SMCash(player.getAccountId()));
}
}
}