mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Disallow /dxl test while in a Group
This commit is contained in:
parent
ff69271216
commit
02862b4336
@ -29,6 +29,7 @@ public class CMDTest extends DCommand {
|
||||
dungeonname = args[1];
|
||||
|
||||
if (EditWorld.exist(dungeonname)) {
|
||||
if (DGroup.get(player) == null) {
|
||||
DGroup dgroup = new DGroup(player, dungeonname);
|
||||
if (dgroup != null) {
|
||||
if (dgroup.getGworld() == null) {
|
||||
@ -44,6 +45,9 @@ public class CMDTest extends DCommand {
|
||||
}
|
||||
newDPlayer.isinTestMode = true;
|
||||
}
|
||||
} else {
|
||||
p.msg(player, p.language.get("Error_LeaveGroup"));
|
||||
}
|
||||
} else {
|
||||
p.msg(player, p.language.get("Error_DungeonNotExist", dungeonname));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user