RentIt - Shop and Hotel renting - Includes NPC Shop icon

RentIt - Shop and Hotel renting - Includes NPC Shop -----

Create Rentable Shops and Hotels in prepared Regions




Fix:
- Using wrong UUID for the /shop buy command
- NPE with the /shop buy command
- Add ChestShop as Soft-Dependency
- Update jeff media Repository
- Remove unnecessarily zeros from the price
- Update Dependencies
----------, Dec 26, 2024

Fix:
- /shop help error
- NPC not getting removed since the last Folia Update
- Error which was happening with the /shop rollback gui
----------, Aug 18, 2024

Add:
- Minecraft 1.21 Support
- Folia Support
- Placeholder %rentit_SHOP_&id&_owner% %rentit_HOTEL_&id&_owner%
- Log for Transaction with Shops

Fix:
- Paper Plugin Fixes (Dependencies and PluginLoader)
- GUIs and make it multiple Minecraft version compatible
- Double Shop/Hotel loading and Villager NPCs

Important for Folia:
Worldedit is still needed for the Plugin to make it work. There is a fork online, which supports Folia.
There doesn't seem to be a Citizens plugin for Folia, so you need to disable in the config the useNPC Option. The plugin will then use Villagers.
----------, Aug 17, 2024

Fixes:
- Improve GUI handling and support Hex colors as inventory title.
- Admin Shop doesn't appear anymore as a free shop to rent.
- Worldguard regions from RentIt now have the flag for chest access. (Needs to be manually set or for new regions)
- Shops with chests don't return an error anymore on /shop reset/resign or rent end.
----------, Feb 14, 2024

Change:
- Update Check Interval set to 24h
- useDisplayName/displayNameColor -> userShopName

Fix:
- Ignore WorldGuard on Shop/Hotel Doors Interaction
- 100.000k won't be shown as 100.000L
- Remove door from Shop/Hotel, after breaking it as an admin
----------, Feb 5, 2024

Add
Admin Shops (Unlimited Items can be bought/sold, no owner, no time limit/money needed)
Command /<shop/hotel> delete <Id>
Command /shop setAdminArea <catId>
Config Options to change the main command

Fix
Inventory was saved in wrong database column which broke some shops!
Prevent Buying AIR in the Shops
Stop making Items with a negative value in the shop
Make high prices for Shop Items Human readable
Support Hex Colors for every message
Show the Sites on the footer Text for the List command
Add door command to tab completion for users
Prevent NPE for some NPCs
Identical Item is not only once possible again.

Improvements
Improved Database Setup and prevent SQL Injections
Improve Sign Updater
Code Improvements
----------, Jan 3, 2024

- Fix: Chests can be opened / Error if ChestShop is not installed.
- Fix: Reconnect Method for the Database Connection
- Add: new Placeholder for the Signs (maxSite, id, catId, catAlias, alias)
----------, Oct 8, 2023

Very import for users, who update!
  1. Please go into your RentIt config and add the following value in the database section:
Code (Text):
Database:
  type: 'SQLITE'      #<- This line (MARIADB, MYSQL and SQLITE)
  host: 'ipaddress'
It is very important, so that the plugin upgrades into the correct database

2. Create a backup of the database from RentIt
3. Update the RentIt.jar and restart the server.

Please use the contact methods if you got problems.

I can't help you, if something went wrong and you didn't create a backup!


New Features:
  • Dynamic and multisite Shop
  • Added better support for MariaDB
  • Default Permissions in the config moved to the category settings. It needs to be set for every category, to enable it again.
  • Adding ChestShop Support
  • Added /<shop/hotel> catinfo
  • Added /shop setmaxsite
  • Added /shop createCat
  • Config value to change the NPC Player name color
  • Display the price in Human readable
  • Improvements and many Bug fixes
