Merge branch 'master' into feat/postgresql-database
This commit is contained in:
@@ -23,6 +23,7 @@ package net.server.channel.handlers;
|
||||
|
||||
import client.Character;
|
||||
import client.Client;
|
||||
import config.YamlConfig;
|
||||
import net.AbstractPacketHandler;
|
||||
import net.packet.InPacket;
|
||||
import tools.PacketCreator;
|
||||
@@ -42,6 +43,11 @@ public final class MesoDropHandler extends AbstractPacketHandler {
|
||||
p.skip(4);
|
||||
int meso = p.readInt();
|
||||
|
||||
if (player.isGM() && player.gmLevel() < YamlConfig.config.server.MINIMUM_GM_LEVEL_TO_DROP) {
|
||||
player.message("You cannot drop mesos at your GM level.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (c.tryacquireClient()) { // thanks imbee for noticing players not being able to throw mesos too fast
|
||||
try {
|
||||
if (meso <= player.getMeso() && meso > 9 && meso < 50001) {
|
||||
|
||||
@@ -69,7 +69,7 @@ public final class WeddingHandler extends AbstractPacketHandler {
|
||||
if (!item.isUntradeable()) {
|
||||
if (itemid == item.getItemId() && quantity <= item.getQuantity()) {
|
||||
newItem = item.copy();
|
||||
|
||||
newItem.setQuantity(quantity);
|
||||
marriage.addGiftItem(groomWishlist, newItem);
|
||||
InventoryManipulator.removeFromSlot(c, type, slot, quantity, false, false);
|
||||
|
||||
@@ -161,4 +161,4 @@ public final class WeddingHandler extends AbstractPacketHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user