Show confirmation after note is sent

This commit is contained in:
P0nk
2022-12-27 12:31:36 +01:00
parent 4731c0c60d
commit 37a9a4121f
4 changed files with 21 additions and 6 deletions

View File

@@ -38,6 +38,7 @@ import constants.id.MapId;
import constants.inventory.ItemConstants;
import net.AbstractPacketHandler;
import net.packet.InPacket;
import net.packet.out.SendNoteSuccessPacket;
import net.server.Server;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -367,6 +368,7 @@ public final class UseCashItemHandler extends AbstractPacketHandler {
boolean sendSuccess = noteService.sendNormal(msg, player.getName(), sendTo);
if (sendSuccess) {
remove(c, position, itemId);
c.sendPacket(new SendNoteSuccessPacket());
}
} else if (itemType == 510) {
player.getMap().broadcastMessage(PacketCreator.musicChange("Jukebox/Congratulation"));