Class RegionAdder
java.lang.Object
com.sk89q.worldguard.commands.task.RegionAdder
- All Implemented Interfaces:
Callable<ProtectedRegion>
Creates a new region.
-
Constructor Summary
ConstructorsConstructorDescriptionRegionAdder(RegionManager manager, ProtectedRegion region)Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOwnersFromCommand(com.sk89q.minecraft.util.commands.CommandContext args, int namesIndex)Add the owners from the command's arguments.call()String[]voidsetLocatorPolicy(DomainInputResolver.UserLocatorPolicy locatorPolicy)voidsetOwnersInput(String[] ownersInput)
-
Constructor Details
-
RegionAdder
Create a new instance.- Parameters:
manager- the manageregion- 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 argumentsnamesIndex- the index in the list of arguments to read the first name from
-
call
- Specified by:
callin interfaceCallable<ProtectedRegion>- Throws:
Exception
-
getOwnersInput
-
setOwnersInput
-
getLocatorPolicy
-
setLocatorPolicy
-