Fixed issue with giving "all" a kit key.

This commit is contained in:
Brianna 2019-10-11 16:28:05 -04:00
parent fff68bbf53
commit 63124cce8f
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class CommandKey extends AbstractCommand {
return ReturnType.SUCCESS;
}
for (Player pl : instance.getServer().getOnlinePlayers()) {
PlayerUtils.giveItem(playerTo, key.getKeyItem(kit, amt));
PlayerUtils.giveItem(pl, key.getKeyItem(kit, amt));
instance.getLocale().getMessage("event.key.given")
.processPlaceholder("kit", kit == null ? "Any" : kit.getShowableName())
.sendPrefixedMessage(pl);