diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-01-04 17:51:14 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-01-04 17:51:14 +0000 |
commit | de0a4194763173ef7e624f3910fa424ffeefadfc (patch) | |
tree | 75c8288e6cf23ebe95baa8e2ce9b65750548b5c3 /EssentialsSigns | |
parent | 6dd73f524773e20636eef1a1fc8b964ab4fa4e04 (diff) | |
download | Essentials-de0a4194763173ef7e624f3910fa424ffeefadfc.tar Essentials-de0a4194763173ef7e624f3910fa424ffeefadfc.tar.gz Essentials-de0a4194763173ef7e624f3910fa424ffeefadfc.tar.lz Essentials-de0a4194763173ef7e624f3910fa424ffeefadfc.tar.xz Essentials-de0a4194763173ef7e624f3910fa424ffeefadfc.zip |
Cleaning up item spawning and kits.
Diffstat (limited to 'EssentialsSigns')
-rw-r--r-- | EssentialsSigns/src/com/earth2me/essentials/signs/SignKit.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/EssentialsSigns/src/com/earth2me/essentials/signs/SignKit.java b/EssentialsSigns/src/com/earth2me/essentials/signs/SignKit.java index 16f314d5f..4e7aaf793 100644 --- a/EssentialsSigns/src/com/earth2me/essentials/signs/SignKit.java +++ b/EssentialsSigns/src/com/earth2me/essentials/signs/SignKit.java @@ -3,6 +3,7 @@ package com.earth2me.essentials.signs; import com.earth2me.essentials.*; import com.earth2me.essentials.api.IEssentials; import com.earth2me.essentials.api.IUser; +import com.earth2me.essentials.settings.Kit; import java.util.List; import java.util.Locale; import java.util.Map; @@ -31,7 +32,7 @@ public class SignKit extends EssentialsSign { try { - ess.getSettings().getKit(kitName); + ess.getKits().getKit(kitName); } catch (Exception ex) { @@ -58,10 +59,9 @@ public class SignKit extends EssentialsSign charge.isAffordableFor(player); try { - final Object kit = ess.getSettings().getKit(kitName); - final Map<String, Object> els = (Map<String, Object>)kit; - final List<String> items = Kit.getItems(player, els); - Kit.expandItems(ess, player, items); + final Kit kit = ess.getKits().getKit(kitName); + ess.getKits().sendKit(player, kit); + charge.charge(player); } catch (Exception ex) |