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 TypeMethodDescriptionvoid
addOwnersFromCommand
(com.sk89q.minecraft.util.commands.CommandContext args, int namesIndex) Add the owners from the command's arguments.call()
String[]
void
setLocatorPolicy
(DomainInputResolver.UserLocatorPolicy locatorPolicy) void
setOwnersInput
(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:
call
in interfaceCallable<ProtectedRegion>
- Throws:
Exception
-
getOwnersInput
-
setOwnersInput
-
getLocatorPolicy
-
setLocatorPolicy
-