Java Code Examples for br.net.fabiozumbi12.RedProtect.Bukkit.Region#getMembers()

The following examples show how to use br.net.fabiozumbi12.RedProtect.Bukkit.Region#getMembers() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RegionManager.java    From RedProtect with GNU General Public License v3.0 5 votes vote down vote up
public Region renameRegion(String newName, Region old) {
    Region newr = new Region(newName, old.getAdmins(), old.getMembers(), old.getLeaders(), new int[]{old.getMinMbrX(), old.getMinMbrX(), old.getMaxMbrX(), old.getMaxMbrX()},
            new int[]{old.getMinMbrZ(), old.getMinMbrZ(), old.getMaxMbrZ(), old.getMaxMbrZ()}, old.getMinY(), old.getMaxY(), old.getPrior(), old.getWorld(), old.getDate(), old.getFlags(), old.getWelcome(), old.getValue(), old.getTPPoint(), old.canDelete(), old.canPurge());

    this.add(newr, newr.getWorld());
    this.remove(old, old.getWorld());
    return newr;
}