Class RegionAdder

java.lang.Object
com.sk89q.worldguard.commands.task.RegionAdder
All Implemented Interfaces:
Callable<ProtectedRegion>

public class RegionAdder extends Object implements Callable<ProtectedRegion>
Creates a new region.
  • Constructor Details

    • RegionAdder

      public RegionAdder(RegionManager manager, ProtectedRegion region)
      Create a new instance.
      Parameters:
      manager - the manage
      region - the region
  • Method Details

    • addOwnersFromCommand

      public void addOwnersFromCommand(com.sk89q.minecraft.util.commands.CommandContext args, int namesIndex)
      Add the owners from the command's arguments.
      Parameters:
      args - the arguments
      namesIndex - the index in the list of arguments to read the first name from
    • call

      public ProtectedRegion call() throws Exception
      Specified by:
      call in interface Callable<ProtectedRegion>
      Throws:
      Exception
    • getOwnersInput

      @Nullable public String[] getOwnersInput()
    • setOwnersInput

      public void setOwnersInput(@Nullable String[] ownersInput)
    • getLocatorPolicy

      public DomainInputResolver.UserLocatorPolicy getLocatorPolicy()
    • setLocatorPolicy

      public void setLocatorPolicy(DomainInputResolver.UserLocatorPolicy locatorPolicy)