mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-14 10:34:41 +02: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:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user