Rename and clean up MapleClient
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package net.server.guild;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import net.opcodes.SendOpcode;
|
||||
import net.packet.OutPacket;
|
||||
import net.packet.Packet;
|
||||
@@ -413,7 +413,7 @@ public class GuildPackets {
|
||||
return p;
|
||||
}
|
||||
|
||||
public static Packet addGuildToAlliance(MapleAlliance alliance, int newGuild, MapleClient c) {
|
||||
public static Packet addGuildToAlliance(MapleAlliance alliance, int newGuild, Client c) {
|
||||
OutPacket p = OutPacket.create(SendOpcode.ALLIANCE_OPERATION);
|
||||
p.writeByte(0x12);
|
||||
p.writeInt(alliance.getId());
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
package net.server.guild;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import net.packet.Packet;
|
||||
import net.server.Server;
|
||||
import net.server.coordinator.world.MapleInviteCoordinator;
|
||||
@@ -435,7 +435,7 @@ public class MapleAlliance {
|
||||
Server.getInstance().allianceMessage(allianceId, packet, -1, -1);
|
||||
}
|
||||
|
||||
public static void sendInvitation(MapleClient c, String targetGuildName, int allianceId) {
|
||||
public static void sendInvitation(Client c, String targetGuildName, int allianceId) {
|
||||
MapleGuild mg = Server.getInstance().getGuildByName(targetGuildName);
|
||||
if (mg == null) {
|
||||
c.getPlayer().dropMessage(5, "The entered guild does not exist.");
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
package net.server.guild;
|
||||
|
||||
import client.Character;
|
||||
import client.MapleClient;
|
||||
import client.Client;
|
||||
import config.YamlConfig;
|
||||
import net.packet.Packet;
|
||||
import net.server.PlayerStorage;
|
||||
@@ -707,7 +707,7 @@ public class MapleGuild {
|
||||
this.guildMessage(GuildPackets.updateGP(this.id, this.gp));
|
||||
}
|
||||
|
||||
public static MapleGuildResponse sendInvitation(MapleClient c, String targetName) {
|
||||
public static MapleGuildResponse sendInvitation(Client c, String targetName) {
|
||||
Character mc = c.getChannelServer().getPlayerStorage().getCharacterByName(targetName);
|
||||
if (mc == null) {
|
||||
return MapleGuildResponse.NOT_IN_CHANNEL;
|
||||
@@ -762,7 +762,7 @@ public class MapleGuild {
|
||||
return guildMembers;
|
||||
}
|
||||
|
||||
public static void displayGuildRanks(MapleClient c, int npcid) {
|
||||
public static void displayGuildRanks(Client c, int npcid) {
|
||||
try (Connection con = DatabaseConnection.getConnection();
|
||||
PreparedStatement ps = con.prepareStatement("SELECT `name`, `GP`, `logoBG`, `logoBGColor`, `logo`, `logoColor` FROM guilds ORDER BY `GP` DESC LIMIT 50", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
|
||||
ResultSet rs = ps.executeQuery()) {
|
||||
|
||||
Reference in New Issue
Block a user