mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-02-05 15:55:28 +01:00
Costants use UPPER_SNAKE_CASE. resolves #17
This commit is contained in:
parent
1504972e51
commit
3ada9d988b
@ -27,7 +27,7 @@ import org.bukkit.event.HandlerList;
|
|||||||
|
|
||||||
public class ExpansionUnregisterEvent extends Event {
|
public class ExpansionUnregisterEvent extends Event {
|
||||||
|
|
||||||
private static final HandlerList handlers = new HandlerList();
|
private static final HandlerList HANDLERS = new HandlerList();
|
||||||
private PlaceholderExpansion expansion;
|
private PlaceholderExpansion expansion;
|
||||||
|
|
||||||
public ExpansionUnregisterEvent(PlaceholderExpansion expansion) {
|
public ExpansionUnregisterEvent(PlaceholderExpansion expansion) {
|
||||||
@ -36,11 +36,11 @@ public class ExpansionUnregisterEvent extends Event {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HandlerList getHandlers() {
|
public HandlerList getHandlers() {
|
||||||
return handlers;
|
return HANDLERS;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static HandlerList getHandlerList() {
|
public static HandlerList getHandlerList() {
|
||||||
return handlers;
|
return HANDLERS;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PlaceholderExpansion getExpansion() {
|
public PlaceholderExpansion getExpansion() {
|
||||||
|
@ -27,7 +27,7 @@ import org.bukkit.event.HandlerList;
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
public class PlaceholderHookUnloadEvent extends Event {
|
public class PlaceholderHookUnloadEvent extends Event {
|
||||||
|
|
||||||
private static final HandlerList handlers = new HandlerList();
|
private static final HandlerList HANDLERS = new HandlerList();
|
||||||
private String plugin;
|
private String plugin;
|
||||||
private PlaceholderHook hook;
|
private PlaceholderHook hook;
|
||||||
|
|
||||||
@ -38,11 +38,11 @@ public class PlaceholderHookUnloadEvent extends Event {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HandlerList getHandlers() {
|
public HandlerList getHandlers() {
|
||||||
return handlers;
|
return HANDLERS;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static HandlerList getHandlerList() {
|
public static HandlerList getHandlerList() {
|
||||||
return handlers;
|
return HANDLERS;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getHookName() {
|
public String getHookName() {
|
||||||
|
Loading…
Reference in New Issue
Block a user