Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
8ed5841160 | |||
f1877e38a4 | |||
2837e8f471 | |||
e3da66b37e | |||
b034787328 | |||
349a3d2c5f | |||
5b069aca76 | |||
4d9ba74c42 | |||
ed05bf48ef | |||
9a124598ee | |||
f71e6e2fa1 | |||
2d04fe1b77 |
27
plugin.yml
27
plugin.yml
@ -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
55
src/net/ardakaz/griefalert/GriefAlertEvent.java
Executable file → Normal 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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user