Paste your logs.

Built for Minecraft & Hytale

Unknown Log

70 lines
Raw
package br.com.ystoreplugins.product.economy;
import org.bukkit.Bukkit;
import org.bukkit.plugin.ServicePriority;
public class ExampleEconomyProvider implements EconomyProvider {
/**
* Gets name of economy method
* @return Name of Economy Method
*/
public String getName() {
return getName();
}
/**
* Checks if the player account has the amount - DO NOT USE NEGATIVE AMOUNTS
*
* @param player to check
* @param amount to check for
* @return True if <b>player</b> has <b>amount</b>, False else wise
*/
public boolean has(String player, double amount) {
return has(player, amount);
}
/**
* Gets balance of a player
*
* @param player of the player name
* @return Amount currently held in players account
*/
public double get(String player) {
return get(player);
}
/**
* Deposit an amount to a player - DO NOT USE NEGATIVE AMOUNTS
*
* @param player to deposit to
* @param amount Amount to deposit
* @return Detailed response of transaction
*/
public void add(String player, double amount) {
add(player, amount);
}
/**
* Withdraw an amount from a player - DO NOT USE NEGATIVE AMOUNTS
*
* @param player to withdraw from
* @param amount Amount to withdraw
* @return Detailed response of transaction
*/
public void remove(String player, double amount) {
remove(player, amount);
}
public static class RegistrationExample {
/**
* Register the class into Bukkit Services
*/
public static void register() {
Bukkit.getServicesManager().register(EconomyProvider.class, new ExampleEconomyProvider(), null /*change to your Main class*/, ServicePriority.Normal);
}
}
}