From 3c419b32177806bcdcffad73bdbb9b84eaadf4e6 Mon Sep 17 00:00:00 2001 From: Keir Date: Thu, 12 Nov 2015 00:24:31 +0000 Subject: [PATCH] Small fixes from last commit. --- .../mineplex/core/report/ui/ReportResultButton.java | 3 ++- .../src/mineplex/core/report/ui/ReportResultPage.java | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/report/ui/ReportResultButton.java b/Plugins/Mineplex.Core/src/mineplex/core/report/ui/ReportResultButton.java index 6d9917d91..4a28efe14 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/report/ui/ReportResultButton.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/report/ui/ReportResultButton.java @@ -28,7 +28,7 @@ public class ReportResultButton extends SimpleGuiItem @Override public void setup() { - // replace all occurances of "%suspect%" in the lore with the actual name + // replace all occurrences of "%suspect%" in the lore with the actual name ItemMeta itemMeta = getItemMeta(); List lore = itemMeta.getLore(); @@ -37,6 +37,7 @@ public class ReportResultButton extends SimpleGuiItem lore.set(i, lore.get(i).replace("%suspect%", _reportResultPage.getPlayer().getName())); } + itemMeta.setLore(lore); setItemMeta(itemMeta); } diff --git a/Plugins/Mineplex.Core/src/mineplex/core/report/ui/ReportResultPage.java b/Plugins/Mineplex.Core/src/mineplex/core/report/ui/ReportResultPage.java index 2f0c264cf..176445f96 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/report/ui/ReportResultPage.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/report/ui/ReportResultPage.java @@ -21,21 +21,21 @@ import mineplex.core.report.ReportResult; public class ReportResultPage extends SimpleGui { private static final ItemStack ITEM_ACCEPT = new ItemBuilder(Material.WOOL) - .setColor(Color.GREEN) + .setData(DyeColor.GREEN.getData()) .setTitle(C.cGreen + "Accept Report") .addLore("%suspect% is cheating without a doubt.") .build(); private static final ItemStack ITEM_DENY = new ItemBuilder(Material.WOOL) - .setColor(Color.YELLOW) + .setData(DyeColor.YELLOW.getData()) .setTitle(C.cYellow + "Deny Report") .addLore("There is not enough evidence against %suspect%.") .build(); private static final ItemStack ITEM_ABUSE = new ItemBuilder(Material.WOOL) - .setColor(Color.RED) - .setTitle(C.cGreen + "Accept Report") - .addLore("%suspect% is cheating without a doubt.") + .setData(DyeColor.RED.getData()) + .setTitle(C.cRed + "Flag Abuse") + .addLore("The reporter(s) were abusing the report system.") .build(); private ReportManager _reportManager;