Add command to stop map event (#373)

This commit is contained in:
MedicOP
2019-01-27 20:09:00 +01:00
committed by Ronan Lana
parent 6d520937a1
commit 9443022f16
2 changed files with 39 additions and 0 deletions

View File

@@ -293,6 +293,7 @@ public class CommandsExecutor {
addCommand("startevent", 3, StartEventCommand.class);
addCommand("endevent", 3, EndEventCommand.class);
addCommand("startmapevent", 3, StartMapEventCommand.class);
addCommand("stopmapevent", 3, StopMapEventCommand.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 - Stop actual event
*/
package client.command.commands.gm3;
import client.MapleClient;
import client.command.Command;
public class StopMapEventCommand extends Command {
{
setDescription("");
}
@Override
public void execute(MapleClient c, String[] params) {
c.getPlayer().getMap().setEventStarted(false);
}
}