-
Notifications
You must be signed in to change notification settings - Fork 3
CLI Commands List (Comprehensive)
This section will list and explain the purpose of each command MCTowns uses.
/mct info player <player name>
-
Prints information about the specified player.
/mct info town <town name>
-
Prints information about the specified town.
/mct addtown <town name> <mayor name>
-
Creates a new town. The specified mayor is the only inhabitant, and the mayor must be online.
/mct removetown <town name>
-
Permanently removes the specified town. This command has no undo and no confirmation or warning. Be careful!
/mct list towns (page)
-
Lists the towns which are present on the server. Page is an optional argument for switching between pages if there are lots of towns.
/mct list invites
-
Lists all pending town join invites issued for the player who executes the command.
/mct list requests
-
Lists all the town join requests that have been issued by the player who executes the command.
/mct join <town name>
-
Accepts (if an invitation has already been issued) or requests to be allowed to join the specified town.
/mct refuse <town name> (all)
-
Refuses the specified town’s join invitation. If “all” is appended, all the pending invitations for the player will be refused at once.
/mct cancel <town name>
-
Cancels a request that the executing player has issued with “ /mct join”.
/mct confirm
-
Confirms the purchase of a plot.
/town add territory <territory name> (-admin)
-
Adds a new territory to the town. The player must have a WorldEdit selection made. Based on the config, a mayor running this command without the -admin flag may be charged money for the Territory. Running the command with the -admin flag will bypass the economy completely. If mayors are not allowed to add territories, the -admin flag must be used by an admin who is adding a Territory to a town for a mayor.
/town add player <player name>
-
Issues an invitation to the specified player, inviting them to join the town.
/town add assistant <resident name>
-
Promotes a resident to an assistant for the town.
/town remove territory <territory name>
-
Removes the specified territory from the town, as well as all its plots.
/town remove assistant <assistant name>
-
Demotes the specified assistant back to a normal resident.
/town remove player <player name> (r)
-
Removes the specified player from the town. If the r flag is added to the end, the removal is recursive and will remove the player from all plots and all territories in the town.
/town remove invite <player name> (all)
-
Revokes all issued and pending invitations that have been issued by this town if the “all” flag is added to the end. Otherwise, just removes the invite for the specified player.
/town remove request <player name> (all)
-
Denies all pending requests to join the town if the “all” flag is used. Otherwise, just denies the specified player’s request.
/town remove self
-
Removes you from your town.
/town list players
-
Lists all players in the town.
/town list territories
-
Lists all territories in the town
/town list requests
-
Lists all pending join requests for the town
/town list invites
-
Lists all pending join invites for the town
/town active set <town name>
-
Sets your active town to the specified town.
/town active reset
-
Sets your active town to the town you are a member of. Normally, this command only needs to be run under one condition: Your town has been created and the server has not been restarted (or the plugin hasn’t been purged) since the town was made. This command is only here for the off-chance that you manage to somehow displace your active town, and has no permission node associated with it.
/town bank deposit blocks
-
Opens the deposit box interface to deposit blocks into your town’s bank.
/town bank deposit currency <amount>
-
Deposits the indicated amount of currency into your town’s coffers. Requires the economy be enabled.
/town bank withdraw blocks
-
Opens the town block bank interface to withdraw blocks.
/town bank withdraw currency <amount>
-
Withdraws the specified amount of currency from your town’s coffers.
/town spawn
-
Teleports you to your town’s spawn.
/town spawn set
-
Sets your town spawn to the location you are currently at.
/town spawn <town name>
-
Teleports you to the spawn of the indicated town.
/town economy buyableplots <true /false>
-
Sets whether or not plots are for sale in your town.
/town motd
-
Displays your town’s message of the day
/town motd set <new motd>
-
Sets the new MOTD.
/town pvp friendlyfire <on /off>
-
Turns friendly fire on or off for your town if the config allows for MCTowns to manage PvP.
/territory redefine
-
Updates the bounds of your active territory to your current WE selection. Requires a WE selection be made. Selection must still be within parent region.
/territory add player <player name>
-
Adds the specified player as a member of the territory. This gives the player unrestricted access to modify blocks through the entire region and all of its children regions.
/territory add plot <plot name>
-
Adds a new Plot to the Territory. You must have a WE selection made.
/territory remove player <player name> (-r)
-
Removes the specified player from the region. If the “-r” flag is added, the removal will behave recursively.
/territory remove Plot <plot name>
-
Removes the specified plot from the Territory.
/territory list players
-
Lists all players who are members of the Territory.
/territory list plots
-
Lists all plots in the territory.
/territory active set <territory name>
-
Sets your active territory.
/territory flag <flag name> (flag arguments)
-
Modifies the specified WorldGuard flag for this region. If any arguments are supplied, it will try to alter the existing flag of that name if there is one, or create a new flag if not. If no arguments are supplied, the specified flag will be removed from the region.
/plot redefine
-
Updates the bounds of your active plot to your current WE selection. Requires a WE selection be made. Selection must still be within parent region.
/plot add player <player name>
-
Adds the player to the plot as its owner.
/plot add guest <player name>
-
Adds the player to the plot as a guest. This command can be used by the owner of the plot to add friends to it.
/plot remove player <player name>
-
Removes a player from the plot. Regardless of whether the player was a guest or owner, the player gets removed.
/plot list players
-
Lists all players (guests and owners) who are in the plot.
/plot active set <plot name> (q)
-
Sets your active plot. If the “q” flag is added, it performs a quick-select, which only requires your active Town be set. It will figure out and set your active Territory and Plot such that your active plot will be the specified plot, and the territory will be the parents of the plot.
/plot flag <flag name> (flag arguments)
-
Modifies the specified WorldGuard flag for this region. If any arguments are supplied, it will try to alter the existing flag of that name if there is one, or create a new flag if not. If no arguments are supplied, the specified flag will be removed from the region.
/plot economy setprice <amount>
-
Sets the price of the plot to <amount>
/plot economy forsale <true /false>
-
Puts the plot up for sale, or takes it down.
/plot sign build
-
Erects the “for sale” sign for the plot. If the sign is already up, then it simply updates it.
/plot sign demolish
-
Demolishes the “for sale” sign for the plot.
/plot sign setpos
-
Sets the position of the plot’s “for sale” sign to the location that you are looking at. Only works for blocks on the floor with at least one clear block above them.