Rename and clean up MapleClient

This commit is contained in:
P0nk
2021-09-09 21:13:48 +02:00
parent da8837710a
commit b07e6799dc
425 changed files with 1110 additions and 1109 deletions

View File

@@ -20,7 +20,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import tools.PacketCreator;
@@ -34,7 +34,7 @@ public class BossDropRateCommand 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: !bossdroprate <newrate>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
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 CakeCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
MapleMonster monster = MapleLifeFactory.getMonster(9400606);
if (params.length == 1) {

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import tools.PacketCreator;
@@ -34,7 +34,7 @@ public class DropRateCommand 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: !droprate <newrate>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import tools.PacketCreator;
@@ -34,7 +34,7 @@ public class ExpRateCommand 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: !exprate <newrate>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import tools.PacketCreator;
@@ -34,7 +34,7 @@ public class FishingRateCommand 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: !fishrate <newrate>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import client.inventory.Pet;
import client.inventory.manipulator.InventoryManipulator;
@@ -42,7 +42,7 @@ public class ForceVacCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
List<MapleMapObject> items = player.getMap().getMapObjectsInRange(player.getPosition(), Double.POSITIVE_INFINITY, Arrays.asList(MapleMapObjectType.ITEM));
for (MapleMapObject item : items) {

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import server.maps.MapleMap;
@@ -36,7 +36,7 @@ public class HorntailCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
final Point targetPoint = player.getPosition();
final MapleMap targetMap = player.getMap();

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import server.maps.MapleMapObject;
import server.maps.MapleMapObjectType;
@@ -38,7 +38,7 @@ public class ItemVacCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
List<MapleMapObject> list = player.getMap().getMapObjectsInRange(player.getPosition(), Double.POSITIVE_INFINITY, Arrays.asList(MapleMapObjectType.ITEM));
for (MapleMapObject item : list) {

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import tools.PacketCreator;
@@ -34,7 +34,7 @@ public class MesoRateCommand 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: !mesorate <newrate>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import server.life.MapleLifeFactory;
@@ -34,7 +34,7 @@ public class PapCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
// thanks Conrad for noticing mobid typo here

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import server.life.MapleLifeFactory;
@@ -34,7 +34,7 @@ public class PianusCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
player.getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8510000), player.getPosition());
}

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import server.life.MapleLifeFactory;
@@ -34,7 +34,7 @@ public class PinkbeanCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
player.getMap().spawnMonsterOnGroundBelow(MapleLifeFactory.getMonster(8820001), player.getPosition());

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import server.life.MaplePlayerNPC;
@@ -34,7 +34,7 @@ public class PlayerNpcCommand 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: !playernpc <playername>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import server.life.MaplePlayerNPC;
@@ -34,7 +34,7 @@ public class PlayerNpcRemoveCommand 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: !playernpcremove <playername>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.channel.Channel;
import server.life.MapleLifeFactory;
@@ -43,7 +43,7 @@ public class PmobCommand 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: !pmob <mobid> [<mobtime>]");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.channel.Channel;
import server.maps.MapleMap;
@@ -45,7 +45,7 @@ public class PmobRemoveCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
int mapId = player.getMapId();

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.channel.Channel;
import server.life.MapleLifeFactory;
@@ -44,7 +44,7 @@ public class PnpcCommand 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: !pnpc <npcid>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.channel.Channel;
import server.maps.MapleMap;
@@ -45,7 +45,7 @@ public class PnpcRemoveCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
int mapId = player.getMapId();

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import client.inventory.Equip;
import client.inventory.InventoryType;
@@ -39,7 +39,7 @@ public class ProItemCommand 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: !proitem <itemid> <stat value> [<spdjmp value>]");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import tools.PacketCreator;
@@ -34,7 +34,7 @@ public class QuestRateCommand 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: !questrate <newrate>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
public class ServerMessageCommand extends Command {
@@ -33,7 +33,7 @@ public class ServerMessageCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
c.getWorldServer().setServerMessage(player.getLastCommandMessage());
}

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import client.inventory.Equip;
import client.inventory.Inventory;
@@ -37,7 +37,7 @@ public class SetEqStatCommand 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: !seteqstat <stat value> [<spdjmp value>]");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import tools.PacketCreator;
@@ -34,7 +34,7 @@ public class TravelRateCommand 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: !travelrate <newrate>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm4;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import server.life.MapleLifeFactory;
@@ -34,7 +34,7 @@ public class ZakumCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
player.getMap().spawnFakeMonsterOnGroundBelow(MapleLifeFactory.getMonster(8800000), player.getPosition());
for (int x = 8800003; x < 8800011; x++) {