diff --git a/Essentials/src/com/earth2me/essentials/FakeWorld.java b/Essentials/src/com/earth2me/essentials/FakeWorld.java index befe9db8b..30ef75639 100644 --- a/Essentials/src/com/earth2me/essentials/FakeWorld.java +++ b/Essentials/src/com/earth2me/essentials/FakeWorld.java @@ -3,6 +3,7 @@ package com.earth2me.essentials; import java.util.List; import org.bukkit.BlockChangeDelegate; import org.bukkit.Chunk; +import org.bukkit.ChunkSnapshot; import org.bukkit.Effect; import org.bukkit.Location; import org.bukkit.TreeType; @@ -355,5 +356,40 @@ public class FakeWorld implements World { throw new UnsupportedOperationException("Not supported yet."); } + + public boolean createExplosion(double d, double d1, double d2, float f, boolean bln) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public boolean createExplosion(Location lctn, float f, boolean bln) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public T spawn(Location lctn, Class type) throws IllegalArgumentException + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public ChunkSnapshot getEmptyChunkSnapshot(int i, int i1, boolean bln, boolean bln1) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setSpawnFlags(boolean bln, boolean bln1) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public boolean getAllowAnimals() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public boolean getAllowMonsters() + { + throw new UnsupportedOperationException("Not supported yet."); + } } diff --git a/Essentials/src/com/earth2me/essentials/OfflinePlayer.java b/Essentials/src/com/earth2me/essentials/OfflinePlayer.java index 29f5de53c..56a8a00a2 100644 --- a/Essentials/src/com/earth2me/essentials/OfflinePlayer.java +++ b/Essentials/src/com/earth2me/essentials/OfflinePlayer.java @@ -6,8 +6,10 @@ import java.util.List; import java.util.UUID; import org.bukkit.Achievement; import org.bukkit.Effect; +import org.bukkit.Instrument; import org.bukkit.Location; import org.bukkit.Material; +import org.bukkit.Note; import org.bukkit.Server; import org.bukkit.Statistic; import org.bukkit.World; @@ -477,4 +479,34 @@ public class OfflinePlayer implements Player { return uniqueId; } + + public void playNote(Location lctn, Instrument i, Note note) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setPlayerTime(long l, boolean bln) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public long getPlayerTime() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public long getPlayerTimeOffset() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public boolean isPlayerTimeRelative() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void resetPlayerTime() + { + 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 a9666f64b..99ade90ce 100644 --- a/Essentials/src/com/earth2me/essentials/PlayerWrapper.java +++ b/Essentials/src/com/earth2me/essentials/PlayerWrapper.java @@ -530,4 +530,34 @@ public class PlayerWrapper implements Player { return base.getUniqueId(); } + + public void playNote(Location lctn, Instrument i, Note note) + { + base.playNote(lctn, i, note); + } + + public void setPlayerTime(long l, boolean bln) + { + base.setPlayerTime(l, bln); + } + + public long getPlayerTime() + { + return base.getPlayerTime(); + } + + public long getPlayerTimeOffset() + { + return base.getPlayerTimeOffset(); + } + + public boolean isPlayerTimeRelative() + { + return base.isPlayerTimeRelative(); + } + + public void resetPlayerTime() + { + base.resetPlayerTime(); + } } diff --git a/Essentials/test/com/earth2me/essentials/FakeServer.java b/Essentials/test/com/earth2me/essentials/FakeServer.java index 07483fed7..4cabbb9f8 100644 --- a/Essentials/test/com/earth2me/essentials/FakeServer.java +++ b/Essentials/test/com/earth2me/essentials/FakeServer.java @@ -3,6 +3,7 @@ package com.earth2me.essentials; import com.avaje.ebean.config.ServerConfig; import java.util.ArrayList; import java.util.List; +import java.util.Map; import java.util.logging.Logger; import org.bukkit.Location; import org.bukkit.Server; @@ -218,4 +219,24 @@ public class FakeServer implements Server { throw new UnsupportedOperationException("Not supported yet."); } + + public Map getCommandAliases() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public int getSpawnRadius() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setSpawnRadius(int i) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public boolean getOnlineMode() + { + throw new UnsupportedOperationException("Not supported yet."); + } }