mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-01-03 18:47:43 +01:00
Adjust for changes in the plugin lib
This commit is contained in:
parent
512b39038f
commit
e7e3c80bb5
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user