From f6b2524a8c1151948d4a24b27dfae9872a449ec1 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Wed, 25 Jun 2014 19:03:31 +0100 Subject: Kit cleanup and refactor. --- .../com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'EssentialsSpawn') 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 kit = ess.getSettings().getKit(kitName.toLowerCase(Locale.ENGLISH)); - final List 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) { -- cgit v1.2.3