Loaded the portals into a list so other code can check if portals exist

and where.
This commit is contained in:
sekwah41 2013-11-03 21:46:28 +00:00
parent 9b6b876bf8
commit 77738c16cf
1 changed files with 4 additions and 2 deletions

View File

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