9
0
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:
SamB440
2020-05-10 16:58:03 +01:00
parent 05a0e44e80
commit ae9dbf4113
4 changed files with 18 additions and 4 deletions

View File

@@ -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;