Commit Graph

405 Commits

Author SHA1 Message Date
Eric
1e38edc7a0 Improved database interaction 2017-03-25 15:17:33 +01:00
Eric
7b3dac61ac Query and update SQL database asynchronously 2017-03-25 15:17:32 +01:00
Eric
248cf08811 Added tab completion for commands
Had to change the way the custom command is registered,
so I could add a tab completer
2017-03-25 15:12:09 +01:00
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
1de56fcf6a Protect holograms from damage 2017-03-25 13:24:05 +01:00
Eric
ea41f6759e Shop chests can only be broken with an axe 2017-03-25 13:18:52 +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
d2b75295ca Added null checks for Hologram in WorldGuardListener 2017-03-17 15:00:35 +01:00
Eric
39822fe8df Added AuthMe support
Closes #64
2017-03-17 14:59:34 +01:00
Eric
8efdd8768e Disable auto shop reloads by default 2017-03-17 14:21:20 +01:00
Eric
268d69c077 Only update shops if player has moved 2017-03-17 14:04:29 +01:00
Eric
598f9434e6 Switch from MCStats to bStats
New stats link: https://bstats.org/plugin/bukkit/ShopChest
2017-03-15 18:40:45 +01:00
Eric
6d6595c642 Fixed Events
Added missing static method getHandlerList
2017-03-14 15:54:47 +01:00
Eric
e29da1279b Catch IllegalStateException for getLineOfSight
Closes #79
2017-02-15 17:04:32 +01:00
Eric
00323510bb Only show shops to players who point on the shop (configurable) 2017-02-10 17:59:08 +01:00
Eric
3459a8ccba Stop shop updater when server is empty and restart on join 2017-02-08 21:49:23 +01:00
Eric
9583b77413 Fix NPE on player join
Fixes #77
2017-02-08 14:04:23 +01:00
Eric
8b8c7d4d73 Show and hide holograms asynchronously 2017-02-05 17:22:37 +01:00
Eric
bae02c910a Fixed fallback command "/shopchest:shop" 2017-02-05 17:19:31 +01:00
Eric
cdb862d435 Updated item names file 2017-02-05 15:04:57 +01:00
Eric
4d7f5dc3b7 Fixed holograms in the end world
Fixes #74
2017-02-05 14:51:46 +01:00
Eric
150c178679 Check if item names in config are valid 2017-01-28 12:23:10 +01:00
Eric
c269cea82b Fixed holograms from being displayed too far away after teleporting 2017-01-21 13:30:39 +01:00
Eric
f5abe32f6e Update README.md 2017-01-18 17:01:19 +01:00
Eric
7108624bbe Update README.md 2017-01-13 23:05:45 +01:00
Eric
a755c065d2 Fixed git commit hash in version
Changed plugin to "scriptus" by md_5
2017-01-13 22:56:17 +01:00
Eric
f0a0d760a0 Fixed NPE on hologram updating
Fixes #63
2017-01-13 15:31:28 +01:00
Eric
75ffa46d9d Update README.md 2017-01-08 18:19:24 +01:00
Eric
879ac652c4 Only build javadoc with "release" profile 2017-01-08 18:09:54 +01:00
Eric
b007ffb133 Add git commit hash to version
Use profile "release" to create a version without the commit hash
2017-01-08 17:54:17 +01:00
Eric
5a40f84e21 Shorten lines in config file 2017-01-08 17:05:29 +01:00
Eric
39e3b4f837 Fixed error when clicking an entity that is not an ArmorStand
(only occurred with WorldGuard)
2017-01-06 13:21:06 +01:00
Eric
c78f81a1b6 Fixed no permission message when removing an admin shop (en_US) 2017-01-05 14:36:32 +01:00
Eric
30ede5e01e Added configurable maximum prices
Closes #55
2017-01-05 14:35:42 +01:00
Eric
bdf39503ab Added regex information to vendor-out-of-stock message 2017-01-05 14:15:09 +01:00
Eric
4c5ec37588 Call ShopUpdateEvent synchronously 2017-01-05 14:13:07 +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
e08b09fe3f Allow better customization of hologram lift
Closes #38
2017-01-04 14:50:11 +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
f54c2ff7ff Shortened method to check WorldGuard permission 2017-01-03 14:28:54 +01:00
Eric
8217cdef6f Allow customization of custom WorldGuard flags' default values
Closes #45
2017-01-03 13:59:09 +01:00
Eric
49398547f1 Hide WorldGuard message when interacting with hologram 2017-01-03 13:34:34 +01:00
Eric
8e867a7c1d Hopefully fixed item meta issues for good 2017-01-03 13:06:29 +01:00
Eric
f1712a6bce Added 1.11.2 translation values and the missing one for "Nether Wart" 2017-01-02 19:20:41 +01:00
Eric
222b553a8e Fixed Shulker Boxes
Closes #53
2017-01-02 17:50:46 +01:00