Class EconomyHelper

java.lang.Object
org.sgrewritten.stargate.util.EconomyHelper

public final class EconomyHelper extends Object
A helper class for dealing with economy
  • Method Details

    • shouldChargePlayer

      public static boolean shouldChargePlayer(org.bukkit.entity.Player player, Portal portal, BypassPermission bypassPermission)
      Checks whether the given player should be charged for destroying a portal
      Parameters:
      player -

      The player to check

      portal -

      The portal the player is trying to do something with

      bypassPermission -

      The bypass permission that would let the player avoid payment

      Returns:

      True if the player should be charged