mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2025-02-14 03:11:39 +01:00
Loaded the portals into a list so other code can check if portals exist
and where.
This commit is contained in:
parent
9b6b876bf8
commit
77738c16cf
@ -10,6 +10,8 @@ public class Portals {
|
||||
|
||||
private final AdvancedPortalsPlugin plugin;
|
||||
|
||||
private List<String> portals;
|
||||
|
||||
|
||||
|
||||
public Portals(AdvancedPortalsPlugin plugin) {
|
||||
@ -19,8 +21,8 @@ public class Portals {
|
||||
|
||||
public void loadPortalData(){
|
||||
ConfigAccessor config = new ConfigAccessor(plugin, "Portals.yml");
|
||||
List<?> portallist = config.getConfig().getList("portals");
|
||||
if(portallist.size() > 0){
|
||||
List<String> portals = config.getConfig().getStringList("portals");
|
||||
if(portals.size() > 0){
|
||||
|
||||
}
|
||||
else{
|
||||
|
Loading…
Reference in New Issue
Block a user