Commit Graph

43 Commits

Author SHA1 Message Date
Eric 5157cc42ac Update dependencies and their implementations
PlotSquared integration will not work with version 5.x anymore!

Towny and BentoBox may also require a more recent version.
2021-07-29 14:18:06 +02:00
Eric acd447c6ec First steps towards 1.17 support
The plugin works, but the localization part has yet to be done, and
support for other plugins has to be updated to the latest versions.
2021-07-24 23:40:53 +02:00
Gregory DALMAR 9e9c509f9b
Change plotsquared repo to official new repo and add support for 1.16.4 (#351)
Thank you :)
2020-11-12 14:54:52 +01:00
Eric d3574f1519 Add support for 1.16.2 2020-08-22 17:59:05 +02:00
Eric 056989437d Add support for 1.16 2020-06-25 19:52:32 +02:00
Eric 8ed16d7f3f Add support for 1.15
Fixes #291
2019-12-15 15:32:05 +01:00
Eric fe18f38944 Fix holograms for 1.9.x 2019-06-22 17:47:51 +02:00
Eric da27a4e846 Use guava's Optional for data watcher creation 2019-06-22 17:25:58 +02:00
Eric 0617d3bc1b Use marker armor stands
Allows players to click through holograms for easier shop interaction.

Only available on 1.8.3 and higher
2019-06-22 17:18:44 +02:00
Eric 1c8cdb0639 Outsource external checks for shop creation
Every supported plugin has its own listener for ShopCreateEvent
and ShopExtendEvent.

I also tried to clean up a bit, there can be done more though.
2019-05-08 21:47:23 +02:00
Eric 71f6ee5d6f Fixes (especially for 1.8.x) 2019-04-28 23:27:15 +02:00
Eric 77a837fc05 Rework NMS
Fixes hologram duplicates
Fixes support for 1.14
Breaks hologram interaction (Events cannot be sent to the server)

Armor stand and item entities are now totally client side,they are not
even created, but instead are just put in a packet to send to the client

