Commit Graph

53 Commits

Author SHA1 Message Date
Eric 9537d93688 Update localization to 1.17 2021-07-29 22:51:38 +02:00
Eric acd447c6ec First steps towards 1.17 support
The plugin works, but the localization part has yet to be done, and
support for other plugins has to be updated to the latest versions.
2021-07-24 23:40:53 +02:00
Eric d3574f1519 Add support for 1.16.2 2020-08-22 17:59:05 +02:00
Eric 056989437d Add support for 1.16 2020-06-25 19:52:32 +02:00
Eric 443cab6df5 Remove "normal" from usage of create command 2020-03-25 14:27:48 +01:00
Eric 1b34ba1fbd Organize imports 2020-03-25 14:22:50 +01:00
Eric 8ad730376d Optimize LanguageUtils#getEnchantmentString(...) 2020-03-01 20:17:29 +01:00
Eric 8ed16d7f3f Add support for 1.15
Fixes #291
2019-12-15 15:32:05 +01: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 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 e402c21e1b Fix translation name errors 2019-04-28 22:10:58 +02:00
Eric 8581622a57 Add support for 1.14 (untested) 2019-04-27 17:38:45 +02:00
Eric 16498424a8 Fix some NPEs for localizations 2018-07-30 17:52:32 +02:00
Eric 8ecc137835 Fixed command description (German and fallback) 2018-07-27 21:44:12 +02:00
Eric 1a0920f239 Add product preview in shop info
This removes shop info messages for potion effect, enchantments,
music disc title and book generation.
2018-07-26 15:52:55 +02:00
Eric 9a953f88f3 Fix item name for potions and some other items 2018-07-26 14:20:49 +02:00
Eric 4cb59b18de Re-add support for Minecraft 1.8 - 1.12.2 2018-07-25 16:54:22 +02:00
Eric 94a51373b5 Support Minecraft 1.13
Drops support for older Minecraft verions (1.8 - 1.12.2)
2018-07-23 18:38:06 +02:00
Eric 5bfb0a1a22 Renamed config variables 2018-07-23 17:57:01 +02:00
Eric 2340eb67e1 Added config option to confirm buying and selling
Closes #128
2017-08-15 12:44:03 +02:00
Eric 408abebbfa Added header and footer to help message (translatable)
+ Fixed translations with one or more equal signs in its value
2017-06-08 14:02:34 +02:00
Eric f69299e20a Fixed typos in message enum names 2017-06-05 15:13:26 +02:00
Eric 58b5eb20ef Removed unnecessary placeholder checks 2017-06-05 15:12:09 +02:00
Eric c4e7e5a8ab Added auto removal of click type after 15 seconds 2017-06-05 14:20:00 +02:00
Eric 18d3e36390 Added notification for withdrawal of shop creation price 2017-06-05 13:39:01 +02:00
Eric 57e57dc71e Improved configuration of command description messages
+ Renamed all occurrences of "regex" to "placeholder"
2017-06-02 14:44:08 +02:00
Eric 5589ab6655 Added command "/shop removeall <player>"
- Needs permission "shopchest.remove.other"

Closes #101
2017-05-25 14:18:42 +02:00
Eric 4dde2d9f53 Prevent shop use in creative mode
Closes #100
2017-05-25 14:18:35 +02:00
Eric ca064da094 You can now add scripts to the hologram format itself
Use curly brackets to add a script to the format.
Also, "regex" has been renamed to "placeholder".
2017-05-23 15:18:02 +02:00
Eric e1f076bfcd Vastly extended hologram configuration
- You can now completely customize every part of the hologram
- Added new placeholders "%STOCK%" and "%MAX-STACK%"
  => Now uses "%STOCK%" instead of "%AMOUNT%" in the in-stock message)
- Armor Stands are no longer spawned with NMS and reflection
- Hologram texts can dynamically change (e.g. with in-stock info)
- Might contain a few issues
2017-05-20 20:15:54 +02:00
Eric 63a0509248 Added support for Minecraft 1.12-pre2 2017-05-15 20:29:38 +02:00
Eric bf6f24313b Added book generation to shop info message 2017-04-16 18:31:50 +02:00
Eric 4a7202df6f Added support for PlotSquared
Three new custom flags will be available for every plot to set:
- create-shop
- use-shop
- use-admin-shop

These flags can be set to the following values
to allow the flag to that group. If you set the group to
members, trusted members and owners are also allowed the flag:
- owners
- trusted
- members
- everyone
- none

The default value for the flags will be 'none', so be sure to
change it in order to create or use shops!

The flag 'create-shop' can be bypassed by granting the permission
'shopchest.create.protected' (which is not recommended), and the
other flags can be bypassed by granting the permission
'shopchest.external.bypass'.

This closes #87
2017-03-28 14:37:12 +02:00
Eric dd7a82b49e Added notification about offline revenue on join
Closes #47
2017-03-25 15:17:35 +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 30ede5e01e Added configurable maximum prices
Closes #55
2017-01-05 14:35:42 +01:00
Eric 4194c72bd4 Added vendor information about a sold out shop 2017-01-04 18:46:50 +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 f1712a6bce Added 1.11.2 translation values and the missing one for "Nether Wart" 2017-01-02 19:20:41 +01:00
Eric 04a6d836b9 Added towny support
- Players can only create shops in shop plots, not in wilderness or normal
  plots
- Added permission "shopchest.extend.protected"
- Changed permission "shopchest.extendOther" to "shopchest.extend.other"
- When creating a shop on a double chest, both chests must not be
  protected/in a protected region
- To extend a shop into a protected region (e.g. WorldGuard/Towny), you
  need permission (shopchest.extend.protected)
- Added no-permission message for "shopchest.extend.protected"
2016-11-20 14:18:36 +01:00
Eric 6dcedc9bff Added messages when WorldGuard denies shop use 2016-11-19 14:45:18 +01:00
Eric 1d7a534fe4 Added permission for extending other players' shop chests 2016-11-18 22:29:27 +01:00
Eric b7aa71599e Add support for 1.11 2016-11-17 20:30:26 +01:00
Eric b73ad05034 Use permission based shop limits
This also removes the permission "shopchest.limits"
Closes #27
2016-11-12 15:02:10 +01:00
Eric 6009ad20c3 Amount must be greater than 0 2016-10-12 18:25:36 +02:00
Eric 076846d74e Fix error when a book doesn't have a title (e.g. book and quill) 2016-09-27 20:24:50 +02:00
Eric c9a63c7cbb Display "Disabled" instead of 0$ when selling/buying is disabled 2016-09-06 11:53:06 +02:00
Eric 684a0b3c8a Use bukkit's ChatColor 2016-08-19 19:47:12 +02:00
Eric 7c27fc0d54 Added configurable value "allow-decimals-in-price"
When disabled, "auto-calculate-item-amount" will be disabled too, even if it's set to true in the config.
This closes #20
2016-08-18 15:33:58 +02:00