mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-12-01 06:53:26 +01:00
Fix portal bug
This commit is contained in:
parent
c8434dec64
commit
539bd42f40
@ -85,10 +85,23 @@ public class DPortal {
|
||||
if (dgroup.getGworld() == null) {
|
||||
dgroup.setGworld(GameWorld.load(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() {
|
||||
|
@ -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>();
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user