----------, Oct 1, 2023

  • Add: 1.20.X Support
  • Add: Changeable Sign Prefixes in the config.
  • Fix: Preventing editing Plugin Signs.
  • Fix: Anvil GUI now only allows valid Input
  • Update: AdvancedChestAPI (Thanks again to @rglautaro)
----------, Jun 23, 2023

  • Add: Added Category Setting: useBed and useEnderchest (Allow using the Item in protected regions with no permissions)
  • Add: Barrels are now working as a Shop Storage
  • Add: New Placeholder %rentit_player_shop/hotel_autopayment%
  • Fix: Added a Error Message for a missing world
  • Fix: Player can build in unowned protected Regions
  • Fix: Checking for Free Item Slot before removing Item from Shop
----------, Feb 26, 2023

- Fixed Sign Break Error
- Fixed Interaction sometimes possible with Shops/Hotels, even if no permissions (PlayerInteractEntityEvent -> PlayerInteractAtEntityEvent)
- Fixed Async Error on Villiager destroy
- Fixed Typo in Config
- Fixed reset Command not correctly reseting the Shop Inventory
- Fixed wrong message for hotel setPermission Command
- Fixed AdvancedChests Support (Thanks to @rglautaro )
- Fixed setPermission not removing the WorldGuard Member correctly

- Changed Help Message (only for new configs)

- Added full Support for 1.19.3
- Added Playerpoints as a possible Primary Economy System (Config Entry)
- Added aliases for the main commands in the Config
- Added Blacklist for Item Types, that should not be allowed to sell in a shop
- Added a Search Command to look for an item in all shops
- Added Message palceholder: %itemName% for the Displayname of an Item. (shop sell Messages)

New Placeholder(-API):
Those Placeholder are only showing the info for the first shop/hotel. They mostlikely only make sense, if you limit the shops/hotels to one for each player.

- %rentit_player_shop_category%
- %rentit_player_hotel_category%
- %rentit_player_shop_expiration%
- %rentit_player_hotel_expiration%
- %rentit_player_shop_price%
- %rentit_player_hotel_price%
- %rentit_player_shop_duration%
- %rentit_player_hotel_duration%
- %rentit_player_shop_size%


