Fix TellrawJson
This commit is contained in:
@@ -69,4 +69,11 @@ public abstract class InternalPluginBridge {
|
||||
abstract public Map<String, Object> taboolibTLocaleSerialize(Object in);
|
||||
|
||||
abstract public FileConfiguration taboolibGetPlayerData(OfflinePlayer player);
|
||||
|
||||
abstract public int protocolSupportPlayerVersion(Player player);
|
||||
|
||||
abstract public int viaVersionPlayerVersion(Player player);
|
||||
|
||||
abstract public Class getClass(String name) throws ClassNotFoundException;
|
||||
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@ import org.bukkit.World;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.RegisteredServiceProvider;
|
||||
import protocolsupport.api.ProtocolSupportAPI;
|
||||
import us.myles.ViaVersion.api.Via;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.Collection;
|
||||
@@ -205,4 +207,19 @@ public class BridgeImpl extends InternalPluginBridge {
|
||||
public FileConfiguration taboolibGetPlayerData(OfflinePlayer player) {
|
||||
return PlayerDataManager.getPlayerData(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int protocolSupportPlayerVersion(Player player) {
|
||||
return ProtocolSupportAPI.getProtocolVersion(player).getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int viaVersionPlayerVersion(Player player) {
|
||||
return Via.getAPI().getPlayerVersion(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class getClass(String name) throws ClassNotFoundException {
|
||||
return Class.forName(name);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user