Commit Graph

110 Commits

Author SHA1 Message Date
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