From 1f6b1f4a2cf1d1a2c5c27656d823a3156ec03d62 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sun, 20 Nov 2011 14:30:54 +0100 Subject: [PATCH] Added new methods to Fake classes --- Essentials/src/com/earth2me/essentials/OfflinePlayer.java | 7 +++++++ Essentials/test/com/earth2me/essentials/FakeServer.java | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/OfflinePlayer.java b/Essentials/src/com/earth2me/essentials/OfflinePlayer.java index 229406273..d5706e136 100644 --- a/Essentials/src/com/earth2me/essentials/OfflinePlayer.java +++ b/Essentials/src/com/earth2me/essentials/OfflinePlayer.java @@ -3,6 +3,7 @@ package com.earth2me.essentials; import java.net.InetSocketAddress; import java.util.HashSet; import java.util.List; +import java.util.Map; import java.util.Set; import java.util.UUID; import lombok.Delegate; @@ -777,4 +778,10 @@ public class OfflinePlayer implements Player { throw new UnsupportedOperationException("Not supported yet."); } + + @Override + public int getMaxHealth() + { + throw new UnsupportedOperationException("Not supported yet."); + } } diff --git a/Essentials/test/com/earth2me/essentials/FakeServer.java b/Essentials/test/com/earth2me/essentials/FakeServer.java index 7f3fb9bf2..34e60bed4 100644 --- a/Essentials/test/com/earth2me/essentials/FakeServer.java +++ b/Essentials/test/com/earth2me/essentials/FakeServer.java @@ -580,4 +580,10 @@ public class FakeServer implements Server { throw new UnsupportedOperationException("Not supported yet."); } + + @Override + public String getBukkitVersion() + { + throw new UnsupportedOperationException("Not supported yet."); + } }