- Moved to gradle
- Updated Dependencies
----------, Dec 27, 2022

  • Adding 1.19 Support. (Note: that the newest dependencies are needed. Worldedit hasn't fully released the new 2.11. Version yet!)

  • Fixed Droping Beds after a reset/resign.
  • Fixed destroying Signs, if the nearby Block gets destroyed, which got nothing to do with it.
----------, Jun 12, 2022

New Features:
  • Adding Support for AdvancedChests to Support bigger Item Chests (Big thanks to @rglautaro)
  • Adding new Placeholders:
    • %rentit_player_hasShop% and %rentit_player_hasHotel% -> Returns true if owns a Shop/Hotel.
    • %rentit_player_shop% and %rentit_player_shop% -> Returns ONE Shop/Hotel Alias/Id that the player is owning. (you need to limit the max ownings, to make it work 100%)
    • %rentit_freeShop_cat_%catId%% and %rentit_freeHotel_cat_%catId%% -> Returns true if the given Category contains a free Shop/Hotel.
    • %rentit_freeShop_%shopId%% and %rentit_freeHotel_%hotelId%% -> Returns true if the shop/hotel id is free.
    • %rentit_freeShop% and %rentit_freeHotel% -> Returns true if there is any free shop/hotel.
  • Adding Config Option to make Citizens NPC sit.
  • Adding Config Option to set a fixed Skin for the Citizens NPCs.

    Screenshot 2022-05-15 195642.png
Bug Fixes:
  • Adding back Name prevention for /shops and /hotels
  • Fixed Reminder Task Bug
  • Fixed /freehotels Bug. Won't look after Shop Categories anymore.
----------, May 22, 2022

New Features:
  • Adding /<shop/hotel> resign, which allows normal players to resign their rent contract.
  • Adding Aliases to Shops/Hotelrooms and Categories!
Code (Text):
/<shop/hotel> setAlias %alias% - Set a different Name for the Shop/Hotelroom you are standing in.
/<shop/hotel> setAliasCat %catAlias% - Set a different Name for the Shop/Hotelroom Category you are standing in.

New Placeholders:
%alias% - Uses the Shop/Hotelroom Alias, if none set, then the id will be used.
%catAlias% - The same, but for the categories.

Changed the messages in the config to %alias%, since it is the newer %id% version.
There are also new Items for the Admin GUI, to change the aliases.
  • Implementing the Reminder Feature.
Code (Text):
Use following Category Setting, to define the reminder:
reminderRentRunningOut: '1m30s'
The Reminder will start to notify the player 1m and 30 sec before the rent expected End Date. Also everytime, if the player joins.
[​IMG]

Fixed Bugs:
  • Players can no longer overwrite a rent contract, if they had the Confirmation GUI already open.
  • Fixed misspelling of Category/Categories in the default config
  • Fixed /<shop/hotel> users error, if a player hasn't played yet on the server.
  • Fixed async spawning of Citizens NPC error
  • Fixed multiple setting of Permissions to a player, if upper letters were used.
  • Fixed AutoCompletion for booleans. Both are shown, if nothing specific was typed.
  • Fixed destroying of empty Item Frames.
  • Fixed using OffHand in Shops/Hotelrooms and causing weird bugs.
  • Preventing an NPC Error
  • Fixed AreaFinder Method.
Changes:
  • Adding Offline Server Support
  • The own Enderchests can be opened in Shops/Hotels of other players.
  • Changed the System to disable commands.
  • Using Java 16 to compile again, which gives back the Spigot 1.16 and more support.
  • Updated Dependencies
----------, Apr 30, 2022

  • Fixed Hotel Payments aren't correctly saved after a server restart
  • Fixed Possibility to Destroy ItemFrames with Arrows, Tridents, etc
  • Fixed Reload Command, if plugin wasnt correctly started
  • Added allowUsersToMoveNPC as a new Category Setting. Shop Owners can now move the NPC (/shop setnpc), if the setting is in the config true
  • Improved Payment Task
  • Updated Dependencies
----------, Mar 23, 2022

  • Added Permission rentit.bypass.doors and rentit.bypass.chests. Bypassing Doors/Chests in Shops and Hotelrooms
  • Fixed Issue which has overwritten the Sell Inventory
  • Fixed UTF8 Issue. Supporting all languages again
  • Fixed a Logger Warning
  • Updated Dependencies
----------, Jan 21, 2022

  • Full 1.18+ Support
  • Added /shop rollback for Users and /shop rollback %target% for Admins
  • Reworked the Rollback Function
  • Added /shop list and /hotel list for Admins
  • Added /<shop/hotel> listCat - Lists all Categories and the Options of them
  • Added /<shop/hotel> deleteCat - Deletes a Category, if no Shop/Hotel is linked
  • Added /rentit reload to reload Config and SQL
  • Disable Commands Option in the config
  • Fixed AnvilGUI for Spigot Versions 1.17+
  • Fixed Sell Messages not shown default Bug.
  • Fixed ConfigUpdater, where Settings got reset.
  • Fixed Rent End Date not shown Bug.
  • Better handling of World not found error.
  • Improvements

This Updates contains following Update Versions. Please join my Discord for faster Support!

- 2.4.11
- 2.4.12
- 2.5.0
- 2.5.1
----------, Jan 9, 2022

+ Fixed an error that happend after a shop reset or creation.
----------, Sep 3, 2021

IMPORTANT: You need to use the command /shop setNPC for every Shop again, since I changed the create Method.

+ Fixed an Issue, that if the shop or hotelroom with the ID = 1 was once deleted, it wasn't useable again.
+ Fixed WorldGuard Region missing permission for new created Shops and Hotelrooms.
+ Fixed generating of a new NPC after each restart. NPC now getting once created and then only spawned/despawned.

If you are using MMOItems, use the newest Version to make sure, that the plugin is fully supported.
ItemAdder-WorldEdit seems to have an error in his code. No Support for RentIt, if this plugin runs on your server.
----------, Aug 25, 2021

+ Added HexColors - You can now use #000000 Format in the messages
+ GUI BugFix
+ Fixed Logger warnings
+ AdvancedPermissions -> Can be enabled in the config. After enabling every command has a permission. (rentit.%maincommand%.%subcommand% -> f.e. rentit.shops or rentit.shop.setarea)
+ Items of the same type with different designs, can now be sold in the shop
----------, Aug 8, 2021

- Fixed an Issue with a Timestamp on Server Start. Only happens on SQLLite!
----------, Aug 5, 2021

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
----------, Aug 1, 2021

+ Bug Fix: Buy Command had an error with max possible Limit.
+ Better Performance with the Payment Scheduler

+ New Features:
- SQL Lite will be used, if MySQL is not setup.
- Auto Payment can be disabled in the Config
- Default Auto Payment can be setup in the Config
- Categorys can be setup with a permission
- Its possible to limit the max extended Amount

SQLLite is Beta, since this is my first time using it.

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
     categorySettings:
         ShopCategory:
             1:
                 usePermission: false
                 autoPaymentDefault: true
                 autoPaymentDisabled: true
                 maxRentExtendAmount: 5
             2:
                 usePermission: true
                 autoPaymentDefault: true
                 autoPaymentDisabled: false
                 maxRentExtendAmount: 3
         HotelCategory:
             1:
                 usePermission: false
                 autoPaymentDefault: true
                 autoPaymentDisabled: false
                 maxRentExtendAmount: 5
             2:
                 usePermission: true
                 autoPaymentDefault: true
                 autoPaymentDisabled: false
                 maxRentExtendAmount: 3
----------, Jul 31, 2021

I somewhere made a misstake, which only allowed LuckPerms to work and not any Permission System.
This fixes it and Supports now every Permission System again!
----------, Jul 28, 2021

- I made a small misstake by cleaning the code. This should make all chest on the server openable again!
----------, Jul 18, 2021

- Bug Fix with Shop NPC Prefix
- Better Protection of the Shops and Hotelrooms
- More clean Code
- Metrics
- UpdateChecker
----------, Jul 17, 2021

- Hotel Area reset after no Money or no Contract won't get called multiple times
- Entities like Paintings, Item Frames, Armorstands... don't get duplicated anymore
- Editing a category now only changes the Signs, that are connected to the Category.
- Config Update, that I forgot
----------, Jun 27, 2021

New Update v2.3.0
- Trap Doors and Gates can now be used as doors
- /<shop/hotel> updateRegion -> Creates a new Backup of the current Area
- alias for /Shop and /Hotel
- Auto Tab Complete for Sub Commands

Includes Update v2.2.2
- Bug Fix

Includes Update v2.2.1
- Fixed Category Update Issues + including Updating Signs

Messages got edited, since they didn't make sense! Need to change manually!

Code (Text):
Messages:

     shopRentTimeChanged: '&aRent Time was changed to &f%time% &afor Category &f%catId%&a.'
     shopPriceChanged: '&aRent Price was changed to &f%price% &afor Category &f%catId%&a.'
     shopSizeChanged: '&aShop Size was changed to &f%size% &afor Category &f%catId%&a.'

     hotelRentTimeChanged: '&aRent Time was changed to &f%time% &afor Category &f%catId%&a.'
     hotelPriceChanged: '&aRent Price was changed to &f%price% &afor Category &f%catId%&a.'
----------, Jun 23, 2021

There shouldnt be any issues with the 1.17. Even with the versions before. Otherwise please let me know on Discord!

- 'Options.useDisplayName' -> creates the PlayerNPCs with the Owners Prefix and Farbcodes
- Updated depcrecated Citizens Methodes
- /<shop/hotel> help -> opens the help book. Can be optimized in the config
- PlaceholderAPI Support

%rentit_currentId% - returns the ID of the Hotel/Shop, that the player is standing in.
%rentit_currentType% - returns the Type (Hotel/Shop), that the player is standing in.
%currentOwner% - returns the Owner of the Shop/Hotel, that the player is standing in.
----------, Jun 11, 2021

Please Update this plugin before updating to Java 16!
If you should have already and NPCs are missing, then please delete the "ShopNPC.yml" in the "rentit" directory and set them again!

- All Signs getting Updated, after changes are made for a category
- Support for Java 16
----------, Jun 8, 2021

New Update v2.1.0
- Fixed ConfigUpdater Issue
- Citizens is now SoftDepended. You can set 'Options.useNPCs' to 'false' and it uses the Vanilla Villagers.
- Options to disable build and teleport features for normal users.

Includes Update v2.0.4

- Fixed WorldGuardAPI SoftDependency Issue (WorldGuard is not needed for this plugin! But supported)

New Config Entrys:

Code (Text):
Options:
     #Using Citizens NPCs as Shops. Otherwise Villagers
     useNPCs: true
     #Should normal players be allowed to destroy, build, and so on... (Admins are not affected)
     defaultPermissions:
         shop:
             build: true
             teleport:
                 ownings: true
                 inspection: true
         hotel:
             build: true
             teleport:
                 ownings: true
                 inspection: true
----------, Jun 4, 2021

Thanks to @ Janmm14 hint, I changed the implementation of Citizens from compile to provided. This reduces the file size and uses the Citizens Version on the Server!

Also I fixed a small error, if somebody deletes a ShopNPC with a Citizens command.

----------, May 18, 2021

- Fixed losing Shop Items after Restart!
- Fixed Admin Settings for Hotels (Shift + Rightclick on a Sign)
- Fixed Admin functions
- Fixed error while getting a user Shop Rollback, that didnt exists (/shop rollback %player%)

A Tutorial is in progress!
----------, May 7, 2021

Bug Fix, if you Upgraded from a Version before.
----------, May 2, 2021

- Performance and Stability - better TPS and less MySQL Statements
- Code Improvment
- Bug and miss-translations Fixes
- WorldGuard Support
- no more WorldGuard error messages
- Auto Config Updater
- Max. Hotelrooms/Shops - You can change the values in the Config for every group! Otherwise -> Default
- Multiple Signs Support - Old Signs needs to be set up again
- useSSL can now be set up in the config. Use false if you got any wierd connection problems.

- /<hotel/shop> info - Get information from the Hotelroom/Shop you are standing in.

- /<hotel/shop> door add <ID> - Add Doors to a Hotelroom or Shop
- /<hotel/shop> door remove = Remove a door from a Hotelroom or Shop
- /<hotel/shop> door open = Open the doors in your own Hotelroom or Shop
- /<hotel/shop> door close = Close the doors in your own Hotelroom or Shop

Also you can set up in the Config, if players should be able to go in the room, if noone ownes it or they first need to rent it.


If you got any problems, please let it me know!
----------, May 2, 2021

  • Fixed some issues with the config
  • Disabling the Plugin, if no Database was connected.
  • added a message named "notATime" that gets called, if an invalid time is entered. Please look at Time Format for more informations
  • improved the explanation on Spigot. There is now a How to Guide for Users and Admins.
----------, Mar 24, 2021

After translating the Plugin in english i sadly made a mistake in the config. So here the first Update.
----------, Mar 16, 2021

Resource Information
Author:
----------
Total Downloads: 5,081
First Release: Mar 16, 2021
Last Update: Dec 26, 2024
Category: ---------------
All-Time Rating:
18 ratings
Find more info at wiki.uc-gg.de...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings