Commit Graph

226 Commits

Author SHA1 Message Date
Eric
af3b6612b1 Fixed version and JsonBuilder 2016-08-16 19:59:45 +02:00
Eric
582fa5dadc Changed version to 1.10 2016-08-16 17:53:33 +02:00
Eric
a8f1051dc2 Changed description of ping-interval in config file 2016-08-16 15:17:05 +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
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
5039cef665 Update README.md 2016-08-05 15:33:42 +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
e8ab8e33c3 Added a few debug messages 2016-08-05 12:46:41 +02:00
Eric
76ea273ad6 Changed way of checking if chests are protected
If another plugin cancelled the PlayerInteractEvent before ShopChest, the player is not permitted to create a shop on the clicked chest. The dependency of 'Lockette' is no longer needed. It might occur that a plugin, which is not used for protections, cancels the PlayerInteractEvent so a shop cannot be created.

This closes #14
2016-08-04 21:17:23 +02:00
Eric
7dcd61a56a Fixed typo in debug message when a player reloads the shops 2016-08-04 21:17:23 +02:00
Eric
6c38c74e54 Removed bukkit dependency
The same classes are also found in the spigot-api
2016-08-04 21:17:22 +02:00
Eric
ec62d3593f Prevent players from fishing shop items 2016-08-04 21:17:02 +02:00
Eric
ee90215dd6 Changed version to 1.9.1 2016-08-03 16:32:33 +02:00
Eric
fc9500bce3 Updated vault repository 2016-08-03 16:32:32 +02:00
Eric
da025ab7c8 Shop limit "-1" should be displayed as "∞" 2016-08-03 16:30:02 +02:00
Eric
67c87cef90 Fixed link in update checker 2016-08-03 16:13:15 +02:00
Eric
6ea6f155fd Added debug log (in file)
- Added debug log (configurable)
- Added "message.noPermission.create-protected"
- A bit code cleanup
- Renamed "Commands" to "ShopCommand"
2016-08-03 16:11:25 +02:00
Eric
05cd2eeb4e Players can now sell broken items if configured
To automatically reconnect to the MySQL server, ShopChest is now using a much simpler way: Just added the attribute "autoReconnect=true" to the end of the link, instead of using a configurable value of reconnect attempts.
2016-08-02 13:23:47 +02:00
Eric
e522746eeb Fixed Potion Shops on 1.8.x 2016-07-30 17:44:47 +02:00
Eric
eaa2f056eb LICENSE should be a .txt file 2016-07-19 17:49:26 +02:00
Eric
1c126e13f7 Create LICENSE 2016-07-19 17:48:59 +02:00
Eric
70ca3fe3c8 Update README.md 2016-07-15 21:25:05 +02:00
Eric
85b368d710 Update README.md 2016-07-14 17:15:01 +02:00
Eric
c2ea1fb076 Changed versions to 1.9.0.1 2016-07-14 16:35:00 +02:00
Eric
a453d96f86 Fixed holograms not being shown on some chests 2016-07-14 16:16:50 +02:00
Eric
e2828aaae8 Remove version from final jar name 2016-07-13 16:40:19 +02:00
Eric
330b671cfe Fixed javadoc of ShopReloadEvent 2016-07-13 16:19:18 +02:00
Eric
5ac136ffcc Improved handling with shops that got errors when loading
An exception will now be thrown, when there's no space above the chest (only if items should be shown).
Holograms now won't be shown to the player if the shop has no chest, but the shop will get removed.
2016-07-13 15:53:50 +02:00
Eric
802e3585b8 Hardcoded reloaded message in reload timer 2016-07-13 15:05:50 +02:00
Eric
dc40e30301 ShopUtils no longer contains static methods 2016-07-13 15:03:54 +02:00
Eric
225c59c2ea Added reload-timer (can be configured) 2016-07-13 14:34:09 +02:00
Eric
1d22e28954 Added configuration values
You can now set whether a shop should be removed from the database if an error occurred when loading it, and you can set whether the floating shop item should be shown/enabled.
2016-07-13 14:05:56 +02:00
Eric
47414009bf Change configuration values per command
This will probably be a bit buggy, so I recommend to keep editing the file manually. Also, all of the comments in the config.yml will get deleted after using the command!
This closes #10.
2016-07-08 16:56:55 +02:00
Eric
34468ef623 Changed version to 1.9.0
There will be some more changes, so the update is coming soon...
Also, the properties in the plugin.yml are now extracted from the pom.xml
2016-07-06 21:59:42 +02:00