Pychnight / TshockRpgToolKit

Master Controller for distrubtion of quests, custom npcs, custom items and skills, housing, leveling, npcshops, etc.
GNU General Public License v2.0
11 stars 1 forks source link

Housing [Command Refactor] #45

Closed Pychnight closed 5 months ago

Pychnight commented 5 years ago

Reduce amount of commands within the plugins

/house (permission housing.house): /house 1: Waits for you to set the first point of a house. /house 2: Waits for you to set the second point of a house. /house allow : Allows the specified player name into the house you are standing in. /house buy <house-name: Buys the current house, if on sale, or the entire plot. /house disallow : Disallows the specified username from the house you are standing in. /house info: Gives info about the house you are standing in. /house remove: Removes the house you are standing in. This will remove shops as well. /house sell : Sells your house. This is not reversible. /house set : Sets a house using the points. This will bring up a confirmation if houses require currency to purchase. /itemshop (permission housing.itemshop): /itemshop 1: Waits for you to set the first point of a shop, which must lie entirely within a house you own. /itemshop 2: Waits for you to set the second point of a shop, which must lie entirely within a house you own. /itemshop buy [amount]: Brings up a confirmation to purchase that many items. /itemshop close: Closes the shop you are standing in. /itemshop info: Gives info about the shop you are standing in. /itemshop open: Opens the shop you are standing in. /itemshop remove: Removes the shop you are standing in. /itemshop set : Sets the shop using the points. To finalize the shop, a chest must be right-clicked that lies within the house. /itemshop setmsg : Sets the message for the shop you are standing in. /itemshop setprice : Sets the price for an item of the shop you are standing in.

This is the current list, There must be some way to reduce the amount of commands within the plugin such as merging functionality of commands such as Open / Close for item shops

This is a small refactor just, examine the commands and try reducing / merging them where needed.

Pychnight commented 5 months ago

Resolved