Rename and clean up MapleClient
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.Server;
|
||||
import server.TimerManager;
|
||||
@@ -41,7 +41,7 @@ public class BanCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 2) {
|
||||
player.yellowMessage("Syntax: !ban <IGN> <Reason> (Please be descriptive)");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class ChatCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class ChatCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
player.toggleWhiteChat();
|
||||
player.message("Your chat is now " + (player.getWhiteChat() ? " white" : "normal") + ".");
|
||||
|
||||
@@ -25,7 +25,7 @@ package client.command.commands.gm3;
|
||||
|
||||
import client.BuffStat;
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class CheckDmgCommand extends Command {
|
||||
@@ -34,7 +34,7 @@ public class CheckDmgCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
Character victim = c.getWorldServer().getPlayerStorage().getCharacterByName(params[0]);
|
||||
if (victim != null) {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class ClosePortalCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class ClosePortalCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !closeportal <portalid>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.MapleDisease;
|
||||
import client.command.Command;
|
||||
import server.life.MobSkill;
|
||||
@@ -40,7 +40,7 @@ public class DebuffCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !debuff SLOW|SEDUCE|ZOMBIFY|CONFUSE|STUN|POISON|SEAL|DARKNESS|WEAKEN|CURSE");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class EndEventCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class EndEventCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
c.getChannelServer().setEvent(null);
|
||||
player.dropMessage(5, "You have ended the event. No more players may join.");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.Server;
|
||||
import net.server.channel.Channel;
|
||||
@@ -39,7 +39,7 @@ public class ExpedsCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
for (Channel ch : Server.getInstance().getChannelsFromWorld(c.getWorld())) {
|
||||
List<MapleExpedition> expeds = ch.getExpeditions();
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.MapleStat;
|
||||
import client.command.Command;
|
||||
import constants.inventory.ItemConstants;
|
||||
@@ -36,7 +36,7 @@ public class FaceCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !face [<playername>] <faceid>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.MapleStat;
|
||||
import client.command.Command;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class FameCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 2) {
|
||||
player.yellowMessage("Syntax: !fame <playername> <gainfame>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.Server;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class FlyCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) { // fly option will become available for any character of that account
|
||||
public void execute(Client c, String[] params) { // fly option will become available for any character of that account
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !fly <on/off>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class GiveMesosCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class GiveMesosCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !givems [<playername>] <gainmeso>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class GiveNxCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class GiveNxCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !givenx [nx, mp, np] [<playername>] <gainnx>");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class GiveRpCommand extends Command {
|
||||
@@ -10,7 +10,7 @@ public class GiveRpCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient client, String[] params) {
|
||||
public void execute(Client client, String[] params) {
|
||||
Character player = client.getPlayer();
|
||||
if (params.length < 2) {
|
||||
player.yellowMessage("Syntax: !giverp <playername> <gainrewardpoint>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class GiveVpCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class GiveVpCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 2) {
|
||||
player.yellowMessage("Syntax: !givevp <playername> <gainvotepoint>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.MapleStat;
|
||||
import client.command.Command;
|
||||
import constants.inventory.ItemConstants;
|
||||
@@ -36,7 +36,7 @@ public class HairCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !hair [<playername>] <hairid>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class HealMapCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class HealMapCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
for (Character mch : player.getMap().getCharacters()) {
|
||||
if (mch != null) {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class HealPersonCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class HealPersonCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
Character victim = c.getWorldServer().getPlayerStorage().getCharacterByName(params[0]);
|
||||
if (victim != null) {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class HpMpCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class HpMpCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
Character victim = player;
|
||||
int statUpdate = 1;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class HurtCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class HurtCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
Character victim = c.getWorldServer().getPlayerStorage().getCharacterByName(params[0]);
|
||||
if (victim != null) {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.packet.logging.MapleLogger;
|
||||
import net.server.Server;
|
||||
@@ -36,7 +36,7 @@ public class IgnoreCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !ignore <ign>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.packet.logging.MapleLogger;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class IgnoredCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
for (Integer cid : MapleLogger.ignored) {
|
||||
player.yellowMessage(Character.getNameById(cid) + " is being ignored.");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class InMapCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class InMapCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
String st = "";
|
||||
for (Character chr : player.getMap().getCharacters()) {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.life.MapleMonster;
|
||||
import server.maps.MapleMap;
|
||||
@@ -40,7 +40,7 @@ public class KillAllCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
MapleMap map = player.getMap();
|
||||
List<MapleMapObject> monsters = map.getMapObjectsInRange(player.getPosition(), Double.POSITIVE_INFINITY, Arrays.asList(MapleMapObjectType.MONSTER));
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.Server;
|
||||
import tools.PacketCreator;
|
||||
@@ -35,7 +35,7 @@ public class KillCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !kill <playername>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class KillMapCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class KillMapCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
for (Character mch : player.getMap().getCharacters()) {
|
||||
mch.updateHp(0);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import tools.PacketCreator;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class MaxEnergyCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
c.getPlayer().setDojoEnergy(10000);
|
||||
c.sendPacket(PacketCreator.getEnergy("energy", 10000));
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class MaxHpMpCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class MaxHpMpCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
Character victim = player;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.packet.logging.MapleLogger;
|
||||
import net.server.Server;
|
||||
@@ -36,7 +36,7 @@ public class MonitorCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !monitor <ign>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.packet.logging.MapleLogger;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class MonitorsCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
for (Integer cid : MapleLogger.monitored) {
|
||||
player.yellowMessage(Character.getNameById(cid) + " is being monitored.");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import constants.game.GameConstants;
|
||||
import tools.PacketCreator;
|
||||
@@ -44,7 +44,7 @@ public class MusicCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class MuteMapCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class MuteMapCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (player.getMap().isMuted()) {
|
||||
player.getMap().setMuted(false);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class NightCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class NightCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
player.getMap().broadcastNightEffect();
|
||||
player.yellowMessage("Done.");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.Server;
|
||||
import tools.PacketCreator;
|
||||
@@ -35,7 +35,7 @@ public class NoticeCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
Server.getInstance().broadcastMessage(c.getWorld(), PacketCreator.serverNotice(6, "[Notice] " + player.getLastCommandMessage()));
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.life.MapleLifeFactory;
|
||||
import server.life.MapleNPC;
|
||||
@@ -36,7 +36,7 @@ public class NpcCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !npc <npcid>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.Server;
|
||||
import net.server.channel.Channel;
|
||||
@@ -35,7 +35,7 @@ public class OnlineTwoCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
int total = 0;
|
||||
for (Channel ch : Server.getInstance().getChannelsFromWorld(player.getWorld())) {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class OpenPortalCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class OpenPortalCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !openportal <portalid>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import io.netty.buffer.Unpooled;
|
||||
import net.PacketHandler;
|
||||
@@ -45,7 +45,7 @@ public class PeCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
String packet = "";
|
||||
try {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class PosCommand extends Command {
|
||||
@@ -33,7 +33,7 @@ public class PosCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
float xpos = player.getPosition().x;
|
||||
float ypos = player.getPosition().y;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.quest.MapleQuest;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class QuestCompleteCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
|
||||
if (params.length < 1){
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.quest.MapleQuest;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class QuestResetCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
|
||||
if (params.length < 1){
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.quest.MapleQuest;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class QuestStartCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
|
||||
if (params.length < 1){
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.life.MapleMonsterInformationProvider;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class ReloadDropsCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
MapleMonsterInformationProvider.getInstance().clearDrops();
|
||||
player.dropMessage(5, "Reloaded Drops");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.Server;
|
||||
import net.server.channel.Channel;
|
||||
@@ -35,7 +35,7 @@ public class ReloadEventsCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
for (Channel ch : Server.getInstance().getAllChannels()) {
|
||||
ch.reloadEventScriptManager();
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.maps.MapleMap;
|
||||
|
||||
@@ -36,7 +36,7 @@ public class ReloadMapCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
MapleMap newMap = c.getChannelServer().getMapFactory().resetMap(player.getMapId());
|
||||
int callerid = c.getPlayer().getId();
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import scripting.portal.PortalScriptManager;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class ReloadPortalsCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
PortalScriptManager.getInstance().reloadPortalScripts();
|
||||
player.dropMessage(5, "Reloaded Portals");
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.MapleShopFactory;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class ReloadShopsCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
MapleShopFactory.getInstance().reloadShops();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.Server;
|
||||
import tools.PacketCreator;
|
||||
@@ -35,7 +35,7 @@ public class RipCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
Server.getInstance().broadcastMessage(c.getWorld(), PacketCreator.serverNotice(6, "[RIP]: " + joinStringFrom(params, 1)));
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import client.inventory.Item;
|
||||
|
||||
@@ -36,7 +36,7 @@ public class SeedCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (player.getMapId() != 910010000) {
|
||||
player.yellowMessage("This command can only be used in HPQ.");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.life.MapleLifeFactory;
|
||||
import server.life.MapleMonster;
|
||||
@@ -35,7 +35,7 @@ public class SpawnCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !spawn <mobid> [<mobqty>]");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.Server;
|
||||
import server.events.gm.MapleEvent;
|
||||
@@ -36,7 +36,7 @@ public class StartEventCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
int players = 50;
|
||||
if (params.length > 1)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class StartMapEventCommand extends Command {
|
||||
@@ -32,7 +32,7 @@ public class StartMapEventCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
c.getPlayer().getMap().startEvent(c.getPlayer());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
*/
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
|
||||
public class StopMapEventCommand extends Command {
|
||||
@@ -32,7 +32,7 @@ public class StopMapEventCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
c.getPlayer().getMap().setEventStarted(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import tools.PacketCreator;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class TimerAllCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !timerall <seconds>|remove");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import tools.PacketCreator;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class TimerCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 2) {
|
||||
player.yellowMessage("Syntax: !timer <playername> <seconds>|remove");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import tools.PacketCreator;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class TimerMapCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !timermap <seconds>|remove");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.Server;
|
||||
|
||||
@@ -34,7 +34,7 @@ public class ToggleCouponCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !togglecoupon <itemid>");
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
package client.command.commands.gm3;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import tools.DatabaseConnection;
|
||||
|
||||
@@ -37,7 +37,7 @@ public class UnBanCommand extends Command {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if (params.length < 1) {
|
||||
player.yellowMessage("Syntax: !unban <playername>");
|
||||
|
||||
Reference in New Issue
Block a user