mirror of
https://github.com/songoda/UltimateRepairing.git
synced 2024-11-01 00:10:19 +01:00
Let's load the scripting engine correctly.
This commit is contained in:
parent
eef62234ab
commit
6e59e49e70
@ -5,7 +5,6 @@ import com.songoda.ultimaterepairing.UltimateRepairing;
|
|||||||
import com.songoda.ultimaterepairing.repair.RepairType;
|
import com.songoda.ultimaterepairing.repair.RepairType;
|
||||||
import com.songoda.ultimaterepairing.settings.Settings;
|
import com.songoda.ultimaterepairing.settings.Settings;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.ChatColor;
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
@ -36,7 +35,7 @@ public class Methods {
|
|||||||
public static int getCost(RepairType type, ItemStack item) {
|
public static int getCost(RepairType type, ItemStack item) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ScriptEngineManager mgr = new ScriptEngineManager();
|
ScriptEngineManager mgr = new ScriptEngineManager(null);
|
||||||
ScriptEngine engine = mgr.getEngineByName("JavaScript");
|
ScriptEngine engine = mgr.getEngineByName("JavaScript");
|
||||||
|
|
||||||
String equationXP = Settings.EXPERIENCE_EQUATION.getString();
|
String equationXP = Settings.EXPERIENCE_EQUATION.getString();
|
||||||
|
Loading…
Reference in New Issue
Block a user