Compare commits

...

12 Commits
0.3.2 ... main

3 changed files with 718 additions and 530 deletions

View File

@ -1,13 +1,14 @@
name: GriefAlert
main: net.ardakaz.griefalert.GriefAlert
version: 0.3
api-version: 1.21
depends: [CoreProtect]
description: A simple grief alert plugin using the CoreProtect API.
authors: [Ardakaz, kleedje30]
commands:
griefalert:
description: GriefAlert staff commands
usage: /griefalert <ignore|unignore|check>
permission: griefalert.staff
permission-message: You do not have permission to use this command.
name: GriefAlert
main: net.ardakaz.griefalert.GriefAlert
version: 0.4
api-version: 1.21
depends: [CoreProtect]
softdepend: [DiscordSRV]
description: A simple grief alert plugin using the CoreProtect API.
authors: [Ardakaz, kleedje30]
commands:
griefalert:
description: GriefAlert staff commands
usage: /griefalert <ignore|unignore|check>
permission: griefalert.staff
permission-message: You do not have permission to use this command.

File diff suppressed because it is too large Load Diff

55
src/net/ardakaz/griefalert/GriefAlertEvent.java Executable file → Normal file
View File

@ -1,28 +1,29 @@
// "API" for other plugins
package net.ardakaz.griefalert;
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;
}
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;
}
public static HandlerList getHandlerList() {
return HANDLERS;
}
@Override
public HandlerList getHandlers() {
return HANDLERS;
}
public String getAlert() {
return this.alert;
}
}