Upload files to "src/net/ardakaz/griefalert"
added copper block waxing and unwaxing and dusting off logic, (might need a little extra rework because changing its state is considered "replacing" which sorta breaks the logic) added log stripping detection (same issue as copper blocks)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,29 +1,28 @@
|
|||||||
// "API" for other plugins
|
// "API" for other plugins
|
||||||
|
|
||||||
package net.ardakaz.griefalert;
|
package net.ardakaz.griefalert;
|
||||||
|
|
||||||
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;
|
}
|
||||||
}
|
|
||||||
|
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;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user