summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn/src
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
commitdbceccaa3eb7727deaf67835af5c85779745a3c5 (patch)
treeb7ec45a708a363c44992ec2973521f5d27cf52dd /EssentialsSpawn/src
parent6c7ba6a76fbcebb692e7d238a70404eec31f19d0 (diff)
downloadEssentials-dbceccaa3eb7727deaf67835af5c85779745a3c5.tar
Essentials-dbceccaa3eb7727deaf67835af5c85779745a3c5.tar.gz
Essentials-dbceccaa3eb7727deaf67835af5c85779745a3c5.tar.lz
Essentials-dbceccaa3eb7727deaf67835af5c85779745a3c5.tar.xz
Essentials-dbceccaa3eb7727deaf67835af5c85779745a3c5.zip
Kit cleanup and refactor.
Diffstat (limited to 'EssentialsSpawn/src')
-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)
{