From bc4370730cc69b941ed16b21d969fcbaa75a12ed Mon Sep 17 00:00:00 2001 From: "craftaro-plugins-overview[bot]" <111250264+craftaro-plugins-overview[bot]@users.noreply.github.com> Date: Tue, 18 Jul 2023 15:02:23 +0200 Subject: [PATCH] Updates contents of README.md (#2) Co-authored-by: craftaro-plugins-overview[bot] <111250264+craftaro-plugins-overview[bot]@users.noreply.github.com> --- README.md | 130 +++++++++++------------------------------------------- 1 file changed, 25 insertions(+), 105 deletions(-) diff --git a/README.md b/README.md index 79b2ee1..9d8b8d2 100644 --- a/README.md +++ b/README.md @@ -1,125 +1,45 @@
-EpicVouchers + # EpicVouchers +Create vouchers that players can claim for rewards with seemingly infinite possibilities. Customize your server’s vouchers through an intuitive in-game editor -**Create vouchers that players can claim for rewards with seemingly infinite possibilities.** -**Customize your server’s vouchers through an intuitive in-game editor.** - -[![Discord](https://img.shields.io/discord/293212540723396608?color=7289DA&label=Discord&logo=discord&logoColor=7289DA)](https://discord.gg/songoda) -[![Patreon](https://img.shields.io/badge/-Support_on_Patreon-F96854.svg?logo=patreon&style=flat&logoColor=white)](https://www.patreon.com/join/songoda) +[![Discord][Discord shield]][Discord invite] +[![Patreon][Patreon shield]][Patreon page]
-[![Latest version](https://img.shields.io/github/v/tag/songoda/EpicVouchers?include_prereleases&label=Latest&logo=github&labelColor=black)](https://songoda.com/marketplace/product/25) -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=songoda_EpicVouchers&metric=alert_status)](https://sonarcloud.io/dashboard?id=songoda_EpicVouchers) -[![GitHub last commit](https://img.shields.io/github/last-commit/songoda/EpicVouchers?label=Last+commit)](https://github.com/songoda/EpicVouchers/commits) -
-[![bStats Servers](https://img.shields.io/bstats/servers/4209?label=Servers)](https://bstats.org/plugin/bukkit/EpicVouchers/4209) +[![Latest version][Latest version shield]][Marketplace page] +[![bStats Servers][bStats shield]][bStats page]
-## Table of Contents -* [Introduction](#introduction) -* [Marketplace](#marketplace) -* [Documentation](#documentation) -* [Developers API](#developers-api) -* [Support](#support) -* [Suggestions](#suggestions) - -## Introduction - -EpicVouchers is simple to use voucher plugin, that gives you the ability to reward players automatically without needing -to give them permission to a command or manually run a command on a player yourself. This plugin is perfect for cosmetic -rewards, selling in-game ranks, crate and kit rewards, unique shop designs, etc. The plugin also features an in-game GUI -that allows you to create, edit and delete vouchers without needing to configurate the files, or restart/reload the -server to apply the changes. It's a perfect plugin for production servers, and gives you unlimited ways to reward your -loyal players easily. - -## Marketplace - -You can visit [our marketplace](https://songoda.com/marketplace/product/25) to download EpicVouchers as well as take a +## Download (Marketplace) +You can visit [our marketplace][Marketplace page] to download EpicVouchers as well as take a look at many other fantastic plugins which are sure to catch your eye. ## Documentation - -You can find all the information about EpicAnchors, including dependencies, commands, permissions and incompatible -plugins on [our wiki](https://wiki.songoda.com/Epic_Vouchers). +You can find all the information about EpicVouchers, including dependencies, commands, permissions and incompatible +plugins on [our wiki][Plugin wiki]. Feel free to also contribute to the wiki as a way to help others in the community with using the plugin. -## Developers API - -Here is an example with built-in methods for developers that want to use the EpicVouchers API for their own resources. -This is a pretty long example, so take that into consideration when looking at the example, but I am sure that you will -understand the usage of it quickly. - -```java -public class VouchersExample implements Listener { - @EventHandler - public void onRedeem(VoucherRedeemEvent event) { - // Returns the player that redeemed the voucher. - Player player = event.getPlayer(); - // Returns the name of the redeemed voucher. - String voucher = event.getVoucher(); - // Returns the ItemStack of the redeemed voucher. - ItemStack item = event.getItem(); - // Returns if the voucher was redeemed manual or not. - boolean manual = event.getManual(); - // Returns if the event is cancelled or not. - boolean cancelled = event.isCancelled(); - // Get a list of handlers for this event. - HandlerList handlers = event.getHandlers(); - // Cancel the event with a boolean. - event.setCancelled(true); - } - - @EventHandler - public void onForceRedeem(ForceRedeemEvent event) { - // Returns the player that redeemed the voucher. - Player player = event.getPlayer(); - // Returns the name of the redeemed voucher. - String voucher = event.getVoucher(); - // Returns the amount of vouchers that were redeemed. - int amount = event.getAmount(); - // Returns the sender that forced the players. - CommandSender sender = event.getSender(); - // Returns if the event is cancelled or not. - boolean cancelled = event.isCancelled(); - // Get a list of handlers for this event. - HandlerList handlers = event.getHandlers(); - // Cancel the event with a boolean. - event.setCancelled(true); - } - - @EventHandler - public void onReceive(VoucherReceiveEvent event) { - // Returns the player that received the voucher. - Player player = event.getPlayer(); - // Returns the name of the received voucher. - String voucher = event.getVoucher(); - // Returns the ItemStack of the received voucher. - ItemStack item = event.getItem(); - // Returns the amount of vouchers that were received. - int amount = event.getAmount(); - // Returns the sender that gave the vouchers. - CommandSender sender = event.getSender(); - // Returns if the event is cancelled or not. - boolean cancelled = event.isCancelled(); - // Get a list of handlers for this event. - HandlerList handlers = event.getHandlers(); - // Cancel the event with a boolean. - event.setCancelled(true); - } -} -``` - ## Support - -If you encounter any issues while using the plugin, feel free to create a ticket -on [our support desk](https://support.songoda.com). +If you encounter any issues while using the plugin, feel free to contact us on +[our Discord server][Discord invite]. ## Suggestions - For suggestions about features you think should be added to the plugin to increase its functionality, feel free to -create a thread over on [our feedback site](https://feedback.songoda.com). +create a thread over on [our Discord server][Discord invite]. + + +[Marketplace page]: https://craftaro.com/marketplace/product/25 +[Plugin wiki]: https://wiki.craftaro.com/index.php/Epic_Vouchers +[Patreon page]: https://www.patreon.com/join/songoda +[Discord invite]: https://discord.gg/craftaro +[bStats page]: https://bstats.org/plugin/bukkit/EpicVouchers/4209 + +[Patreon shield]: https://img.shields.io/badge/-Support_us_on_Patreon-F96854.svg?logo=patreon&style=flat&logoColor=white +[Discord shield]: https://img.shields.io/discord/293212540723396608?color=5865F2&label=Discord&logo=discord&logoColor=5865F2 +[bStats shield]: https://img.shields.io/bstats/servers/4209?label=Servers +[Latest version shield]: https://img.shields.io/badge/dynamic/xml?style=flat&color=blue&logo=github&logoColor=white&label=Latest&url=https%3A%2F%2Fraw.githubusercontent.com%2Fcraftaro%2FEpicVouchers%2Fmaster%2Fpom.xml&query=%2F*%5Blocal-name()%3D'project'%5D%2F*%5Blocal-name()%3D'version'%5D