mirror of
https://github.com/songoda/UltimateModeration.git
synced 2024-11-22 10:15:55 +01:00
I fixed an invalid null check causing templates not to work correctly.
This commit is contained in:
parent
5047e79ccf
commit
4bbd7aaa79
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user