Adjust for changes in the plugin lib

This commit is contained in:
GeorgH93 2016-11-06 18:12:59 +01:00
parent 512b39038f
commit e7e3c80bb5
2 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,7 @@
package at.pcgamingfreaks.MinePacks;
import at.pcgamingfreaks.Bukkit.NMSReflection;
import at.pcgamingfreaks.Bukkit.Utils;
import at.pcgamingfreaks.StringUtils;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
@ -59,7 +59,7 @@ public Backpack(OfflinePlayer owner, int size)
public Backpack(OfflinePlayer owner, int Size, int ID)
{
this.owner = owner;
titleOther = Utils.limitLength(String.format(MinePacks.backpackTitleOther, owner.getName()), 32);
titleOther = StringUtils.limitLength(String.format(MinePacks.backpackTitleOther, owner.getName()), 32);
bp = Bukkit.createInventory(this, Size, titleOther);
size = Size;
ownerID = ID;

View File

@ -24,6 +24,7 @@
import at.pcgamingfreaks.MinePacks.Database.Language;
import at.pcgamingfreaks.MinePacks.Updater.UpdateResult;
import at.pcgamingfreaks.MinePacks.Updater.Updater;
import at.pcgamingfreaks.StringUtils;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
@ -85,7 +86,7 @@ public void onEnable()
maxSize = config.getBackpackMaxSize();
backpackTitleOther = config.getBPTitleOther();
backpackTitle = Utils.limitLength(config.getBPTitle(), 32);
backpackTitle = StringUtils.limitLength(config.getBPTitle(), 32);
messageInvalidBackpack = lang.getTranslated("Ingame.InvalidBackpack");
getServer().getServicesManager().register(MinePacks.class, this, this, ServicePriority.Normal);