mirror of
https://gitlab.com/SamB440/rpgregions-2.git
synced 2026-01-06 15:41:35 +00:00
Fix alwaysShowTitles showing titles every time you move
This commit is contained in:
@@ -11,10 +11,12 @@ public class RegionsEnterEvent extends Event {
|
||||
private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||
private final Player player;
|
||||
private final List<String> regions;
|
||||
private final boolean hasChanged;
|
||||
|
||||
public RegionsEnterEvent(Player player, List<String> regions) {
|
||||
public RegionsEnterEvent(Player player, List<String> regions, boolean hasChanged) {
|
||||
this.player = player;
|
||||
this.regions = regions;
|
||||
this.hasChanged = hasChanged;
|
||||
}
|
||||
|
||||
public Player getPlayer() {
|
||||
@@ -25,6 +27,10 @@ public class RegionsEnterEvent extends Event {
|
||||
return regions;
|
||||
}
|
||||
|
||||
public boolean hasChanged() {
|
||||
return hasChanged;
|
||||
}
|
||||
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
return HANDLER_LIST;
|
||||
|
||||
Reference in New Issue
Block a user