Commit Graph

35 Commits

Author SHA1 Message Date
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
2302962eac Added shift-click to buy stack
Closes #85
2017-03-21 15:40:23 +01:00
Eric
474f734456 Added command "/shop open" to open shops
Shift-click no longer works anywhere to open a shop.
2017-03-21 15:03:12 +01:00
Eric
79660920d8 Updated events
Methods getPlayer() and getShop() don't need to be overridden,
as they are now declared in the ShopEvent superclass.
2017-03-21 14:25:49 +01:00
Eric
bc13dd7a9d Prevent armor items from being taken by the hologram 2017-03-17 15:01:11 +01:00
Eric
39822fe8df Added AuthMe support
Closes #64
2017-03-17 14:59:34 +01:00
Eric
4194c72bd4 Added vendor information about a sold out shop 2017-01-04 18:46:50 +01:00
Eric
f6f8d93b85 Improve performance while updating shops
Inspired from the fork of @gonzalociocca but not exactly the same
Closes #39
2017-01-04 17:07:00 +01:00
Eric
2951ef8349 Only permitted players can remove admin shops
+ Changed permission "shopchest.removeOther" to "shopchest.remove.other"
Closes #36
2017-01-04 14:34:59 +01:00
Eric
f233c626e1 Add way to invert mouse buttons
Closes #35
2017-01-03 15:35:35 +01:00
Eric
8e867a7c1d Hopefully fixed item meta issues for good 2017-01-03 13:06:29 +01:00
Eric
192b124eb5 Added way to disable vendor messages
(= Messages that a vendor gets after players buy or sell something from/to
his shop)

Closes #33
2016-11-26 17:23:32 +01:00
Eric
103662c532 Add support for per-world-economy plugins
The money will be withdrawn or deposited on the world of the shop
2016-11-23 16:11:07 +01:00
Eric
d097a15122 Added way to disable WorldGuard/Towny integration
+ Added permission to use shops in WorldGuard regions that deny shop use
2016-11-23 16:05:33 +01:00
Eric
04a6d836b9 Added towny support
- Players can only create shops in shop plots, not in wilderness or normal
  plots
- Added permission "shopchest.extend.protected"
- Changed permission "shopchest.extendOther" to "shopchest.extend.other"
- When creating a shop on a double chest, both chests must not be
  protected/in a protected region
- To extend a shop into a protected region (e.g. WorldGuard/Towny), you
  need permission (shopchest.extend.protected)
- Added no-permission message for "shopchest.extend.protected"
2016-11-20 14:18:36 +01:00
Eric
198f83c738 Fix hologram interaction in 1.8.x 2016-11-19 21:34:59 +01:00
Eric
6dcedc9bff Added messages when WorldGuard denies shop use 2016-11-19 14:45:18 +01:00
Eric
fdfc7419d9 Permission constants & No more Vault permission system 2016-11-18 22:29:28 +01:00
Eric
58ad504f7f Add hologram interaction (configurable) 2016-11-18 17:58:50 +01:00
Eric
7e044eb7b1 Fixed selling to full admin shops and support for lower versions 2016-11-17 20:16:42 +01:00
Eric
ff406abf2d Added WorldGuard support
Might contain issues, as it's not tested extensively
2016-11-13 13:43:03 +01:00
Eric
acef90335c Changed/Fixed hologram appearing
I didn't like the look of the performance saving, as the hologram would appear at a lower distance then it would disappear
2016-11-12 15:43:56 +01:00
Eric
8ecea0d938 Fix NPEs caused by non-existent Shop Items 2016-11-12 15:17:13 +01:00
Eric
3f3ddfe66f Fixed issues with ItemMeta
(Mostly issues with books)
Fixes #30
2016-11-12 15:03:19 +01:00
Eric
f75e07aad0 Show shop item and hologram on creation 2016-10-12 18:30:51 +02:00
Eric
c9c5b5b37d Slightly improved economy transactions
- Only start the second economy transaction after the first one succeeds
- Undo the first transaction if the second one fails
2016-09-07 17:00:59 +02:00
Eric
c9a63c7cbb Display "Disabled" instead of 0$ when selling/buying is disabled 2016-09-06 11:53:06 +02:00
Eric
418c82e4bf Display UUID when a vendor's name is not found 2016-08-19 12:48:59 +02:00
Eric
d1453d5839 Added economy log in database file
Closes #19
2016-08-18 13:30:14 +02:00
Eric
efaec3cd93 Fixed admin shops 2016-08-17 13:14:35 +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
ade20c8255 Remove a shop by breaking its chest
I'm gonna close #8 with this.
2016-08-10 13:46:52 +02:00
Eric
bb54c7da67 Fixed NPE when player clicks in air 2016-08-06 13:32:37 +02:00
Eric
d99f63a8e5 Now displays if a potion is extended 2016-08-05 22:16:14 +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