Performance has not been tested!
2019-04-28 20:56:49 +02:00
Eric 86322a1198 Fix warnings regarding PlotSquared flags 2018-08-03 18:56:09 +02:00
Steven M ff5c3cdd45 Fix books changing metadata by serialization (#165)
Fixes #164
2018-07-26 17:35:53 +02:00
Eric 3c0790d670 Make JsonBuilder.parse static 2018-07-26 13:44:44 +02:00
Eric 9a70df5e01 Update JSON message builder/parser
Preparing for item preview in shop info
2018-07-26 00:02:06 +02:00
Eric 4cb59b18de Re-add support for Minecraft 1.8 - 1.12.2 2018-07-25 16:54:22 +02:00
Eric 8cf7b7c08e Fix javadoc warnings
A part of the documentation may still be incorrect
2018-07-25 13:11:44 +02:00
Eric 5a4741ddf3 Support Java 9+
Drops support for Java 7
2018-07-23 18:38:36 +02:00
Eric 94a51373b5 Support Minecraft 1.13
Drops support for older Minecraft verions (1.8 - 1.12.2)
2018-07-23 18:38:06 +02:00
Eric 8f0d2aaf5f Added permissions "shopchest.create.buy" and "shopchest.create.sell"
Both of these also work with item nodes. Examples:

- shopchest.create.buy.CHEST (Allows only shops selling chests)
- shopchest.create.sell.APPLE (Allows only shops buying apples)
- shopchest.create.STONE.3 (Allows only shops buying or selling diorite)
- shopchest.create.buy (Allows only shops that are selling anything)
- shopchest.create.sell (Allows only shops that are buying anything)
2017-06-05 14:13:40 +02:00
Eric 9f229bbf6a Fixed NPE when player does not have an item in his hand 2017-06-05 13:31:47 +02:00
Eric 460abc722e Added permission nodes for shop creation for specific items
Examples:
- "shopchest.create.apple"
- "shopchest.create.stone.2"

But: If a player has permission "shopchest.create", he is allowed to
create shops of all items. Also, the creation of admin shops is not
affected by these permissions.
2017-04-26 16:21:04 +02:00
Eric a4886c8cbb Added debug messages for shop creation (external plugins) 2017-04-19 14:04:57 +02:00
Eric 98275ef57d Switch to Bukkit's inbuilt isSimilar method 2017-04-16 15:48:12 +02:00
Eric e969aa35da Removed isUUID method 2017-03-30 20:45:09 +02:00
Eric 08f65dbee0 Fixed NPE when creating a shop not in a PlotSquared plot 2017-03-30 20:44:28 +02:00
Eric 4a7202df6f Added support for PlotSquared
Three new custom flags will be available for every plot to set:
- create-shop
- use-shop
- use-admin-shop

These flags can be set to the following values
to allow the flag to that group. If you set the group to
members, trusted members and owners are also allowed the flag:
- owners
- trusted
- members
- everyone
- none

The default value for the flags will be 'none', so be sure to
change it in order to create or use shops!

The flag 'create-shop' can be bypassed by granting the permission
'shopchest.create.protected' (which is not recommended), and the
other flags can be bypassed by granting the permission
'shopchest.external.bypass'.

This closes #87
2017-03-28 14:37:12 +02:00
Eric da41151402 Added shift-click to sell stack
Only works when a player does not have an axe in one of his hands.
If he has, the shop will be broken/removed (if he has permission).

Closes #84
2017-03-25 13:45:17 +01:00
Eric 8e867a7c1d Hopefully fixed item meta issues for good 2017-01-03 13:06:29 +01:00
Eric 222b553a8e Fixed Shulker Boxes
Closes #53
2017-01-02 17:50:46 +01:00
Steven M bedf207210 Fix fireworks (#52)
Fixes #51
2017-01-01 17:52:33 +01:00
Eric 068edfa9ff Fixed book meta for 1.10 2016-11-18 17:58:49 +01:00
Eric 7e044eb7b1 Fixed selling to full admin shops and support for lower versions 2016-11-17 20:16:42 +01:00
Eric 334219cbe1 Fixed issue with BlockStateMeta 2016-11-13 14:00:07 +01:00
Eric 3f3ddfe66f Fixed issues with ItemMeta
(Mostly issues with books)
Fixes #30
2016-11-12 15:03:19 +01:00
Eric f8dd53bf31 Use #getNMSClass in #sendPacket instead of Class#forName 2016-08-17 13:16:37 +02:00
Eric f511ff66a0 Added configurable item spawn delay after join
This might fix the issue, that items won't be spawned after joining.
2016-08-17 12:54:19 +02:00
Eric 4bf5472e61 Added way to auto calculate item amount
You can find an explanation here:
- https://www.spigotmc.org/threads/shopchest.87948/page-15#post-1820672
- In the configuration file
2016-08-16 15:06:26 +02:00
Eric 51584a3d04 Removed almost every stack trace that might me printed
Stack traces will now be printed in the debug log (if enabled) and in the console, there will only be displayed an error message without the stack trace
2016-08-10 13:47:25 +02:00
Eric c713d0f014 Replace deprecated getItemInHand method 2016-08-09 14:41:41 +02:00
Eric a95106a335 Client-side shop items
All shop items are now spawned with packets and reflection client-side, so probably duplicated items are history (finally). This also allowed me to remove the ClearLag and LWC dependency, as ClearLag can't remove client-side items and LWC's Magnet Sucker can't suck them inside a chest. I also changed a bit in the classes of the nms package, so all required classes have to be found before attempting to do anything.

Fixes #11 and fixes #4
2016-08-08 22:04:29 +02:00
Eric 57af99da1b Now using reflection instead of different modules
This commit also fixes spawn eggs on 1.8.x
2016-08-05 15:26:47 +02:00