mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 02:05:41 +00:00
YThere
This commit is contained in:
parent
302b538a3a
commit
192b9ea9d9
@ -30,12 +30,13 @@ public class Command_cake extends TFM_Command
|
|||||||
output.append(ChatColor.COLOR_CHAR).append(color_code).append(word).append(" ");
|
output.append(ChatColor.COLOR_CHAR).append(color_code).append(word).append(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ItemStack heldItem = new ItemStack(Material.CAKE);
|
||||||
|
ItemMeta heldItemMeta = heldItem.getItemMeta();
|
||||||
|
heldItemMeta.setDisplayName((new StringBuilder()).append(ChatColor.WHITE).append("The ").append(ChatColor.BLACK).append("Lie").toString());
|
||||||
|
heldItem.setItemMeta(heldItemMeta);
|
||||||
|
|
||||||
for (Player player : server.getOnlinePlayers())
|
for (Player player : server.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
ItemStack heldItem = new ItemStack(Material.CAKE);
|
|
||||||
ItemMeta CM = heldItem.getItemMeta();
|
|
||||||
CM.setDisplayName((new StringBuilder()).append(ChatColor.WHITE).append("The ").append(ChatColor.BLACK).append("Lie").toString());
|
|
||||||
heldItem.setItemMeta(CM);
|
|
||||||
player.getInventory().setItem(player.getInventory().firstEmpty(), heldItem);
|
player.getInventory().setItem(player.getInventory().firstEmpty(), heldItem);
|
||||||
player.awardAchievement(Achievement.MINE_WOOD);
|
player.awardAchievement(Achievement.MINE_WOOD);
|
||||||
player.awardAchievement(Achievement.BUILD_WORKBENCH);
|
player.awardAchievement(Achievement.BUILD_WORKBENCH);
|
||||||
|
Loading…
Reference in New Issue
Block a user