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

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import server.quest.MapleQuest;
@@ -34,7 +34,7 @@ public class ClearQuestCacheCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
MapleQuest.clearCache();
player.dropMessage(5, "Quest Cache Cleared.");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import server.quest.MapleQuest;
@@ -34,7 +34,7 @@ public class ClearQuestCommand 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.dropMessage(5, "Please include a quest ID.");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.Server;
import net.server.world.World;
@@ -35,7 +35,7 @@ public class DCAllCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
for (World world : Server.getInstance().getWorlds()) {
for (Character chr : world.getPlayerStorage().getAllCharacters()) {

View File

@@ -23,7 +23,7 @@
*/
package client.command.commands.gm6;
import client.MapleClient;
import client.Client;
import client.command.Command;
import server.life.MaplePlayerNPC;
@@ -33,7 +33,7 @@ public class EraseAllPNpcsCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
MaplePlayerNPC.removeAllPlayerNPC();
}
}

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
public class GetAccCommand extends Command {
@@ -33,7 +33,7 @@ public class GetAccCommand 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: !getacc <playername>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.Server;
import net.server.world.World;
@@ -35,7 +35,7 @@ public class MapPlayersCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
String names = "";
int map = player.getMapId();

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.Server;
import net.server.world.World;
@@ -36,7 +36,7 @@ public class SaveAllCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
for (World world : Server.getInstance().getWorlds()) {
for (Character chr : world.getPlayerStorage().getAllCharacters()) {

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.Server;
import server.ThreadManager;
@@ -35,7 +35,7 @@ public class ServerAddChannelCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
final Character player = c.getPlayer();
if (params.length < 1) {

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.Server;
import server.ThreadManager;
@@ -35,7 +35,7 @@ public class ServerAddWorldCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
final Character player = c.getPlayer();
ThreadManager.getInstance().newTask(() -> {

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.Server;
import server.ThreadManager;
@@ -35,7 +35,7 @@ public class ServerRemoveChannelCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
final Character player = c.getPlayer();
if (params.length < 1) {

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.Server;
import server.ThreadManager;
@@ -35,7 +35,7 @@ public class ServerRemoveWorldCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
final Character player = c.getPlayer();
final int rwid = Server.getInstance().getWorldsSize() - 1;

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
public class SetGmLevelCommand extends Command {
@@ -33,7 +33,7 @@ public class SetGmLevelCommand 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: !setgmlevel <playername> <newlevel>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.Server;
import net.server.world.World;
@@ -36,7 +36,7 @@ public class ShutdownCommand 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: !shutdown [<time>|NOW]");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import server.life.MaplePlayerNPC;
@@ -34,7 +34,7 @@ public class SpawnAllPNpcsCommand extends Command {
}
@Override
public void execute(MapleClient c, String[] params) {
public void execute(Client c, String[] params) {
Character player = c.getPlayer();
MaplePlayerNPC.multicastSpawnPlayerNPC(player.getMapId(), player.getWorld());
}

View File

@@ -20,7 +20,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import config.YamlConfig;
@@ -30,7 +30,7 @@ public class SupplyRateCouponCommand 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.dropMessage(5, "Syntax: !supplyratecoupon <yes|no>");

View File

@@ -24,7 +24,7 @@
package client.command.commands.gm6;
import client.Character;
import client.MapleClient;
import client.Client;
import client.command.Command;
import net.server.Server;
import tools.PacketCreator;
@@ -38,7 +38,7 @@ public class WarpWorldCommand 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: !warpworld <worldid>");