1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-11 00:55:10 +02:00

Kit cleanup and refactor.

This commit is contained in:
KHobbits
2014-06-25 19:03:31 +01:00
parent 835b9b2009
commit f7f2aaccd7
4 changed files with 108 additions and 63 deletions

View File

@@ -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)
{