Rename and clean up MapleEvent
This commit is contained in:
@@ -26,7 +26,7 @@ package client.command.commands.gm0;
|
||||
import client.Character;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import server.events.gm.MapleEvent;
|
||||
import server.events.gm.Event;
|
||||
import server.maps.FieldLimit;
|
||||
|
||||
public class JoinEventCommand extends Command {
|
||||
@@ -38,7 +38,7 @@ public class JoinEventCommand extends Command {
|
||||
public void execute(Client c, String[] params) {
|
||||
Character player = c.getPlayer();
|
||||
if(!FieldLimit.CANNOTMIGRATE.check(player.getMap().getFieldLimit())) {
|
||||
MapleEvent event = c.getChannelServer().getEvent();
|
||||
Event event = c.getChannelServer().getEvent();
|
||||
if(event != null) {
|
||||
if(event.getMapId() != player.getMapId()) {
|
||||
if(event.getLimit() > 0) {
|
||||
|
||||
@@ -27,7 +27,7 @@ import client.Character;
|
||||
import client.Client;
|
||||
import client.command.Command;
|
||||
import net.server.Server;
|
||||
import server.events.gm.MapleEvent;
|
||||
import server.events.gm.Event;
|
||||
import tools.PacketCreator;
|
||||
|
||||
public class StartEventCommand extends Command {
|
||||
@@ -41,7 +41,7 @@ public class StartEventCommand extends Command {
|
||||
int players = 50;
|
||||
if (params.length > 1)
|
||||
players = Integer.parseInt(params[0]);
|
||||
c.getChannelServer().setEvent(new MapleEvent(player.getMapId(), players));
|
||||
c.getChannelServer().setEvent(new Event(player.getMapId(), players));
|
||||
Server.getInstance().broadcastMessage(c.getWorld(), PacketCreator.earnTitleMessage(
|
||||
"[Event] An event has started on "
|
||||
+ player.getMap().getMapName()
|
||||
|
||||
Reference in New Issue
Block a user