Go to file
2023-04-13 20:09:49 +02:00
.github Update README and create FUNDING 2021-07-11 01:56:36 +02:00
src/main Replace deprecated NBTItem calls 2022-03-18 17:53:57 +01:00
.editorconfig Cleanup project 2021-07-11 01:56:36 +02:00
.gitignore Cleanup project 2021-07-11 01:56:36 +02:00
LICENSE Switch LICENSE to CC BY-NC-ND 4.0 2023-03-29 21:43:56 +02:00
pom.xml Updates SongodaCore to 2.6.19 2023-04-13 20:09:49 +02:00
README.md Update README and create FUNDING 2021-07-11 01:56:36 +02:00

EpicVouchers

EpicVouchers

Create vouchers that players can claim for rewards with seemingly infinite possibilities. Customize your servers vouchers through an intuitive in-game editor.

Discord Patreon
Latest version Quality Gate Status GitHub last commit
bStats Servers

Table of Contents

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 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.

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.

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.

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.