Add command to start map event (#366)
This commit is contained in:
@@ -292,6 +292,7 @@ public class CommandsExecutor {
|
|||||||
addCommand("pe", 3, PeCommand.class);
|
addCommand("pe", 3, PeCommand.class);
|
||||||
addCommand("startevent", 3, StartEventCommand.class);
|
addCommand("startevent", 3, StartEventCommand.class);
|
||||||
addCommand("endevent", 3, EndEventCommand.class);
|
addCommand("endevent", 3, EndEventCommand.class);
|
||||||
|
addCommand("startmapevent", 3, StartMapEventCommand.class);
|
||||||
addCommand("online2", 3, OnlineTwoCommand.class);
|
addCommand("online2", 3, OnlineTwoCommand.class);
|
||||||
addCommand("warpsnowball", 3, WarpSnowBallCommand.class);
|
addCommand("warpsnowball", 3, WarpSnowBallCommand.class);
|
||||||
addCommand("ban", 3, BanCommand.class);
|
addCommand("ban", 3, BanCommand.class);
|
||||||
|
|||||||
38
src/client/command/commands/gm3/StartMapEventCommand.java
Normal file
38
src/client/command/commands/gm3/StartMapEventCommand.java
Normal 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());
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user