9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-29 11:49:08 +00:00

Fix requirements, add ability to remove registry classes via gui

This commit is contained in:
SamB440
2021-03-27 14:01:46 +00:00
parent 4bcf803725
commit ba90a6ae1b
5 changed files with 41 additions and 13 deletions

View File

@@ -7,11 +7,10 @@ import org.bukkit.entity.Player;
public abstract class RegionRequirement implements IGuiEditable {
private final transient IRPGRegionsAPI api;
private final PreventType preventType;
private final PreventType preventType; // TODO make enums editable
public RegionRequirement(IRPGRegionsAPI api) {
this.api = api;
this.preventType = PreventType.TELEPORT;
this(api, PreventType.TELEPORT);
}
public RegionRequirement(IRPGRegionsAPI api, PreventType preventType) {