[21:54:49] [Server thread/ERROR]: [PlaceholderAPI] failed to load class files of expansions java.util.concurrent.CompletionException: java.lang.UnsupportedClassVersionError: ch/andre601/mathexpansion/depencencies/caffeine/PWAR has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:1.8.0_321] at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) ~[?:1.8.0_321] at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) ~[?:1.8.0_321] at java.lang.Thread.run(Unknown Source) [?:1.8.0_321] Caused by: java.lang.UnsupportedClassVersionError: ch/andre601/mathexpansion/depencencies/caffeine/PWAR has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_321] at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.8.0_321] at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.8.0_321] at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.8.0_321] at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.8.0_321] at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_321] at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_321] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_321] at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_321] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_321] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_321] at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:388) ~[?:?] ... 2 more Hi, there is something wrong with the plug-in.
Hello i watch some youtube, and tutorials on wiki but i still dont understand how this plugin works, i have command /balance and after you write it it show your balance, so now how i can translate this word so all plugins will be usign "Pieniądze" ? Do i need add placeholder to config.yml and there change? i can download expansions and i see this jar in folder like Expansion-essentials.jar but i cant acces it with winrar to translate so where i can translate this word? thanks!
That has nothing to do with placeholders... Or do you want to use the players balance value in a hologram or such? If you just want to rename the command: use commands.yml
That looks like you are using Essentials. There is a language file you can use to change the translation in essentials (https://github.com/EssentialsX/Essentials/blob/2.x/Essentials/src/main/resources/messages.properties). You should be able to find "balance=\u00a7aBalance\:\u00a7c {0}", and you would change it to "balance=\u00a7aPieniądze\:\u00a7c {0}". Hope this helps! ☺ EDIT: For the language file, you will want to download/save it from github, and then just put it in the root directory of the Essentials folder (where config.yml is located). You can then edit and translate it however you want. ☺
Im having a problem because the expansions in PlaceholderAPI are registered async which makes depending on papi virtually useless. Any workarounds for this? Some Future<Void> i can hook into. I would suggest making the expanson registration blocking when starting the server so dependent plugins can actually use placeholders.
so, how can I make it Auto Register the plugins? i'm having an Issues where I need to Register for Statistics.jar Expansion needs to work.
Hey @xGooD your issue is not caused by PlaceholderAPI itself, a plugin that you use (BattleLevels) uses a deprecated way to hook into PlaceholderAPI, through EZPlaceholderHook, tell them to check this wiki https://github.com/PlaceholderAPI/P...eholderExpansion#with-a-plugin-internal-class @_SHO_ and @Scoping are you guys able to tell us what's wrong with the plugin?
Hello, I have an issue with this plugin. I followed the steps to use the API from here, but this rather strange NullPointerException appeared. Code (Text): [16:21:28 WARN]: Unexpected exception while parsing console command "login" org.bukkit.command.CommandException: Unhandled exception executing command 'login' in plugin PlanetBasic v1.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_18_R2.CraftServer.dispatchCommand(CraftServer.java:905) ~[paper-1.18.2.jar:git-Paper-237] at org.bukkit.craftbukkit.v1_18_R2.CraftServer.dispatchServerCommand(CraftServer.java:868) ~[paper-1.18.2.jar:git-Paper-237] at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:510) ~[paper-1.18.2.jar:git-Paper-237] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:484) ~[paper-1.18.2.jar:git-Paper-237] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1458) ~[paper-1.18.2.jar:git-Paper-237] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1227) ~[paper-1.18.2.jar:git-Paper-237] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.2.jar:git-Paper-237] at java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.PlaceholderAPIPlugin.getInstance()" is null at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlanetBasic.jar:?] at dev.ckitty.planet.lib.PlanetPlugin.getLang(PlanetPlugin.java:58) ~[PlanetBasic.jar:?] at dev.ckitty.planet.basic.reglog.CmdLogin.onCommand(CmdLogin.java:21) ~[PlanetBasic.jar:?] at dev.ckitty.planet.lib.PlanetCommand.onCommand(PlanetCommand.java:59) ~[PlanetBasic.jar:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?] ... 9 more I did nothing special, this is all I use the API for. Code (Java): String str = PlaceholderAPI.setPlaceholders(player, Objects.requireNonNull(this.lang_yml.getString(path))); I'm using paper on 1.18.2, with PAPI v2.11.1 EDIT: PAPI v2.10.10 works just fine. No idea why tho.
Had this error with PlaceholderAPI-2.11.1 so tracked down the DEV build........ result Spoiler: Warn ?? Starting org.bukkit.craftbukkit.Main System Info: Java 17 (Java HotSpot(TM) 64-Bit Server VM 17.0.1+12-LTS-39) Host: Linux 5.4.0-104-generic (amd64) Loading libraries, please wait... [18:59:37 INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [18:59:38 INFO]: Loaded 7 recipes [18:59:39 INFO]: Starting minecraft server version 1.18.2 [18:59:39 INFO]: Loading properties [18:59:39 INFO]: This server is running Paper version git-Paper-265 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: 993f828) [19:11:23 INFO]: [ZombieApocalypse] Checking for updates... [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: worldborder [1.0.0] [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: plugin [1.1.0] [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: player [1.7.2] [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: plugin [1.1.0] [19:11:23 WARN]: [PlaceholderAPI] Loaded class com.onarandombox.MultiverseCore.MultiverseCore from Multiverse-Core v4.3.2-SNAPSHOT-b870 which is not a depend or softdepend of this plugin. [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: multiverse [1.0.1] [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: MySQL [1.3.0] [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: worldguard [1.4.2] [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: essentials [1.2.4] [19:11:23 WARN]: [PlaceholderAPI] Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b${env.TRAVIS_BUILD_NUMBER} which is not a depend or softdepend of this plugin. [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: vault [1.6.0] [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: essentials [1.4.0] [19:11:23 INFO]: [ZombieApocalypse] You are running the latest version. [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: vault [1.7.0] [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: server [2.6.0] [19:11:23 WARN]: java.lang.ClassNotFoundException: net.minecraft.server.v1_18_R2.MinecraftServer [19:11:23 WARN]: at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445) [19:11:23 WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587) [19:11:23 WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) [19:11:23 WARN]: at java.base/java.lang.Class.forName0(Native Method) [19:11:23 WARN]: at java.base/java.lang.Class.forName(Class.java:375) [19:11:23 WARN]: at com.extendedclip.papi.expansion.server.ServerExpansion.<init>(ServerExpansion.java:61) [19:11:23 WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [19:11:23 WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) [19:11:23 WARN]: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [19:11:23 WARN]: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [19:11:23 WARN]: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) [19:11:23 WARN]: at PlaceholderAPI-2.11.2-DEV-152.jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:422) [19:11:23 WARN]: at PlaceholderAPI-2.11.2-DEV-152.jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:162) [19:11:23 WARN]: at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) [19:11:23 WARN]: at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) [19:11:23 WARN]: at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) [19:11:23 WARN]: at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) [19:11:23 WARN]: at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) [19:11:23 WARN]: at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) [19:11:23 WARN]: at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [19:11:23 WARN]: at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) [19:11:23 WARN]: at PlaceholderAPI-2.11.2-DEV-152.jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$4(LocalExpansionManager.java:333) [19:11:23 WARN]: at PlaceholderAPI-2.11.2-DEV-152.jar//me.clip.placeholderapi.util.Futures.lambda$onMainThread$0(Futures.java:46) [19:11:23 WARN]: at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101) [19:11:23 WARN]: at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) [19:11:23 WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1531) [19:11:23 WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:483) [19:11:23 WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1455) [19:11:23 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1225) [19:11:23 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315) [19:11:23 WARN]: at java.base/java.lang.Thread.run(Thread.java:833) [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: server [2.2.3] [19:11:23 INFO]: [PlaceholderAPI] Successfully registered expansion: player [2.0.2] [19:11:23 INFO]: 14 placeholder hook(s) registered! 5 placeholder hook(s) have an update available.
You will have to do /papi ecloud list installed, then you will have to find the one that has an update (usually signified by Orange/Gold). For example, if the placeholder Vault has an update, you would run the command /papi ecloud download Vault to download the latest version, then you would do /papi reload to initialize it. Hope this helps! ☺