Add command to start map event (#366)

This commit is contained in:
MedicOP
2019-01-26 01:38:35 +01:00
committed by Ronan Lana
parent 08e4a05641
commit c6cd69b5d7
2 changed files with 39 additions and 0 deletions

View File

@@ -292,6 +292,7 @@ public class CommandsExecutor {
addCommand("pe", 3, PeCommand.class);
addCommand("startevent", 3, StartEventCommand.class);
addCommand("endevent", 3, EndEventCommand.class);
addCommand("startmapevent", 3, StartMapEventCommand.class);
addCommand("online2", 3, OnlineTwoCommand.class);
addCommand("warpsnowball", 3, WarpSnowBallCommand.class);
addCommand("ban", 3, BanCommand.class);

View File

@@ -0,0 +1,38 @@
/*
This file is part of the HeavenMS MapleStory Server, commands OdinMS-based
Copyleft (L) 2016 - 2018 RonanLana
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
@Author: MedicOP - Start actual event
*/
package client.command.commands.gm3;
import client.MapleClient;
import client.command.Command;
public class StartMapEventCommand extends Command {
{
setDescription("");
}
@Override
public void execute(MapleClient c, String[] params) {
c.getPlayer().getMap().startEvent(c.getPlayer());
}
}