[trunk] fix class not found

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1573 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
ementalo 2011-06-02 22:01:57 +00:00
parent 3e359b5b48
commit 3dab3d8df8

View file

@ -25,6 +25,7 @@ import org.bukkit.util.Vector;
public class OfflinePlayer implements Player public class OfflinePlayer implements Player
{ {
private final String name; private final String name;
final IEssentials ess = Essentials.getStatic();
private Location location = new Location(null, 0, 0, 0, 0, 0); private Location location = new Location(null, 0, 0, 0, 0, 0);
private World world = null; private World world = null;
@ -136,7 +137,7 @@ public class OfflinePlayer implements Player
{ {
return world; return world;
} }
public void setLocation(Location loc) public void setLocation(Location loc)
{ {
location = loc; location = loc;
@ -253,7 +254,7 @@ public class OfflinePlayer implements Player
public Server getServer() public Server getServer()
{ {
return Essentials.getStatic() == null ? null : Essentials.getStatic().getServer(); return ess == null ? null : ess.getServer();
} }
public Vector getMomentum() public Vector getMomentum()
@ -291,7 +292,8 @@ public class OfflinePlayer implements Player
throw new UnsupportedOperationException(Util.i18n("notSupportedYet")); throw new UnsupportedOperationException(Util.i18n("notSupportedYet"));
} }
public void sendRawMessage(String string) { public void sendRawMessage(String string)
{
throw new UnsupportedOperationException(Util.i18n("notSupportedYet")); throw new UnsupportedOperationException(Util.i18n("notSupportedYet"));
} }