summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2014-06-25 19:03:31 +0100
committerKHobbits <rob@khobbits.co.uk>2014-06-25 19:03:31 +0100
commitf6b2524a8c1151948d4a24b27dfae9872a449ec1 (patch)
tree25fdc8cd65bdb259dc731af3383a9b858107539a /EssentialsSpawn
parent84a03630797dd808df9cf3993e86a915bb6f125c (diff)
downloadEssentials-f6b2524a8c1151948d4a24b27dfae9872a449ec1.tar
Essentials-f6b2524a8c1151948d4a24b27dfae9872a449ec1.tar.gz
Essentials-f6b2524a8c1151948d4a24b27dfae9872a449ec1.tar.lz
Essentials-f6b2524a8c1151948d4a24b27dfae9872a449ec1.tar.xz
Essentials-f6b2524a8c1151948d4a24b27dfae9872a449ec1.zip
Kit cleanup and refactor.
Diffstat (limited to 'EssentialsSpawn')
-rw-r--r--EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
index 67ef6c28e..d637014eb 100644
--- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
+++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
@@ -122,9 +122,8 @@ public class EssentialsSpawnPlayerListener implements Listener
{
try
{
- final Map<String, Object> kit = ess.getSettings().getKit(kitName.toLowerCase(Locale.ENGLISH));
- final List<String> items = Kit.getItems(ess, user, kitName, kit);
- Kit.expandItems(ess, user, items);
+ final Kit kit = new Kit(kitName.toLowerCase(Locale.ENGLISH), ess);
+ kit.expandItems(user);
}
catch (Exception ex)
{