Important
:
Options.doorsClosedUntilBuy got moved to the category Settings! This makes it possible to close doors for shops/hotelrooms of a specific Category.
FYI: if you don't want to use the category settings, just delete the config entry. It will then work like it was before.
Bug Fixes:
+ Signs can't be destroyed anymore from Players, without permissions
+ Disabled Auto Name Complete for /shops and /hotels, since this is only for the player himself.
+ NPC doesn't spawn anymore, if the command /shop setNPC gets used on a Shop, which is currently not rented, but was before.
+ Fixed Error if NPC gets moved, but wasn't spawned yet.
New Features:
+ Items can be disabled in the config, if the slot gets set to
-1
+ New Category Options:
- disableDoorCommand -> disables the /shop door <open/close> command for the category
- ownerBypassLock -> Should Owners or Players with the door Permission be able to go through locked doors
- doorsClosedUntilBuy -> if doors are closed, before the shop or hotelroom gets rented. (Got moved, look at the top for more infos)
- doorsClosedAfterBuy -> the status of doors after the shop or hotelroom gets rented.
Example:
Code (Text):
#Category Settings. Possible to add more or edit the values. It has to be the category ID
#usePermission -> Are Permissions needed, to buy such a Shop/Hotel
#autoPaymentDefault -> The Default Status of the auto Payment
#autoPaymentDisabled -> If auto Payment should be changeable
#maxRentExtendAmount -> The Max Amount a Player can extend the rent
#disableDoorCommand -> Disables the door command
#ownerBypassLock -> Should Owner or Players with Permission be allowed to open locked doors
#doorsClosedUntilBuy -> <true/false> Should the doors be closed until a player bought the Shop/hotelroom? True Allows player to look, until someone rents it and does /shop door close
#doorsClosedAfterBuy -> the default status, after a player bought a Shop
categorySettings:
ShopCategory:
1:
usePermission: false
autoPaymentDefault: true
autoPaymentDisabled: true
maxRentExtendAmount: 5
disableDoorCommand: false
ownerBypassLock: true
doorsClosedUntilBuy: false
doorsClosedAfterBuy: false
2:
usePermission: true
autoPaymentDefault: true
autoPaymentDisabled: false
maxRentExtendAmount: 3
disableDoorCommand: false
ownerBypassLock: true
doorsClosedUntilBuy: false
doorsClosedAfterBuy: false
HotelCategory:
1:
usePermission: false
autoPaymentDefault: true
autoPaymentDisabled: false
maxRentExtendAmount: 5
disableDoorCommand: false
ownerBypassLock: true
doorsClosedUntilBuy: false
doorsClosedAfterBuy: false
2:
usePermission: true
autoPaymentDefault: true
autoPaymentDisabled: false
maxRentExtendAmount: 3
disableDoorCommand: false
ownerBypassLock: true
doorsClosedUntilBuy: false
doorsClosedAfterBuy: false