From 3a0b69e7b05575811827c3cc96d49948ed18a9ed Mon Sep 17 00:00:00 2001 From: Zenexer Date: Sat, 23 Apr 2011 00:30:59 +0000 Subject: [PATCH] CB 711 git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1265 e251c2fe-e539-e718-e476-b85c1f46cddb --- .../earth2me/essentials/OfflinePlayer.java | 28 +++++++++++ .../earth2me/essentials/PlayerWrapper.java | 49 ++++++++++++++----- 2 files changed, 65 insertions(+), 12 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/OfflinePlayer.java b/Essentials/src/com/earth2me/essentials/OfflinePlayer.java index b76ac3994..426a057a3 100644 --- a/Essentials/src/com/earth2me/essentials/OfflinePlayer.java +++ b/Essentials/src/com/earth2me/essentials/OfflinePlayer.java @@ -3,8 +3,11 @@ package com.earth2me.essentials; import java.net.InetSocketAddress; import java.util.HashSet; import java.util.List; +import org.bukkit.Achievement; import org.bukkit.Location; +import org.bukkit.Material; import org.bukkit.Server; +import org.bukkit.Statistic; import org.bukkit.World; import org.bukkit.block.Block; import org.bukkit.entity.Arrow; @@ -398,4 +401,29 @@ public class OfflinePlayer implements Player { throw new UnsupportedOperationException("Not supported yet."); } + + public void awardAchievement(Achievement a) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void incrementStatistic(Statistic ststc) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void incrementStatistic(Statistic ststc, int i) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void incrementStatistic(Statistic ststc, Material mtrl) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void incrementStatistic(Statistic ststc, Material mtrl, int i) + { + throw new UnsupportedOperationException("Not supported yet."); + } } diff --git a/Essentials/src/com/earth2me/essentials/PlayerWrapper.java b/Essentials/src/com/earth2me/essentials/PlayerWrapper.java index 94644e894..fa99fb883 100644 --- a/Essentials/src/com/earth2me/essentials/PlayerWrapper.java +++ b/Essentials/src/com/earth2me/essentials/PlayerWrapper.java @@ -404,63 +404,88 @@ public class PlayerWrapper implements Player @Deprecated public void teleportTo(Location lctn) { - throw new UnsupportedOperationException("Not supported yet."); + base.teleportTo(lctn); } @Override @Deprecated public void teleportTo(Entity entity) { - throw new UnsupportedOperationException("Not supported yet."); + base.teleportTo(entity); } public void saveData() { - throw new UnsupportedOperationException("Not supported yet."); + base.saveData(); } public void loadData() { - throw new UnsupportedOperationException("Not supported yet."); + base.loadData(); } public boolean isSleeping() { - throw new UnsupportedOperationException("Not supported yet."); + return base.isSleeping(); } public int getSleepTicks() { - throw new UnsupportedOperationException("Not supported yet."); + return base.getSleepTicks(); } public List getNearbyEntities(double d, double d1, double d2) { - throw new UnsupportedOperationException("Not supported yet."); + return base.getNearbyEntities(d, d1, d2); } public boolean isDead() { - throw new UnsupportedOperationException("Not supported yet."); + return base.isDead(); } public float getFallDistance() { - throw new UnsupportedOperationException("Not supported yet."); + return base.getFallDistance(); } public void setFallDistance(float f) { - throw new UnsupportedOperationException("Not supported yet."); + base.setFallDistance(f); } public void setSleepingIgnored(boolean bln) { - throw new UnsupportedOperationException("Not supported yet."); + base.setSleepingIgnored(bln); } public boolean isSleepingIgnored() { - throw new UnsupportedOperationException("Not supported yet."); + return base.isSleepingIgnored(); + } + + public void awardAchievement(Achievement a) + { + base.awardAchievement(a); + } + + public void incrementStatistic(Statistic ststc) + { + base.incrementStatistic(ststc); + } + + public void incrementStatistic(Statistic ststc, int i) + { + base.incrementStatistic(ststc, i); + } + + public void incrementStatistic(Statistic ststc, Material mtrl) + { + base.incrementStatistic(ststc, mtrl); + } + + public void incrementStatistic(Statistic ststc, Material mtrl, int i) + { + base.incrementStatistic(ststc, mtrl, i); } }