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
b73ad05034
Use permission based shop limits
...
This also removes the permission "shopchest.limits"
Closes #27
2016-11-12 15:02:10 +01:00
Eric
8452fad8a3
Hide messages in the console on auto reload
2016-10-12 20:09:18 +02:00
Eric
f75e07aad0
Show shop item and hologram on creation
2016-10-12 18:30:51 +02:00
Eric
6009ad20c3
Amount must be greater than 0
2016-10-12 18:25:36 +02:00
Eric
99a15fd8f6
Fix ocelot spawn eggs
...
Closes #29
2016-09-27 20:26:04 +02:00
Eric
076846d74e
Fix error when a book doesn't have a title (e.g. book and quill)
2016-09-27 20:24:50 +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
94011c997d
Improved illogical condition whether buying/selling is enabled
2016-09-06 11:53:20 +02:00
Eric
c9a63c7cbb
Display "Disabled" instead of 0$ when selling/buying is disabled
2016-09-06 11:53:06 +02:00
Eric
da772fcbd6
Shop items now protected from spreading and growing blocks
2016-09-06 11:16:36 +02:00
Eric
f76ec6fe2d
Added null check for shop item when updating visibility
2016-08-20 12:41:27 +02:00
Eric
6a96e235a6
Readded autoReconnect parameter to MySQL connection url
2016-08-20 12:38:53 +02:00
Eric
684a0b3c8a
Use bukkit's ChatColor
2016-08-19 19:47:12 +02:00
Eric
1b51318dbe
Fixed shop items after teleporting far or changing worlds
2016-08-19 14:34:02 +02:00
Eric
418c82e4bf
Display UUID when a vendor's name is not found
2016-08-19 12:48:59 +02:00
Eric
c8f4e8980e
Fixed error message in console after teleporting
...
p.getWorld() does not return the right world when the process of teleporting has not yet finished. We need to use the world of the passed location object, which in the PlayerTeleportEvent is e.getTo()
2016-08-18 22:59:12 +02:00
MineTheCube
e94463ccbe
Make logEconomy asynchronous ( #21 )
2016-08-18 16:59:57 +02:00
Eric
7c27fc0d54
Added configurable value "allow-decimals-in-price"
...
When disabled, "auto-calculate-item-amount" will be disabled too, even if it's set to true in the config.
This closes #20
2016-08-18 15:33:58 +02:00
Eric
6205dfbd65
Merge pull request #18 from MineTheCube/master
...
- Improve listeners performances
- Fixes #17
2016-08-18 15:03:37 +02:00
MineTheCube
1c079b5abe
Change method name to what it really does
2016-08-18 14:43:36 +02:00
MineTheCube
55a3bb87d3
Change event priority and ignore cancelled
...
Make it consistent with ShopItemListener#onPlayerMove(PlayerMoveEvent)
2016-08-18 14:34:43 +02:00
Eric
d1453d5839
Added economy log in database file
...
Closes #19
2016-08-18 13:30:14 +02:00
MineTheCube
c2b6281410
Improve listeners performances
...
This should slightly improve performances, especially with a lot of shops.
Now shops are updated only on block changes and not every move event.
It also uses distanceSquared instead of distance to avoid sqrt operations.
2016-08-18 02:14:59 +02:00
Eric
be52d2c623
Added config value "maximal-item-distance"
...
This should fix the issue, that shop items are despawning and not spawning again after the chunk unloads.
The item spawn delay was removed.
2016-08-17 21:26:55 +02:00
Eric
f8dd53bf31
Use #getNMSClass in #sendPacket instead of Class#forName
2016-08-17 13:16:37 +02:00
Eric
efaec3cd93
Fixed admin shops
2016-08-17 13:14:35 +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
af3b6612b1
Fixed version and JsonBuilder
2016-08-16 19:59:45 +02:00
Eric
c220f269c8
Reset shop item after cancelled shop break
2016-08-16 15:11:44 +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
aa2051e9cc
Added configurable ping interval to MySQL
2016-08-16 12:26:35 +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
6bce68768a
Only apply additional hologram lift on two-line-shops
...
(When "two-line-prices" is enabled and the shop has buying and selling enabled)
2016-08-10 13:47:25 +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
5a975661eb
Added way to show prices in hologram below each other
2016-08-09 22:10:44 +02:00
Eric
9a9f95eec2
Added extra class for BlockExplodeEvent
...
BlockExplodeEvent class is not found in v1.8_R1, and if a class is not found in a listener, the whole listener with all its event won't get registered.
2016-08-09 15:04:34 +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
bb54c7da67
Fixed NPE when player clicks in air
2016-08-06 13:32:37 +02:00
Eric
417aaa36d3
Allow not officially supported server versions
...
As ShopChest is now using reflection, if the NMS code didn't change much in the new version, it may work (except for unknown item names)
2016-08-06 12:23:24 +02:00
Eric
312e7c9dca
Disconnect from database when plugin disables
...
+ Reconnect to database on shop reload or server reload
+ A few debug messages were added on SQLExceptions
2016-08-06 12:17:53 +02:00
Eric
d99f63a8e5
Now displays if a potion is extended
2016-08-05 22:16:14 +02:00
Eric
20badd36fb
Added possibility to append potion level to item name
2016-08-05 21:44:11 +02:00
Eric
7e24b8e596
Changed message when translation not found
...
Apparently the old message wasn't clear enough
2016-08-05 21:25:57 +02:00
Eric
d3111a3670
Debug timestamp should be in 24h format
2016-08-05 16:42:01 +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