Rename and clean up MapleClient
This commit is contained in:
@@ -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.");
|
||||
|
||||
@@ -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.");
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>");
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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(() -> {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>");
|
||||
|
||||
@@ -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]");
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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>");
|
||||
|
||||
@@ -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>");
|
||||
|
||||
Reference in New Issue
Block a user