simplify points hook init

This commit is contained in:
jascotty2 2019-10-09 20:03:16 -05:00
parent fa7d5a5974
commit 3474ddeb8f

View File

@ -1,15 +1,15 @@
package com.songoda.core.hooks.economies;
import org.black_ixx.playerpoints.PlayerPoints;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.plugin.Plugin;
public class PlayerPointsEconomy extends Economy {
private final PlayerPoints playerPoints;
public PlayerPointsEconomy() {
this.playerPoints = (PlayerPoints) Bukkit.getServer().getPluginManager().getPlugin("PlayerPoints");
public PlayerPointsEconomy(Plugin plugin) {
this.playerPoints = (PlayerPoints) plugin;
}
private int convertAmount(double amount) {