Remove "Maple" prefix from MaplePacketCreator name
This commit is contained in:
@@ -22,7 +22,7 @@ package client.command.commands.gm4;
|
||||
import client.MapleCharacter;
|
||||
import client.MapleClient;
|
||||
import client.command.Command;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.PacketCreator;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -43,6 +43,6 @@ public class BossDropRateCommand extends Command {
|
||||
|
||||
int bossdroprate = Math.max(Integer.parseInt(params[0]), 1);
|
||||
c.getWorldServer().setBossDropRate(bossdroprate);
|
||||
c.getWorldServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "[Rate] Boss Drop Rate has been changed to " + bossdroprate + "x."));
|
||||
c.getWorldServer().broadcastPacket(PacketCreator.serverNotice(6, "[Rate] Boss Drop Rate has been changed to " + bossdroprate + "x."));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ package client.command.commands.gm4;
|
||||
import client.MapleCharacter;
|
||||
import client.MapleClient;
|
||||
import client.command.Command;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.PacketCreator;
|
||||
|
||||
public class DropRateCommand extends Command {
|
||||
{
|
||||
@@ -43,7 +43,7 @@ public class DropRateCommand extends Command {
|
||||
|
||||
int droprate = Math.max(Integer.parseInt(params[0]), 1);
|
||||
c.getWorldServer().setDropRate(droprate);
|
||||
c.getWorldServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "[Rate] Drop Rate has been changed to " + droprate + "x."));
|
||||
c.getWorldServer().broadcastPacket(PacketCreator.serverNotice(6, "[Rate] Drop Rate has been changed to " + droprate + "x."));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ package client.command.commands.gm4;
|
||||
import client.MapleCharacter;
|
||||
import client.MapleClient;
|
||||
import client.command.Command;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.PacketCreator;
|
||||
|
||||
public class ExpRateCommand extends Command {
|
||||
{
|
||||
@@ -43,6 +43,6 @@ public class ExpRateCommand extends Command {
|
||||
|
||||
int exprate = Math.max(Integer.parseInt(params[0]), 1);
|
||||
c.getWorldServer().setExpRate(exprate);
|
||||
c.getWorldServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "[Rate] Exp Rate has been changed to " + exprate + "x."));
|
||||
c.getWorldServer().broadcastPacket(PacketCreator.serverNotice(6, "[Rate] Exp Rate has been changed to " + exprate + "x."));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ package client.command.commands.gm4;
|
||||
import client.MapleCharacter;
|
||||
import client.MapleClient;
|
||||
import client.command.Command;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.PacketCreator;
|
||||
|
||||
public class FishingRateCommand extends Command {
|
||||
{
|
||||
@@ -43,6 +43,6 @@ public class FishingRateCommand extends Command {
|
||||
|
||||
int fishrate = Math.max(Integer.parseInt(params[0]), 1);
|
||||
c.getWorldServer().setFishingRate(fishrate);
|
||||
c.getWorldServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "[Rate] Fishing Rate has been changed to " + fishrate + "x."));
|
||||
c.getWorldServer().broadcastPacket(PacketCreator.serverNotice(6, "[Rate] Fishing Rate has been changed to " + fishrate + "x."));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ import client.inventory.manipulator.MapleInventoryManipulator;
|
||||
import server.maps.MapleMapItem;
|
||||
import server.maps.MapleMapObject;
|
||||
import server.maps.MapleMapObjectType;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.PacketCreator;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
@@ -70,7 +70,7 @@ public class ForceVacCommand extends Command {
|
||||
}
|
||||
}
|
||||
|
||||
player.getMap().pickItemDrop(MaplePacketCreator.removeItemFromMap(mapItem.getObjectId(), 2, player.getId()), mapItem);
|
||||
player.getMap().pickItemDrop(PacketCreator.removeItemFromMap(mapItem.getObjectId(), 2, player.getId()), mapItem);
|
||||
} finally {
|
||||
mapItem.unlockItem();
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ package client.command.commands.gm4;
|
||||
import client.MapleCharacter;
|
||||
import client.MapleClient;
|
||||
import client.command.Command;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.PacketCreator;
|
||||
|
||||
public class MesoRateCommand extends Command {
|
||||
{
|
||||
@@ -43,6 +43,6 @@ public class MesoRateCommand extends Command {
|
||||
|
||||
int mesorate = Math.max(Integer.parseInt(params[0]), 1);
|
||||
c.getWorldServer().setMesoRate(mesorate);
|
||||
c.getWorldServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "[Rate] Meso Rate has been changed to " + mesorate + "x."));
|
||||
c.getWorldServer().broadcastPacket(PacketCreator.serverNotice(6, "[Rate] Meso Rate has been changed to " + mesorate + "x."));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ import server.life.MapleLifeFactory;
|
||||
import server.life.MapleNPC;
|
||||
import server.maps.MapleMap;
|
||||
import tools.DatabaseConnection;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.PacketCreator;
|
||||
|
||||
import java.awt.*;
|
||||
import java.sql.Connection;
|
||||
@@ -94,7 +94,7 @@ public class PnpcCommand extends Command {
|
||||
|
||||
MapleMap map = ch.getMapFactory().getMap(mapId);
|
||||
map.addMapObject(npc);
|
||||
map.broadcastMessage(MaplePacketCreator.spawnNPC(npc));
|
||||
map.broadcastMessage(PacketCreator.spawnNPC(npc));
|
||||
}
|
||||
|
||||
player.yellowMessage("Pnpc created.");
|
||||
|
||||
@@ -26,7 +26,7 @@ package client.command.commands.gm4;
|
||||
import client.MapleCharacter;
|
||||
import client.MapleClient;
|
||||
import client.command.Command;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.PacketCreator;
|
||||
|
||||
public class QuestRateCommand extends Command {
|
||||
{
|
||||
@@ -43,7 +43,7 @@ public class QuestRateCommand extends Command {
|
||||
|
||||
int questrate = Math.max(Integer.parseInt(params[0]), 1);
|
||||
c.getWorldServer().setQuestRate(questrate);
|
||||
c.getWorldServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "[Rate] Quest Rate has been changed to " + questrate + "x."));
|
||||
c.getWorldServer().broadcastPacket(PacketCreator.serverNotice(6, "[Rate] Quest Rate has been changed to " + questrate + "x."));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ package client.command.commands.gm4;
|
||||
import client.MapleCharacter;
|
||||
import client.MapleClient;
|
||||
import client.command.Command;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.PacketCreator;
|
||||
|
||||
public class TravelRateCommand extends Command {
|
||||
{
|
||||
@@ -43,6 +43,6 @@ public class TravelRateCommand extends Command {
|
||||
|
||||
int travelrate = Math.max(Integer.parseInt(params[0]), 1);
|
||||
c.getWorldServer().setTravelRate(travelrate);
|
||||
c.getWorldServer().broadcastPacket(MaplePacketCreator.serverNotice(6, "[Rate] Travel Rate has been changed to " + travelrate + "x."));
|
||||
c.getWorldServer().broadcastPacket(PacketCreator.serverNotice(6, "[Rate] Travel Rate has been changed to " + travelrate + "x."));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user