summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-06-02 22:01:57 +0000
committerementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-06-02 22:01:57 +0000
commit90963f75e2b37ba69df05ad0eccca403df0187a2 (patch)
tree292a10bb1090909ee962dd22ee3660460cab3f15
parentd89f126e0b961b2d82208ec312bd6937281f3be6 (diff)
downloadEssentials-90963f75e2b37ba69df05ad0eccca403df0187a2.tar
Essentials-90963f75e2b37ba69df05ad0eccca403df0187a2.tar.gz
Essentials-90963f75e2b37ba69df05ad0eccca403df0187a2.tar.lz
Essentials-90963f75e2b37ba69df05ad0eccca403df0187a2.tar.xz
Essentials-90963f75e2b37ba69df05ad0eccca403df0187a2.zip
[trunk] fix class not found
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1573 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r--Essentials/src/com/earth2me/essentials/OfflinePlayer.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/OfflinePlayer.java b/Essentials/src/com/earth2me/essentials/OfflinePlayer.java
index 28efab0ed..0c388e55b 100644
--- a/Essentials/src/com/earth2me/essentials/OfflinePlayer.java
+++ b/Essentials/src/com/earth2me/essentials/OfflinePlayer.java
@@ -25,6 +25,7 @@ import org.bukkit.util.Vector;
public class OfflinePlayer implements Player
{
private final String name;
+ final IEssentials ess = Essentials.getStatic();
private Location location = new Location(null, 0, 0, 0, 0, 0);
private World world = null;
@@ -136,7 +137,7 @@ public class OfflinePlayer implements Player
{
return world;
}
-
+
public void setLocation(Location loc)
{
location = loc;
@@ -253,7 +254,7 @@ public class OfflinePlayer implements Player
public Server getServer()
{
- return Essentials.getStatic() == null ? null : Essentials.getStatic().getServer();
+ return ess == null ? null : ess.getServer();
}
public Vector getMomentum()
@@ -291,7 +292,8 @@ public class OfflinePlayer implements Player
throw new UnsupportedOperationException(Util.i18n("notSupportedYet"));
}
- public void sendRawMessage(String string) {
+ public void sendRawMessage(String string)
+ {
throw new UnsupportedOperationException(Util.i18n("notSupportedYet"));
}