FAudit Slots & Materials Configurable

Fixed IllegalPluginAccessException onDisable
This commit is contained in:
Driftay
2019-12-30 23:56:59 -05:00
parent fad866cf33
commit 016c82fa85
7 changed files with 51 additions and 49 deletions

View File

@@ -57,7 +57,7 @@ public class FAuditMenu extends GUIMenu {
lore.add("");
if (logsLeft > 0) lore.add(CC.Yellow + "Left-Click " + CC.Gray + "to view more logs");
lore.add(CC.Yellow + "Right-Click " + CC.Gray + "to toggle timestamps");
setItem(index++, (new ClickableItemStack((new ItemBuilder(type.getDisplayMaterial())).name(CC.GreenB + type.getDisplayName()).lore(lore).build())).setClickCallback((click) -> {
setItem(index++, (new ClickableItemStack((new ItemBuilder(type.getMaterial())).name(CC.GreenB + type.getDisplayName()).lore(lore).build())).setClickCallback((click) -> {
click.setCancelled(true);
if (click.getClick() == ClickType.RIGHT) {
showTimestamps = !showTimestamps;