Upload files to "src/net/ardakaz/griefalert"

should fix armor stands and item frames
This commit is contained in:
Kleedje30 2025-06-20 19:53:39 +00:00
parent ed05bf48ef
commit 4d9ba74c42
2 changed files with 651 additions and 523 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,34 +1,34 @@
// "API" for other plugins
package net.ardakaz.griefalert;
import org.bukkit.Bukkit;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class GriefAlertEvent extends Event {
private static final HandlerList HANDLERS = new HandlerList();
private String alert = "";
public GriefAlertEvent(String alert) {
this.alert = alert;
// Discord hook for 1.21.5
if (Bukkit.getServer().getPluginManager().getPlugin("DiscordSRV") != null) {
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "discord broadcast #grief-alerts " + this.getAlert());
}
}
public static HandlerList getHandlerList() {
return HANDLERS;
}
@Override
public HandlerList getHandlers() {
return HANDLERS;
}
public String getAlert() {
return this.alert;
}
// "API" for other plugins
package net.ardakaz.griefalert;
import org.bukkit.Bukkit;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class GriefAlertEvent extends Event {
private static final HandlerList HANDLERS = new HandlerList();
private String alert = "";
public GriefAlertEvent(String alert) {
this.alert = alert;
// Discord hook for 1.21.5
if (Bukkit.getServer().getPluginManager().getPlugin("DiscordSRV") != null) {
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "discord broadcast #grief-alerts " + this.getAlert());
}
}
public static HandlerList getHandlerList() {
return HANDLERS;
}
@Override
public HandlerList getHandlers() {
return HANDLERS;
}
public String getAlert() {
return this.alert;
}
}