Commit Graph

599 Commits

Author SHA1 Message Date
Eric
50b69f6445 Update API for better item selection handling 2019-08-17 21:35:39 +02:00
Eric
57b685ecb9 Add API for shop command and sub commands 2019-08-17 21:34:09 +02:00
Eric
5ddda4cce5 Add ShopSelectItemEvent 2019-08-17 14:08:29 +02:00
Eric
d2af5fb0ad Make ShopProduct abstract class 2019-08-17 14:07:51 +02:00
Eric
5c2f3022b5 Use consumers as callback functions 2019-08-17 14:07:10 +02:00
Eric
70f9ff3914 Update flag API 2019-08-17 14:05:45 +02:00
Eric
24e0f0d064 Add formatEconomy to API 2019-08-17 14:05:00 +02:00
Eric
3c6127138f Updates to the API
Added interface for a wrapped player and and for a flag
2019-08-16 13:23:28 +02:00
Eric
04b47e2bb0 Small update to API documentation 2019-08-14 00:21:08 +02:00
Eric
ef6ef3dc1c Update javadoc of events to match rest of API 2019-08-13 20:59:56 +02:00
Eric
34de6022e7 Put API and implementation in seperate modules 2019-08-13 20:02:01 +02:00
Eric
59e111ea96 Update gitignore 2019-08-13 18:54:43 +02:00
Eric
3684f96338 Begin work for proper API 2019-08-13 18:19:30 +02:00
Eric
2a1375254e Add generated serial version UIDs to exceptions 2019-08-07 23:25:04 +02:00
Eric
9a8491a79c Remove unused line 2019-08-07 23:22:03 +02:00
Eric
0896a52556 Add ShopProduct#getLocalizedName for easier access 2019-08-07 23:21:29 +02:00
Eric
6d57267492 Fix removing double chest shops without chests
When AreaShop integration was enabled and a region with double chest
shops was reset and sold/unrented, those shops woudn't be removed.

A method to remove a shop by its ID was introduced as a fix.
2019-08-07 14:54:16 +02:00
Eric
9c7170e109 Don't remove shops when not iterating over copy 2019-08-07 13:34:26 +02:00
Eric
d53ee08db9 Don't ever un-cancel interact event 2019-08-05 22:32:49 +02:00
Eric
fed894a9b0 Handle custom WorldGuard flags not existing
Don't query and try to use flags if they haven't been registered
2019-07-24 14:45:45 +02:00
Eric
e82c28e5e8 Improve output of database errors 2019-07-22 16:07:30 +02:00
Eric
67c55be518 Add serverTimezone to MySQL connection URL 2019-07-22 15:22:41 +02:00
Eric
27a3d8da9e Relocate all shaded dependencies
Should prevent attempts of duplicate class definitions
2019-07-19 22:22:11 +02:00
Eric
fe18f38944 Fix holograms for 1.9.x 2019-06-22 17:47:51 +02:00
Eric
da27a4e846 Use guava's Optional for data watcher creation 2019-06-22 17:25:58 +02:00
Eric
0617d3bc1b Use marker armor stands
Allows players to click through holograms for easier shop interaction.

Only available on 1.8.3 and higher
2019-06-22 17:18:44 +02:00
Eric
27083e5093 Add convenience methods for database versioning 2019-06-16 17:54:55 +02:00
Eric
bc284a0717 Only use one date format instance 2019-06-16 17:32:27 +02:00
Eric
a2756620f5 Show "Updating database finished" message 2019-06-16 16:47:16 +02:00
Eric
1b1e5de47e Initialize SQLite driver before use 2019-06-16 16:47:16 +02:00
Eric
341c17b047 Make Towny dependency system scope
Repository seems to not be available
2019-06-16 16:47:16 +02:00
Eric
e3dadb5896 Add version for database for better future updates 2019-06-16 16:47:15 +02:00
Eric
3730eb9703 Disable plugin when shops fail to load or reload 2019-06-16 15:58:02 +02:00
Eric
64c9c8a74d Update GriefPrevention dependency 2019-06-15 14:40:06 +02:00
Eric
dc4446a2f9 Update HikariCP and slf4j dependencies 2019-06-15 14:37:17 +02:00
Eric
381ce0a68e Update IslandWorld dependency
IslandWorld v8.5 is the latest free version
A free API for premium versions is not available
2019-06-15 14:20:09 +02:00
Eric
b35f22a069 Update Towny dependency
Now uses maven repository of Articdive
2019-06-15 14:04:52 +02:00
Eric
9df50e8d87 Add metrics chart for creative mode setting 2019-06-15 13:55:12 +02:00
Eric
2e31bbc2b5 Fix another creative mode exploit 2019-06-14 21:16:06 +02:00
Eric
b090751d89 Disable creative mode item selection by default
Also added a short warning for possible exploits
2019-06-14 21:11:22 +02:00
Eric
00bdbaee53 Fix exploit that allows staying in creative mode 2019-06-13 13:11:55 +02:00
Eric
060c8a7295 Fix typo 2019-06-04 21:00:04 +02:00
Eric
27212f0496 Prevent NPEs when disabling plugin in onEnable 2019-06-04 16:12:55 +02:00
Eric
c9ce45dc0c Add chest space to shop info message
Space only shown if selling enabled, stock only shown if buying enabled
2019-06-03 17:03:24 +02:00
Eric
e6393ecd6c Added refund to "Shop removed" message
+ Fixed refund option being ignored
2019-06-03 16:53:23 +02:00
Eric
9646bd0318 Update config descriptions 2019-06-03 16:38:25 +02:00
Eric
48bb669c01 Remove a couple config options
- Shop items cannot be hidden
- Hologram interaction had to be removed
- Hopper/Explosion protection cannot be disabled
- Admin shops cannot be counted in shop limit
- Only the nearest shop the player points at is shown
2019-06-03 16:38:25 +02:00
Eric
aea88b9f3b Update dependency versions 2019-05-28 21:15:09 +02:00
Eric
ea894783fb Allow shop item to be selected from creative menu
If the player does not hold an item, he is asked to select one.
2019-05-28 15:53:26 +02:00
Eric
655e1f8b07 Automatically add missing translation entries
Entries will be appended to the bottom of the selected language file
with English default values
2019-05-09 14:42:33 +02:00