Rename and clean up MapleExpedition
This commit is contained in:
@@ -28,7 +28,7 @@ import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.Server;
|
||||
import net.server.channel.Channel;
|
||||
import server.expeditions.MapleExpedition;
|
||||
import server.expeditions.Expedition;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map.Entry;
|
||||
@@ -42,14 +42,14 @@ public class ExpedsCommand extends Command {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
for (Channel ch : Server.getInstance().getChannelsFromWorld(c.getWorld())) {
|
||||
List<MapleExpedition> expeds = ch.getExpeditions();
|
||||
List<Expedition> expeds = ch.getExpeditions();
|
||||
if (expeds.isEmpty()) {
|
||||
player.yellowMessage("No Expeditions in Channel " + ch.getId());
|
||||
continue;
|
||||
}
|
||||
player.yellowMessage("Expeditions in Channel " + ch.getId());
|
||||
int id = 0;
|
||||
for (MapleExpedition exped : expeds) {
|
||||
for (Expedition exped : expeds) {
|
||||
id++;
|
||||
player.yellowMessage("> Expedition " + id);
|
||||
player.yellowMessage(">> Type: " + exped.getType().toString());
|
||||
|
||||
Reference in New Issue
Block a user