mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-12-01 06:53:26 +01:00
/dxl play bugfix
This commit is contained in:
parent
de5cfee76a
commit
b3eac538d5
@ -69,11 +69,10 @@ public class PlayCommand extends BRCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DGroup dGroup = DGroup.getByPlayer(player);
|
DGroup dGroup = DGroup.getByPlayer(player);
|
||||||
if (dGroup.isPlaying()) {
|
if (dGroup != null && dGroup.isPlaying()) {
|
||||||
MessageUtil.sendMessage(player, DMessages.ERROR_LEAVE_GROUP.getMessage());
|
MessageUtil.sendMessage(player, DMessages.ERROR_LEAVE_GROUP.getMessage());
|
||||||
return;
|
return;
|
||||||
}
|
} else if (dGroup == null) {
|
||||||
if (dGroup == null) {
|
|
||||||
dGroup = new DGroup(player, dungeon);
|
dGroup = new DGroup(player, dungeon);
|
||||||
DGroupCreateEvent event = new DGroupCreateEvent(dGroup, player, DGroupCreateEvent.Cause.COMMAND);
|
DGroupCreateEvent event = new DGroupCreateEvent(dGroup, player, DGroupCreateEvent.Cause.COMMAND);
|
||||||
Bukkit.getPluginManager().callEvent(event);
|
Bukkit.getPluginManager().callEvent(event);
|
||||||
|
Loading…
Reference in New Issue
Block a user