public class RegionAdder extends Object implements Callable<ProtectedRegion>
| Constructor and Description |
|---|
RegionAdder(WorldGuardPlugin plugin,
RegionManager manager,
ProtectedRegion region)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOwnersFromCommand(com.sk89q.minecraft.util.commands.CommandContext args,
int namesIndex)
Add the owners from the command's arguments.
|
ProtectedRegion |
call() |
DomainInputResolver.UserLocatorPolicy |
getLocatorPolicy() |
String[] |
getOwnersInput() |
void |
setLocatorPolicy(DomainInputResolver.UserLocatorPolicy locatorPolicy) |
void |
setOwnersInput(String[] ownersInput) |
public RegionAdder(WorldGuardPlugin plugin, RegionManager manager, ProtectedRegion region)
plugin - the pluginmanager - the manageregion - the regionpublic void addOwnersFromCommand(com.sk89q.minecraft.util.commands.CommandContext args,
int namesIndex)
args - the argumentsnamesIndex - the index in the list of arguments to read the first name frompublic ProtectedRegion call() throws Exception
call in interface Callable<ProtectedRegion>Exceptionpublic DomainInputResolver.UserLocatorPolicy getLocatorPolicy()
public void setLocatorPolicy(DomainInputResolver.UserLocatorPolicy locatorPolicy)
Copyright © 2015. All Rights Reserved.