Comments (4)
you can but it depends on which filters you use, if you jave the CANSEE filter it won't work
I could try to make it ignore the filter if the player is null, but I won't be home for the weekend so won't be able to do it until next week
from playerlist-placeholderapi-expansion.
unrelated to my expansion, it's from the Server expansion
Make sure you're using the latest version of the expansion, redownload it just in case with /papi ecloud download Server
If the error is still there after that, report it there https://github.com/PlaceholderAPI/Server-Expansion/issues
from playerlist-placeholderapi-expansion.
Ah! Silly me. I assumed it was yours since it came right after it, and I missed the "ServerExpansion" line due to assuming it was a PlaceholderAPI function haha. I'll look more carefully next time. Thank you!!
from playerlist-placeholderapi-expansion.
Ok, sorry, I don't want to open another issue, and maybe I'm being dumb and have missed something on the Wiki, but is it possible to parse using the new update without a player (or viewer?) I was previously using this with my Discord plugin to add a command where players could see all online players, but when I papi parse
with a --null
for the viewer, it throws an error:
[14:52:10 WARN]: Unexpected exception while parsing console command "papi parse --null %playerlist_online_list%"
org.bukkit.command.CommandException: Unhandled exception executing command 'papi' in plugin PlaceholderAPI v2.11.6
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:986) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:971) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.dedicated.DedicatedServer.handleConsoleInputs(DedicatedServer.java:521) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:468) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1571) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1231) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
at java.base/java.lang.Thread.run(Unknown Source) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "org.bukkit.OfflinePlayer.getName()" because "viewer" is null
at io.github.tanguygab.playerlistexpansion.PlayerList.getList(PlayerList.java:56) ~[?:?]
at io.github.tanguygab.playerlistexpansion.PlayerList.getText(PlayerList.java:30) ~[?:?]
at io.github.tanguygab.playerlistexpansion.PlayerListExpansion.onRequest(PlayerListExpansion.java:105) ~[?:?]
at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.6.jar:?]
at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.6.jar:?]
at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.commands.impl.local.CommandParse.evaluateParseSingular(CommandParse.java:118) ~[PlaceholderAPI-2.11.6.jar:?]
at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.commands.impl.local.CommandParse.evaluate(CommandParse.java:57) ~[PlaceholderAPI-2.11.6.jar:?]
at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.commands.PlaceholderCommandRouter.onCommand(PlaceholderCommandRouter.java:114) ~[PlaceholderAPI-2.11.6.jar:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
... 9 more
The old way I used to do it was so: %playerlist_online,normal,yes,list%
from playerlist-placeholderapi-expansion.
Related Issues (11)
- [Question] %playerlist_online,placeholder,yes,amount,||...% HOT 4
- Offline issues HOT 1
- [SUGGESTION] Multiple conditions
- i have this error recently HOT 2
- Suggestion: List offline players with perm subtype HOT 1
- List offline players with perm subtype HOT 1
- [Question] How "CANSEE" work like ? HOT 9
- placeholder not equal filter HOT 2
- Errors in console with AdvancedServerList + ConditionalText Placeholders HOT 3
- how can I do %player_name%=!%player_name% check HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playerlist-placeholderapi-expansion.