Fix portal bug

This commit is contained in:
Daniel Saukel 2015-07-28 23:17:39 +02:00
parent c8434dec64
commit 539bd42f40
3 changed files with 16 additions and 2 deletions

View File

@ -85,10 +85,23 @@ public class DPortal {
if (dgroup.getGworld() == null) {
dgroup.setGworld(GameWorld.load(DGroup.get(player).getDungeonname()));
}
p.msg(player, p.language.get("Error_DungeonNotExist", DGroup.get(player).getDungeonname()));
if (dgroup.getGworld() != null) {
if (dgroup.getGworld().locLobby == null) {
new DPlayer(player, dgroup.getGworld().world, dgroup.getGworld().world.getSpawnLocation(), false);
} else {
new DPlayer(player, dgroup.getGworld().world, dgroup.getGworld().locLobby, false);
}
} else {
p.msg(player, p.language.get("Error_DungeonNotExist", DGroup.get(player).getDungeonname()));
}
} else {
p.msg(player, p.language.get("Error_NotInGroup"));
}
}
public void delete() {

View File

@ -16,6 +16,7 @@ public class SIGNSoundMsg extends DSign {
// Variables
private boolean initialized;
@SuppressWarnings("unused")
private String msg;
private CopyOnWriteArrayList<Player> done = new CopyOnWriteArrayList<Player>();

View File

@ -1,6 +1,6 @@
name: DungeonsXL
main: com.dre.dungeonsxl.P
version: 0.9.4-SNAPSHOT
version: 0.9.4
author: Frank Baumann
authors: [Frank Baumann, Milan Albrecht, Tobias Schmitz, Daniel Saukel]
website: http://www.dre2n.ml