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) {
|
if (dgroup.getGworld() == null) {
|
||||||
dgroup.setGworld(GameWorld.load(DGroup.get(player).getDungeonname()));
|
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()));
|
p.msg(player, p.language.get("Error_DungeonNotExist", DGroup.get(player).getDungeonname()));
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
p.msg(player, p.language.get("Error_NotInGroup"));
|
p.msg(player, p.language.get("Error_NotInGroup"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void delete() {
|
public void delete() {
|
||||||
|
@ -16,6 +16,7 @@ public class SIGNSoundMsg extends DSign {
|
|||||||
|
|
||||||
// Variables
|
// Variables
|
||||||
private boolean initialized;
|
private boolean initialized;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private String msg;
|
private String msg;
|
||||||
private CopyOnWriteArrayList<Player> done = new CopyOnWriteArrayList<Player>();
|
private CopyOnWriteArrayList<Player> done = new CopyOnWriteArrayList<Player>();
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: DungeonsXL
|
name: DungeonsXL
|
||||||
main: com.dre.dungeonsxl.P
|
main: com.dre.dungeonsxl.P
|
||||||
version: 0.9.4-SNAPSHOT
|
version: 0.9.4
|
||||||
author: Frank Baumann
|
author: Frank Baumann
|
||||||
authors: [Frank Baumann, Milan Albrecht, Tobias Schmitz, Daniel Saukel]
|
authors: [Frank Baumann, Milan Albrecht, Tobias Schmitz, Daniel Saukel]
|
||||||
website: http://www.dre2n.ml
|
website: http://www.dre2n.ml
|
||||||
|
Loading…
Reference in New Issue
Block a user