Upload files to "src/net/ardakaz/griefalert"
should fix armor stands and item frames
This commit is contained in:
parent
ed05bf48ef
commit
4d9ba74c42
File diff suppressed because it is too large
Load Diff
@ -1,34 +1,34 @@
|
|||||||
// "API" for other plugins
|
// "API" for other plugins
|
||||||
|
|
||||||
package net.ardakaz.griefalert;
|
package net.ardakaz.griefalert;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.event.Event;
|
import org.bukkit.event.Event;
|
||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
|
|
||||||
public class GriefAlertEvent extends Event {
|
public class GriefAlertEvent extends Event {
|
||||||
private static final HandlerList HANDLERS = new HandlerList();
|
private static final HandlerList HANDLERS = new HandlerList();
|
||||||
private String alert = "";
|
private String alert = "";
|
||||||
|
|
||||||
public GriefAlertEvent(String alert) {
|
public GriefAlertEvent(String alert) {
|
||||||
this.alert = alert;
|
this.alert = alert;
|
||||||
|
|
||||||
// Discord hook for 1.21.5
|
// Discord hook for 1.21.5
|
||||||
if (Bukkit.getServer().getPluginManager().getPlugin("DiscordSRV") != null) {
|
if (Bukkit.getServer().getPluginManager().getPlugin("DiscordSRV") != null) {
|
||||||
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "discord broadcast #grief-alerts " + this.getAlert());
|
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "discord broadcast #grief-alerts " + this.getAlert());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static HandlerList getHandlerList() {
|
public static HandlerList getHandlerList() {
|
||||||
return HANDLERS;
|
return HANDLERS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HandlerList getHandlers() {
|
public HandlerList getHandlers() {
|
||||||
return HANDLERS;
|
return HANDLERS;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAlert() {
|
public String getAlert() {
|
||||||
return this.alert;
|
return this.alert;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user