diff options
author | KHobbits <rob@khobbits.co.uk> | 2014-06-25 19:03:31 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2014-06-25 19:03:31 +0100 |
commit | dbceccaa3eb7727deaf67835af5c85779745a3c5 (patch) | |
tree | b7ec45a708a363c44992ec2973521f5d27cf52dd /EssentialsSpawn/src | |
parent | 6c7ba6a76fbcebb692e7d238a70404eec31f19d0 (diff) | |
download | Essentials-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.java | 5 |
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) { |