Small fixes from last commit.

This commit is contained in:
Keir 2015-11-12 00:24:31 +00:00
parent 6295a8ce08
commit 3c419b3217
2 changed files with 7 additions and 6 deletions

View File

@ -28,7 +28,7 @@ public class ReportResultButton extends SimpleGuiItem
@Override @Override
public void setup() 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(); ItemMeta itemMeta = getItemMeta();
List<String> lore = itemMeta.getLore(); List<String> lore = itemMeta.getLore();
@ -37,6 +37,7 @@ public class ReportResultButton extends SimpleGuiItem
lore.set(i, lore.get(i).replace("%suspect%", _reportResultPage.getPlayer().getName())); lore.set(i, lore.get(i).replace("%suspect%", _reportResultPage.getPlayer().getName()));
} }
itemMeta.setLore(lore);
setItemMeta(itemMeta); setItemMeta(itemMeta);
} }

View File

@ -21,21 +21,21 @@ import mineplex.core.report.ReportResult;
public class ReportResultPage extends SimpleGui public class ReportResultPage extends SimpleGui
{ {
private static final ItemStack ITEM_ACCEPT = new ItemBuilder(Material.WOOL) private static final ItemStack ITEM_ACCEPT = new ItemBuilder(Material.WOOL)
.setColor(Color.GREEN) .setData(DyeColor.GREEN.getData())
.setTitle(C.cGreen + "Accept Report") .setTitle(C.cGreen + "Accept Report")
.addLore("%suspect% is cheating without a doubt.") .addLore("%suspect% is cheating without a doubt.")
.build(); .build();
private static final ItemStack ITEM_DENY = new ItemBuilder(Material.WOOL) private static final ItemStack ITEM_DENY = new ItemBuilder(Material.WOOL)
.setColor(Color.YELLOW) .setData(DyeColor.YELLOW.getData())
.setTitle(C.cYellow + "Deny Report") .setTitle(C.cYellow + "Deny Report")
.addLore("There is not enough evidence against %suspect%.") .addLore("There is not enough evidence against %suspect%.")
.build(); .build();
private static final ItemStack ITEM_ABUSE = new ItemBuilder(Material.WOOL) private static final ItemStack ITEM_ABUSE = new ItemBuilder(Material.WOOL)
.setColor(Color.RED) .setData(DyeColor.RED.getData())
.setTitle(C.cGreen + "Accept Report") .setTitle(C.cRed + "Flag Abuse")
.addLore("%suspect% is cheating without a doubt.") .addLore("The reporter(s) were abusing the report system.")
.build(); .build();
private ReportManager _reportManager; private ReportManager _reportManager;