mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
add .java
*cough cough* @ZeroEpoch1969 check PR's before merging them, also the formatting is off
This commit is contained in:
parent
bdae2b7b54
commit
6e7297e48f
@ -18,15 +18,17 @@ public class Command_cookie extends FreedomCommand
|
||||
{
|
||||
final StringBuilder output = new StringBuilder();
|
||||
|
||||
for (final String word : COOKIE_LYRICS.split(" ")) {
|
||||
for (final String word : COOKIE_LYRICS.split(" "))
|
||||
{
|
||||
output.append(FUtil.randomChatColor()).append(word).append(" ");
|
||||
}
|
||||
ItemStack heldItem = new ItemStack(Material.COOKIE, 1);
|
||||
|
||||
for (final Player player : this.server.getOnlinePlayers())
|
||||
for (final Player player : server.getOnlinePlayers())
|
||||
{
|
||||
final int firstEmpty = player.getInventory().firstEmpty();
|
||||
if (firstEmpty >= 0) {
|
||||
if (firstEmpty >= 0)
|
||||
{
|
||||
player.getInventory().setItem(firstEmpty, heldItem);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user