Revert "simplify points hook init"

This reverts commit 3474ddeb8f.
This commit is contained in:
Jacob 2019-10-11 07:21:02 -05:00
parent 27260ab30f
commit 68c91c5298

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(Plugin plugin) {
this.playerPoints = (PlayerPoints) plugin;
public PlayerPointsEconomy() {
this.playerPoints = (PlayerPoints) Bukkit.getServer().getPluginManager().getPlugin("PlayerPoints");
}
private int convertAmount(double amount) {