Commit Graph

99 Commits

Author SHA1 Message Date
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
be17d366d9 Added missing shopchest.config permission 2016-08-09 17:47:03 +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
Eric
54a1b637c6 Converted ShopChest to Maven Project 2016-07-03 20:59:29 +02:00
Eric
dae00a2013 Updated Javadoc 2016-07-02 14:22:47 +02:00
Eric
8b736da181 Prevent liquids from washing shop items away 2016-07-01 17:09:49 +02:00
Eric
582cc76c83 Add player head item name 2016-07-01 16:43:55 +02:00
Eric
c975437b66 Fix 1.9 Item names being loaded in 1.8 2016-07-01 16:15:12 +02:00
Eric
8bef79d47f Prevent blocks from being placed or pushed above the chest
Fixes #6
2016-07-01 16:13:44 +02:00
Eric
57c6955d6a Creation price should only be withdrawn if the shop is created successfully 2016-07-01 14:33:13 +02:00
Eric
8f75f9f90d Check database connection before accessing it
This hopefully fixes #7
2016-07-01 14:28:31 +02:00
Eric
428d4bf029 Fix typo in javadoc of UpdateChecker 2016-07-01 13:50:40 +02:00
Eric
80a32bf0dc Added Javadoc 2016-06-30 21:59:06 +02:00
Eric Biedert
f52be003ab ItemMeta of shop item should be applied + Remove Items with "shopItem" metadata on disable 2016-06-28 21:33:11 +02:00
Eric Biedert
3b734ac429 Code Cleanup 2016-06-28 21:19:05 +02:00
Eric Biedert
4470300624 Renamed Listeners and their package 2016-06-28 18:30:48 +02:00
Eric Biedert
82cffd8c31 Fixed some localization errors 2016-06-24 19:23:56 +02:00
Eric Biedert
67016787df Double Chests shouldn't be counted twice 2016-06-24 18:39:31 +02:00
Eric Biedert
2b9a2c957f Admin shops can be excluded of shop limits 2016-06-24 18:13:33 +02:00
Eric Biedert
04e63c6225 Prevent Zombies from picking up shop item 2016-06-24 14:53:20 +02:00
Eric
08286e6beb Added configurable language for everything and more
This can read the default minecraft language files, but in order to
translate the messages, you need to add the message section from the
en_US.lang.
Also, spawn eggs will work now, the title of music discs will be
displayed in the info sections and "tipped arrow effect" is now named
"potion effect" and is displayed also if the product is a potion,
splashed potion or a lingering potion (and of course tipped arrows).
The message configuration is no longer found in the config.yml file, but
has gone to the .lang file, so you need to reconfigure every message!
As the Jsoup library is no longer needed, the filesize of the final jar
shrunk quite a bit.
Maybe there are some more changes, which I already forgot.
2016-06-22 20:51:29 +02:00
Eric
77d474fb03 Fix Item Names for Heads and Colored Banners 2016-06-22 20:51:29 +02:00
Eric
22a1876d6e Renamed some Items 2016-06-09 21:35:51 +02:00
Eric
e5ed1918ad Ensure that all shop item get removed on disable 2016-06-09 20:34:10 +02:00
Eric
9a37efd49e Fixed explosion protection 2016-06-09 19:46:40 +02:00
Eric
479bf49286 Creator of an admin shop shouldn't need enough money to let players sell 2016-06-09 19:39:00 +02:00
Eric
8def855a43 Added 1.10 Support (1.10_R1) 2016-06-09 19:34:48 +02:00
Eric
260bc8f594 Format Prices with Vault
ShopChest will now use the currency symbol specified in the configuration of the economy plugin.
2016-06-08 16:28:47 +02:00
Eric
01886ca88a Fix money transfers on sales 2016-06-08 16:17:33 +02:00
Eric
18457357ba Hide vendor and in-stock in info message if Admin Shop 2016-06-08 16:08:49 +02:00
Eric
f155b67f4c Players should be able to open their sell-only shops
Also, they should be able to open shops even when they don't have permission to buy something
2016-06-08 16:06:36 +02:00
Eric
1666051eb8 Display '∞' instead of '-1' in the shop limits message 2016-06-05 18:53:46 +02:00
Eric
b423fbd98b Shops created at double chests will be saved now 2016-06-05 18:46:14 +02:00
Eric
e1aaa34c92 Better display prices
Examples:
- "3$" instead of "3.0$"
- "3.50$" instead of "3.5$"
2016-06-03 18:20:55 +02:00
Eric
77365f388c Changed method of adding and removing a shop
Well, I had to change quite a bit and hopefully this fixes the issue,
that shop items can be collected and that shops aren't saved or reloaded
correctly.
2016-06-03 17:58:53 +02:00