mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 15:08:18 +01:00
[trunk] Home: Catch world not loaded/unknown in server.
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1171 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
471e20473b
commit
d23e7a2821
@ -504,6 +504,9 @@ public class User extends PlayerExtension implements Comparable<User>, IReplyTo
|
||||
if (vals.size() > 5 && getServer() != null) {
|
||||
world = getServer().getWorld((String)vals.get(5));
|
||||
}
|
||||
if (world == null) {
|
||||
throw new Exception();
|
||||
}
|
||||
return new Location(
|
||||
world,
|
||||
((Number)vals.get(0)).doubleValue(),
|
||||
@ -521,6 +524,9 @@ public class User extends PlayerExtension implements Comparable<User>, IReplyTo
|
||||
if (vals.size() > 5) {
|
||||
world = getServer().getWorld((String)vals.get(5));
|
||||
}
|
||||
if (world == null) {
|
||||
throw new Exception();
|
||||
}
|
||||
return new Location(world,
|
||||
((Number)vals.get(0)).doubleValue(),
|
||||
((Number)vals.get(1)).doubleValue(),
|
||||
|
Loading…
Reference in New Issue
Block a user