Class PlotCommand
java.lang.Object
com.palmergames.bukkit.towny.command.BaseCommand
com.palmergames.bukkit.towny.command.PlotCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
Send a list of all general towny plot help commands to player Command: /plot
-
Field Summary
Fields inherited from class com.palmergames.bukkit.towny.command.BaseCommand
numbers, setOnOffCompletes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onCommand
(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String commandLabel, String[] args) onTabComplete
(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args) void
parseDistrictAdd
(String[] split, TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
parseDistrictDelete
(TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
parseDistrictRemove
(TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
parseDistrictRename
(String[] split, TownBlock townBlock, org.bukkit.entity.Player player) void
parsePlotClaim
(org.bukkit.entity.Player player, String[] args, Resident resident, TownBlock townBlock) void
parsePlotClear
(Resident resident, TownBlock townBlock) void
parsePlotCommand
(org.bukkit.entity.Player player, String[] split) void
parsePlotEvict
(Resident resident, TownBlock townBlock) void
parsePlotForSale
(org.bukkit.entity.Player player, String[] split, Resident resident, TownBlock townBlock) void
parsePlotGroupAdd
(String[] split, TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
parsePlotGroupDelete
(TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
parsePlotGroupForSale
(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
parsePlotGroupNotForSale
(Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
parsePlotGroupPerm
(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player) void
parsePlotGroupRemove
(TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
parsePlotGroupRename
(String[] split, TownBlock townBlock, org.bukkit.entity.Player player) void
parsePlotGroupSet
(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) void
parsePlotGroupSetPerm
(String[] args, TownBlock townBlock, org.bukkit.entity.Player player, Town town, PlotGroup plotGroup, TownBlockOwner townBlockOwner) void
parsePlotGroupSetTownBlockType
(String[] split, Resident resident, TownBlock townBlock, PlotGroup group, org.bukkit.entity.Player player, Town town) void
parsePlotGroupToggle
(String[] split, TownBlock townBlock, org.bukkit.entity.Player player, Resident resident) void
parsePlotGroupTrust
(String[] split, TownBlock townBlock, org.bukkit.entity.Player player) void
parsePlotNotForSale
(org.bukkit.entity.Player player, String[] args, Resident resident, TownBlock townBlock) void
parsePlotPermCommand
(org.bukkit.entity.Player player, String[] args) void
parsePlotSet
(org.bukkit.entity.Player player, String[] split, Resident resident, TownBlock townBlock) void
parsePlotSetName
(org.bukkit.entity.Player player, String[] name, TownBlock townBlock) void
parsePlotSetOutpost
(org.bukkit.entity.Player player, Resident resident, TownBlock townBlock, boolean spawn) static void
parsePlotTrustCommand
(org.bukkit.entity.Player player, String[] args) void
parsePlotUnclaim
(org.bukkit.entity.Player player, String[] split, Resident resident) void
plotGroupToggle
(org.bukkit.entity.Player player, Resident resident, PlotGroup plotGroup, String[] split) Toggle the plot group flags for pvp/explosion/fire/mobs (if town/world permissions allow)void
plotToggle
(org.bukkit.entity.Player player, Resident resident, TownBlock townBlock, String[] split) Toggle the plots flags for pvp/explosion/fire/mobs (if town/world permissions allow)void
sendPlotInfo
(org.bukkit.entity.Player player, String[] args) void
setPlotForSale
(Resident resident, WorldCoord worldCoord, double forSale) Set the plot for sale/not for sale if permittedstatic TownyPermissionChange
setTownBlockPermissions
(org.bukkit.entity.Player player, TownBlockOwner townBlockOwner, TownBlock townBlock, String[] split) Returns a TownyPermissionChange object representing the change actionMethods inherited from class com.palmergames.bukkit.towny.command.BaseCommand
catchConsole, catchNPCResident, catchPlayer, checkPermOrThrow, checkPermOrThrowWithMessage, filterByStartOrGetTownyStartingWith, getNationFromPlayerOrThrow, getNationFromResidentOrThrow, getNationFromTownOrThrow, getNationOrThrow, getNationResidentNamesOfPlayerStartingWith, getResidentOrThrow, getResidentOrThrow, getResidentOrThrow, getResidentsOfTownStartingWith, getResidentsWithoutTownStartingWith, getTownFromPlayerOrThrow, getTownFromResidentOrThrow, getTownOrThrow, getTownResidentNamesOfPlayerStartingWith, getTownyStartingWith, getVisibleResidentsForPlayerWithoutTownsStartingWith, parseToggleChoice, prettyMoney
-
Constructor Details
-
PlotCommand
-
-
Method Details
-
onCommand
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String commandLabel, String[] args) - Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
-
onTabComplete
public List<String> onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args) - Specified by:
onTabComplete
in interfaceorg.bukkit.command.TabCompleter
- Overrides:
onTabComplete
in classBaseCommand
-
parsePlotCommand
- Throws:
TownyException
-
parsePlotClaim
public void parsePlotClaim(org.bukkit.entity.Player player, String[] args, Resident resident, TownBlock townBlock) throws TownyException - Throws:
TownyException
-
parsePlotClear
- Throws:
TownyException
-
parsePlotEvict
- Throws:
TownyException
-
parsePlotForSale
public void parsePlotForSale(org.bukkit.entity.Player player, String[] split, Resident resident, TownBlock townBlock) throws TownyException - Throws:
TownyException
-
parsePlotSet
public void parsePlotSet(org.bukkit.entity.Player player, String[] split, Resident resident, TownBlock townBlock) throws TownyException - Throws:
TownyException
-
parsePlotSetOutpost
public void parsePlotSetOutpost(org.bukkit.entity.Player player, Resident resident, TownBlock townBlock, boolean spawn) throws TownyException - Throws:
TownyException
-
parsePlotSetName
public void parsePlotSetName(org.bukkit.entity.Player player, String[] name, TownBlock townBlock) throws TownyException - Throws:
TownyException
-
parsePlotNotForSale
public void parsePlotNotForSale(org.bukkit.entity.Player player, String[] args, Resident resident, TownBlock townBlock) throws TownyException - Throws:
TownyException
-
parsePlotUnclaim
public void parsePlotUnclaim(org.bukkit.entity.Player player, String[] split, Resident resident) throws TownyException - Throws:
TownyException
-
setTownBlockPermissions
public static TownyPermissionChange setTownBlockPermissions(org.bukkit.entity.Player player, TownBlockOwner townBlockOwner, TownBlock townBlock, String[] split) throws CancelledEventException Returns a TownyPermissionChange object representing the change action- Parameters:
player
- Player initiatortownBlockOwner
- Resident/Town with the targeted permissions changetownBlock
- Targeted town blocksplit
- Permission arguments- Returns:
- a TownyPermissionChange object
- Throws:
CancelledEventException
- If theTownBlockPermissionChangeEvent
is cancelled
-
setPlotForSale
public void setPlotForSale(Resident resident, WorldCoord worldCoord, double forSale) throws TownyException Set the plot for sale/not for sale if permitted- Parameters:
resident
- - Resident Object.worldCoord
- - WorldCoord.forSale
- - Price.- Throws:
TownyException
- - Exception.
-
plotToggle
public void plotToggle(org.bukkit.entity.Player player, Resident resident, TownBlock townBlock, String[] split) throws TownyException Toggle the plots flags for pvp/explosion/fire/mobs (if town/world permissions allow)- Parameters:
player
- - Player.resident
- Resident using the command.townBlock
- - TownBlock object.split
- - Current command arguments.- Throws:
TownyException
-
parseDistrictAdd
public void parseDistrictAdd(String[] split, TownBlock townBlock, org.bukkit.entity.Player player, Town town) throws TownyException - Throws:
TownyException
-
parseDistrictDelete
public void parseDistrictDelete(TownBlock townBlock, org.bukkit.entity.Player player, Town town) throws TownyException - Throws:
TownyException
-
parseDistrictRemove
public void parseDistrictRemove(TownBlock townBlock, org.bukkit.entity.Player player, Town town) throws TownyException - Throws:
TownyException
-
parseDistrictRename
public void parseDistrictRename(String[] split, TownBlock townBlock, org.bukkit.entity.Player player) throws TownyException, AlreadyRegisteredException -
parsePlotGroupAdd
public void parsePlotGroupAdd(String[] split, TownBlock townBlock, org.bukkit.entity.Player player, Town town) throws TownyException - Throws:
TownyException
-
parsePlotGroupDelete
public void parsePlotGroupDelete(TownBlock townBlock, org.bukkit.entity.Player player, Town town) throws TownyException - Throws:
TownyException
-
parsePlotGroupForSale
public void parsePlotGroupForSale(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) throws TownyException - Throws:
TownyException
-
parsePlotGroupNotForSale
public void parsePlotGroupNotForSale(Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) throws TownyException - Throws:
TownyException
-
parsePlotGroupPerm
public void parsePlotGroupPerm(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player) throws TownyException - Throws:
TownyException
-
parsePlotGroupRemove
public void parsePlotGroupRemove(TownBlock townBlock, org.bukkit.entity.Player player, Town town) throws TownyException - Throws:
TownyException
-
parsePlotGroupRename
public void parsePlotGroupRename(String[] split, TownBlock townBlock, org.bukkit.entity.Player player) throws TownyException, AlreadyRegisteredException -
parsePlotGroupSet
public void parsePlotGroupSet(String[] split, Resident resident, TownBlock townBlock, org.bukkit.entity.Player player, Town town) throws TownyException - Throws:
TownyException
-
parsePlotGroupSetPerm
public void parsePlotGroupSetPerm(String[] args, TownBlock townBlock, org.bukkit.entity.Player player, Town town, PlotGroup plotGroup, TownBlockOwner townBlockOwner) -
parsePlotGroupSetTownBlockType
public void parsePlotGroupSetTownBlockType(String[] split, Resident resident, TownBlock townBlock, PlotGroup group, org.bukkit.entity.Player player, Town town) throws TownyException - Throws:
TownyException
-
parsePlotGroupToggle
public void parsePlotGroupToggle(String[] split, TownBlock townBlock, org.bukkit.entity.Player player, Resident resident) throws TownyException - Throws:
TownyException
-
plotGroupToggle
public void plotGroupToggle(org.bukkit.entity.Player player, Resident resident, PlotGroup plotGroup, String[] split) throws TownyException Toggle the plot group flags for pvp/explosion/fire/mobs (if town/world permissions allow)- Parameters:
player
- - Player.resident
- Resident.plotGroup
- - PlotObjectGroup object.split
- - Current command arguments.- Throws:
TownyException
-
parsePlotGroupTrust
public void parsePlotGroupTrust(String[] split, TownBlock townBlock, org.bukkit.entity.Player player) throws TownyException - Throws:
TownyException
-
parsePlotTrustCommand
public static void parsePlotTrustCommand(org.bukkit.entity.Player player, String[] args) throws TownyException - Throws:
TownyException
-
parsePlotPermCommand
public void parsePlotPermCommand(org.bukkit.entity.Player player, String[] args) throws TownyException - Throws:
TownyException
-
sendPlotInfo
public void sendPlotInfo(org.bukkit.entity.Player player, String[] args) throws NoPermissionException - Throws:
NoPermissionException
-