Solved Regions Help

Discussion in 'Plugin Help/Development/Requests' started by FlobGaming, Feb 9, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    FlobGaming

    Hello everyone! For a week or two I have been recently been working on a project called "Regions". Its basically a custom re-write of "WorldGuard". Anyway everything within the plugin seems to work just fine except the region flags and that the config file is blank. The console says here that there are errors in the "Regions" and "RegionsCommand" classes. Click for console. Click for "Regions" class. Click for "RegionsCommand" class. Thanks for reading this. Help would greatly be appreciated!
     
    Last edited: Feb 10, 2015
  2. Offline

    pie_flavor

    @FlobGaming NullPointerException: ((Iterator)null).hasNext();
     
  3. Offline

    FlobGaming

    My original code was:

    Code:
    for (??? = Regions.regions.iterator(); ((Iterator)???).hasNext(); ) { ActiveRegion r = (ActiveRegion)((Iterator)???).next();
    It didn't work so I replaced the question marks with "null". It doesn't result in an error any more but it still doesn't work. Do you perhaps know how I can fix the code?
     
  4. Offline

    pie_flavor

    @FlobGaming Umm... If there's question marks I don't know what to tell you. It was originally supposed to do something, and you can't just set random things to null and expect it to work.
     
  5. Offline

    FlobGaming

    @pie_flavor I just debugged and restated all of the methods and statements and it works fine. It appears I was using out-dated methods from 1.6 xD. Thanks for your help though!
     
Thread Status:
Not open for further replies.

Share This Page