/dxl play bugfix

This commit is contained in:
Daniel Saukel 2017-02-20 01:47:28 +01:00
parent 33f05c1678
commit 843491937a

View File

@ -69,7 +69,11 @@ public class PlayCommand extends BRCommand {
}
DGroup dGroup = DGroup.getByPlayer(player);
if (dGroup == null || dGroup.isPlaying()) {
if (dGroup.isPlaying()) {
MessageUtil.sendMessage(player, DMessages.ERROR_LEAVE_GROUP.getMessage());
return;
}
if (dGroup == null) {
dGroup = new DGroup(player, dungeon);
DGroupCreateEvent event = new DGroupCreateEvent(dGroup, player, DGroupCreateEvent.Cause.COMMAND);
Bukkit.getPluginManager().callEvent(event);