Removed the null from "Same behavior continues."

This commit is contained in:
Ardakaz 2025-06-27 09:35:17 +00:00
parent f1877e38a4
commit 8ed5841160

View File

@ -609,7 +609,7 @@ public class GriefAlert extends JavaPlugin implements Listener, TabCompleter {
}
// Send an event for external hooks
GriefAlertEvent griefalert_event;
if (MAP_LINK != null && !MAP_LINK.isEmpty()) {
if (MAP_LINK != null && !MAP_LINK.isEmpty() && mapLink != null) {
griefalert_event = new GriefAlertEvent(message + " (" + mapLink + ")");
} else {
griefalert_event = new GriefAlertEvent(message);