diff options
author | ementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-21 15:40:06 +0000 |
---|---|---|
committer | ementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-05-21 15:40:06 +0000 |
commit | 73563e72e829deeed077da5e86076a1c0cfd18b9 (patch) | |
tree | 11f6002be61b2a5c2195e8063fff6320e3b77161 | |
parent | b518a04795b6117e3b8a9de03b201878758c38f0 (diff) | |
download | Essentials-73563e72e829deeed077da5e86076a1c0cfd18b9.tar Essentials-73563e72e829deeed077da5e86076a1c0cfd18b9.tar.gz Essentials-73563e72e829deeed077da5e86076a1c0cfd18b9.tar.lz Essentials-73563e72e829deeed077da5e86076a1c0cfd18b9.tar.xz Essentials-73563e72e829deeed077da5e86076a1c0cfd18b9.zip |
[trunk] Recommended build #798
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1506 e251c2fe-e539-e718-e476-b85c1f46cddb
3 files changed, 24 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 9af6e10de..ea29711f4 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -43,7 +43,7 @@ import org.bukkit.plugin.java.*; public class Essentials extends JavaPlugin { public static final String AUTHORS = "Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans and Xeology"; - public static final int minBukkitBuildVersion = 766; + public static final int minBukkitBuildVersion = 798; private static final Logger logger = Logger.getLogger("Minecraft"); private Settings settings; private EssentialsPlayerListener playerListener; diff --git a/Essentials/src/com/earth2me/essentials/OfflinePlayer.java b/Essentials/src/com/earth2me/essentials/OfflinePlayer.java index ab513d87b..28efab0ed 100644 --- a/Essentials/src/com/earth2me/essentials/OfflinePlayer.java +++ b/Essentials/src/com/earth2me/essentials/OfflinePlayer.java @@ -16,6 +16,7 @@ import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.entity.Snowball; import org.bukkit.entity.Vehicle; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.PlayerInventory; import org.bukkit.util.Vector; @@ -448,4 +449,14 @@ public class OfflinePlayer implements Player { throw new UnsupportedOperationException(Util.i18n("notSupportedYet")); } + + public void setLastDamageCause(EntityDamageEvent ede) + { + throw new UnsupportedOperationException(Util.i18n("notSupportedYet")); + } + + public EntityDamageEvent getLastDamageCause() + { + throw new UnsupportedOperationException(Util.i18n("notSupportedYet")); + } } diff --git a/Essentials/src/com/earth2me/essentials/PlayerWrapper.java b/Essentials/src/com/earth2me/essentials/PlayerWrapper.java index 87a842fcd..9d1b64f88 100644 --- a/Essentials/src/com/earth2me/essentials/PlayerWrapper.java +++ b/Essentials/src/com/earth2me/essentials/PlayerWrapper.java @@ -5,6 +5,7 @@ import java.util.*; import org.bukkit.*; import org.bukkit.block.Block; import org.bukkit.entity.*; +import org.bukkit.event.entity.EntityDamageEvent; import org.bukkit.inventory.*; import org.bukkit.util.Vector; @@ -503,4 +504,15 @@ public class PlayerWrapper implements Player { base.sendBlockChange(lctn, i, b); } + + public void setLastDamageCause(EntityDamageEvent ede) + { + base.setLastDamageCause(ede); + + } + + public EntityDamageEvent getLastDamageCause() + { + return base.getLastDamageCause(); + } } |