I fixed an invalid null check causing templates not to work correctly.

This commit is contained in:
Brianna 2020-08-11 15:29:51 -05:00
parent 5047e79ccf
commit 4bbd7aaa79

View File

@ -284,7 +284,7 @@ public class PunishGui extends Gui {
});
ItemStack item = GuiUtils.createButtonItem(CompatibleMaterial.PAPER,
template.getName() == null ? plugin.getLocale().getMessage("gui.general.templatename").getMessage() : template.getName());
template == null ? plugin.getLocale().getMessage("gui.general.templatename").getMessage() : template.getName());
gui.setInput(item);
guiManager.showGUI(player, gui);