mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-06-28 18:20:31 +00:00
Adding starter/newbie kit to EssentialsSpawn
Optimization to EssentialsSpawn join event.
This commit is contained in:
parent
e55aa3cea7
commit
6a9027da6d
7 changed files with 45 additions and 13 deletions
|
@ -38,7 +38,7 @@ public class Commandkit extends EssentialsCommand
|
|||
{
|
||||
throw new Exception(_("noKitPermission", "essentials.kit." + kitName));
|
||||
}
|
||||
|
||||
|
||||
final List<String> items = Kit.getItems(user, kit);
|
||||
|
||||
Kit.checkTime(user, kitName, kit);
|
||||
|
@ -47,7 +47,7 @@ public class Commandkit extends EssentialsCommand
|
|||
charge.isAffordableFor(user);
|
||||
|
||||
Kit.expandItems(ess, user, items);
|
||||
|
||||
|
||||
charge.charge(user);
|
||||
user.sendMessage(_("kitGive", kitName));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue