Coder Social home page Coder Social logo

r4g3baby / simplescore Goto Github PK

View Code? Open in Web Editor NEW
68.0 1.0 33.0 1.13 MB

A simple animated scoreboard plugin for your minecraft server.

Home Page: https://www.spigotmc.org/resources/simplescore.23243/

License: MIT License

Kotlin 100.00%
minecraft minecraft-plugin spigotmc bukkit-plugin scoreboard animated-scoreboard-plugin

simplescore's Introduction

SimpleScore Logo

Latest Release Spigot Downloads Discord bStats Servers bStats Players License

Information

SimpleScore is a plugin for Minecraft servers that allows server owners to display various information to their players using Minecraft's built-in scoreboard system.

Supports selecting and showing specific scoreboards to players based on their permissions, certain conditions, the current world, or even the WorldGuard region they are in with a very simple and intuitive configuration system.

Also comes with support for both PlaceholderAPI and MVdWPlaceholderAPI, allowing you to hook into thousands of other plugins to retrieve and display their information in real time, or create a set of conditions that the player must meet to be able to see a particular scoreboard.

Main Features

  • A lag-free, fully animated scoreboard with no flickering
  • Full RGB colour support on 1.16 servers or newer
  • Supports all major Minecraft versions from 1.8.x to 1.20.x
  • Can display scoreboards based on permissions, conditions, worlds and regions
  • No character limit on 1.13 servers or newer (limited to 32 characters on older versions)*
  • Fully compatible with mcMMO and other plugins that temporarily change the scoreboard*
  • Any message sent by the plugin can be modified either by the built-in translation system or by providing a custom message file

*This feature requires ProtocolLib. Adding ProtocolLib to your server will improve plugin compatibility and also reduce the number of packets sent to players, thus improving server/client performance and reducing network bandwidth usage.

More Information

Download Links

GitHub - SpigotMC - PaperMC - Modrinth

Quick Links

Discord - Issues - Wiki - bStats

Support

If you find SimpleScore useful and would like to support its development, please consider following, rating or reviewing the project on its respective platform, such as SpigotMC, PaperMC or Modrinth.

Starring the project on GitHub or following me is an easy way to show your support. It helps increase the visibility of SimpleScore and encourages others to check it out.

I also accept financial support via GitHub Sponsors or a one-time donation via PayPal to show your appreciation for the project.

simplescore's People

Contributors

r4g3baby avatar yaosiqian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

simplescore's Issues

Strange client crash upon joining the server

Hey! So I just finished pre-generating a 10,000 by 10,000 block square of chunks with the Chunky Plugin. Now when I try and load into the server, I crash with this error almost every time. The strange thing is that the default config file for SimpleScore does not crash my server, but my old one that has worked for ages does. I tried using the plugin on a second server, and my old config file works on that server with no issues. The issue only seems to happen on my first server, and not my second (test server) one. If I load my main server without the plugin installed, I do not crash upon joining the server. I am not sure if it is a plugin specific issue or something in my main server's config is causing this to happen, But I can assure that my config file works as it works on the second server without any issues, and worked on my main server until recently. If you know what this crash means, and if it is related to SimpleScore, I would appreciate it if you could get back to me. Thanks. Versions and the crash file are linked below.

Minecraft Version: 1.16.2
SimpleScore Version: 3.8.1

`---- Minecraft Crash Report ----
// Uh... Did I do that?

Time: 6/28/21 10:42 PM
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
at afo.a(SourceFile:128)
at dkg.a(SourceFile:47)
at dkr.a(SourceFile:329)
at dks.a(SourceFile:701)
at dks.a(SourceFile:349)
at dzr.a(SourceFile:597)
at djw.e(SourceFile:1023)
at djw.e(SourceFile:656)
at net.minecraft.client.main.Main.main(SourceFile:215)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head --
Thread: Render thread
Stacktrace:
at afo.a(SourceFile:128)
at dkg.a(SourceFile:47)
at dkr.a(SourceFile:329)
at dks.a(SourceFile:701)
at dks.a(SourceFile:349)

-- Affected level --
Details:
All players: 1 total; [dze['GoldenIsCracked'/4003, l='ClientLevel', x=-4.50, y=63.00, z=-1.50]]
Chunk stats: Client Chunk Cache: 529, 256
Level dimension: minecraft:lobby
Level spawn location: World: (7,45,-51), Chunk: (at 7,2,13 in 0,-4; contains blocks 0,0,-64 to 15,255,-49), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
Level time: 183422 game time, 1098000 day time
Server brand: Paper
Server type: Non-integrated multiplayer server
Stacktrace:
at dwl.a(SourceFile:449)
at djw.c(SourceFile:2183)
at djw.e(SourceFile:679)
at net.minecraft.client.main.Main.main(SourceFile:215)

-- System Details --
Details:
Minecraft Version: 1.16.2
Minecraft Version ID: 1.16.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_51, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 566810136 bytes (540 MB) / 1979711488 bytes (1888 MB) up to 2147483648 bytes (2048 MB)
CPUs: 16
JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Launched Version: 1.16.2
Backend library: LWJGL version 3.2.2 build 10
Backend API: NVIDIA GeForce RTX 2060/PCIe/SSE2 GL version 4.6.0 NVIDIA 471.11, NVIDIA Corporation
GL Caps: Using framebuffer using OpenGL 3.0
Using VBOs: Yes
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Graphics mode: fancy
Resource Packs: vanilla, file/lbAlexs_Pack-V2.zip, file/QualityArmoryV2.1.8.zip
Current Language: English (US)
CPU: 16x AMD Ryzen 7 3700X 8-Core Processor `

Warning From SimpleScore 3.8.1

[02:12:45 WARN]: [SimpleScore] Plugin SimpleScore v3.8.1 generated an exception while executing task 48
java.lang.NoClassDefFoundError: Could not initialize class org.openjdk.nashorn.internal.runtime.Context$AnonymousContextCodeInstaller
at org.openjdk.nashorn.internal.runtime.Context.compile(Context.java:1509) ~[PlaceholderAPI-2.10.6.jar:?]
at org.openjdk.nashorn.internal.runtime.Context.compileScript(Context.java:1449) ~[PlaceholderAPI-2.10.6.jar:?]
at org.openjdk.nashorn.internal.runtime.Context.compileScript(Context.java:759) ~[PlaceholderAPI-2.10.6.jar:?]
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:528) ~[PlaceholderAPI-2.10.6.jar:?]
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:517) ~[PlaceholderAPI-2.10.6.jar:?]
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:395) ~[PlaceholderAPI-2.10.6.jar:?]
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:151) ~[PlaceholderAPI-2.10.6.jar:?]
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262) ~[java.scripting:?]
at com.extendedclip.papi.expansion.javascript.evaluator.NashornScriptEvaluator.execute(NashornScriptEvaluator.java:30) ~[?:?]
at com.extendedclip.papi.expansion.javascript.JavascriptPlaceholder.evaluate(JavascriptPlaceholder.java:120) ~[?:?]
at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.onRequest(JavascriptExpansion.java:157) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:326) ~[PlaceholderAPI-2.10.6.jar:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:525) ~[PlaceholderAPI-2.10.6.jar:?]
at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.replacePlaceholders(ScoreboardTask.kt:107) ~[SimpleScore-3.8.1.jar:?]
at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.applyPlaceholders(ScoreboardTask.kt:96) ~[SimpleScore-3.8.1.jar:?]
at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run(ScoreboardTask.kt:70) ~[SimpleScore-3.8.1.jar:?]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Pufferfish-8]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[patched_1.17.1.jar:git-Pufferfish-8]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.17.1.jar:git-Pufferfish-8]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]

Lang

When setting prefix to nothing, theres a space in front of all messages. I'm trying to make it clean with a message shown with no prefix, but theres this space infront of all the messages making it not line up with other formats.

Stream of `java.lang.ArrayIndexOutOfBoundsException: null` exceptions

Hello,

I'm seeing a stream of exceptions from SimpleScore plugin (see below) however the log doesn't include a stack trace so I'm not sure where exactly it happens. Do you have any suggestions on how to debug this further?

[20:17:32] [Server thread/WARN]: [SimpleScore] Task #3169 for SimpleScore v3.8.1 generated an exception
java.lang.ArrayIndexOutOfBoundsException: null
[20:17:32] [Server thread/WARN]: [SimpleScore] Task #3170 for SimpleScore v3.8.1 generated an exception
java.lang.ArrayIndexOutOfBoundsException: null
[20:17:32] [Server thread/WARN]: [SimpleScore] Task #3171 for SimpleScore v3.8.1 generated an exception
java.lang.ArrayIndexOutOfBoundsException: null
[20:17:32] [Server thread/WARN]: [SimpleScore] Task #3172 for SimpleScore v3.8.1 generated an exception
java.lang.ArrayIndexOutOfBoundsException: null
[20:17:32] [Server thread/WARN]: [SimpleScore] Task #3173 for SimpleScore v3.8.1 generated an exception
java.lang.ArrayIndexOutOfBoundsException: null
[20:17:32] [Server thread/WARN]: [SimpleScore] Task #3174 for SimpleScore v3.8.1 generated an exception
java.lang.ArrayIndexOutOfBoundsException: null

Server is paper-1.17.1 and I believe I had the same error with spigot.

Console Spam

Hello,
My server is in 1.12.2 and I use the plugin in version 3.7.2

In the console I have this spam message:

[SimpleScore] Plugin SimpleScore v3.7.2 generated an exception while executing task 92 java.util.ConcurrentModificationException: null at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1043) ~[?:?] at java.util.ArrayList$Itr.next(ArrayList.java:997) ~[?:?] at org.bukkit.craftbukkit.v1_12_R1.CraftWorld.getPlayers(CraftWorld.java:793) ~[patched_1.12.2.jar:git-Paper-1618] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run(ScoreboardTask.kt:26) ~[?:?] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:64) ~[patched_1.12.2.jar:git-Paper-1618] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) ~[patched_1.12.2.jar:git-Paper-1618] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.12.2.jar:git-Paper-1618] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:829) [?:?]

Flickering

The scoreboard seems to flicker every now and then and it's very annoying especially when trying to nail things down and fully polish over the server.

bug

i download your pl and don t have a scorebord idk why i got all neu but don t work thx 4 help

A random error appears for no reason

[22:59:47 WARN]: [SimpleScore] Task #33 for SimpleScore v3.3.2 generated an exception
java.lang.IllegalArgumentException: Count 'n' must be non-negative, but was -1.
at com.r4g3baby.simplescore.shaded.kotlin.text.StringsKt__StringsJVMKt.repeat(StringsJVM.kt:629) ~[?:?]
at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardRunnable.replaceVariables(ScoreboardRunnable.kt:72) ~[?:?]
at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardRunnable.run(ScoreboardRunnable.kt:27) ~[?:?]
at com.massivecraft.massivelag.inject.MassiveLagRunnable.run(MassiveLagRunnable.java:56) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:64) ~[patched_1.12.2.jar:git-Paper-1618]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:423) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:840) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1618]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_262]

It just happens for no apparent reason, floods my console, but it doesn't affect anything ... I just wanted it to stop flooding because I interact with other plugins and need to know the results.

Config.yml: https://paste.gg/p/anonymous/3e4f951afd184f4cbf07fdfb72337f03
Messages.yml: Default archive

error Code

if I e.g. one over the Console an write with /tell...

then I get the following error message:

java.lang.IndexOutOfBoundsException: Index 2 out of bounds for length 2
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) ~[?:?]
at java.util.Objects.checkIndex(Objects.java:359) ~[?:?]
at java.util.ArrayList.get(ArrayList.java:427) ~[?:?]
at com.r4g3baby.simplescore.scoreboard.models.PlayerLine.getShouldRender(PlayerLine.kt:22) ~[SimpleScore-3.12.1.jar:?]
at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.getPlayerScoreboard(ScoreboardTask.kt:132) ~[SimpleScore-3.12.1.jar:?]
at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.getPlayerScoreboards(ScoreboardTask.kt:101) ~[SimpleScore-3.12.1.jar:?]
at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run$lambda-8(ScoreboardTask.kt:75) ~[SimpleScore-3.12.1.jar:?]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.2.jar:git-Paper-131]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.19.2.jar:git-Paper-131]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1492) ~[paper-1.19.2.jar:git-Paper-131]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.19.2.jar:git-Paper-131]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1416) ~[paper-1.19.2.jar:git-Paper-131]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1192) ~[paper-1.19.2.jar:git-Paper-131]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-131]
at java.lang.Thread.run(Thread.java:833) ~[?:?]

balance

how add money in scoreboard? %money% essentials not work

Limit of characters

Hello. I have placeholders with big colors code, but the plugin have a limit of characters.


simple:
titles: '&#ee8500&lS&#dd7b00&lu&#cc7000&lr&#bb6600&lv&#aa5b00&li&#995100&lv&#884600&lal'
scores:
13: '&r'
12: ' &6⛏ &fRank: &7%luckperms_prefix%'
11: ' &#DCE35B⛁ &fSaldo: &a%vault_eco_balance_formatted%'
10: ''
9: ' &#D00B65♥ &fStatus&7: &a%marriagemaster_IsMarried%'
8: ' &c⚔ &fClan&7: &7%simpleclans_clan_color_tag%'
7: ''
6: ' &d☆ &fPinhata&7: &5%pinataparty_current_votes%&8/&5%pinataparty_votes_needed%'
1: ''


See the rank on image
https://prnt.sc/_LWlwWq3VkvS

Scoreboard disappears for everyone who rejoins the server

I'm using TAB and SimpleScore plugins (and a bunch more but I feel like the issue's caused by one of these two). Pretty much after each server restart the scoreboard works perfect, but when anyone relogs, they can't see the scoreboard anymore. I try to untoggle and toggle the scoreboard, doesn't work, and I also try to reload the plugin, which doesn't work. Any suggestions?

Messages dont change

When editing the messages.yml it dose not use new settings i edited preffix and the help text but stays as default.

Jobs gtop fix

Hi,
would it be possible to fix the scoreboard on after entering the /jobs gtop
command and others that also use the scoreboard?
After viewing the scoreboard with another plugin, your scoreboard will not turn on.
Thanks
Tee

Feature Request: Add possibility for EQUALS_NOT condition or ELSE statements

I think it would be usefull to add this masterpiece of condition EQUALS_NOT.

This could then make the following possible:

if hasPermissionExample 
...

if hasNoPermissionExample 
...

it would be easier if you could simply pass an else statement:

    2:
      conditions: ["equalsOperationExample"]
      frames:
        - "&7You can see this line because you passed.."
        - "&7the &8equalsOperationExample &7condition."
      else: 
        frames:
          - "&7You can't see this line because you"
          - "&7didn't pass the &8equalsOperationExample &7condition."

Best regards!

exception while executing task 64 java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1

I do not know how to duplicate this it just happened while nobody was on the server. I have been running simplescore for about a month with no problems.
21.06 10:49:46 [Server] WARN Plugin SimpleScore v3.11.1 generated an exception while executing task 64 21.06 10:49:46 [Server] INFO java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1 21.06 10:49:46 [Server] INFO at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?] 21.06 10:49:46 [Server] INFO at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?] 21.06 10:49:46 [Server] INFO at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) ~[?:?] 21.06 10:49:46 [Server] INFO at java.util.Objects.checkIndex(Objects.java:359) ~[?:?] 21.06 10:49:46 [Server] INFO at java.util.ArrayList.get(ArrayList.java:427) ~[?:?] 21.06 10:49:46 [Server] INFO at com.r4g3baby.simplescore.scoreboard.models.ScoreFrames.tick(ScoreFrames.kt:17) ~[SimpleScore-3.11.1.jar:?] 21.06 10:49:46 [Server] INFO at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run(ScoreboardTask.kt:20) ~[SimpleScore-3.11.1.jar:?] 21.06 10:49:46 [Server] INFO at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.2.jar:git-Paper-329] 21.06 10:49:46 [Server] INFO at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.18.2.jar:git-Paper-329] 21.06 10:49:46 [Server] INFO at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.18.2.jar:git-Paper-329] 21.06 10:49:46 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] 21.06 10:49:46 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] 21.06 10:49:46 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]

SimpleScore - Works with 1.18 tho spits:spams console with and version error it seems!

Console output when player joins server - SimpleScore is working and shows the overall scoreboard!

[08:12:52] [Server thread/WARN]: [SimpleScore] Could not apply PlaceholderAPI placeholders java.lang.RuntimeException: Failed to determine Minecraft version at com.extendedclip.papi.expansion.player.PlayerExpansion.minecraftVersion(PlayerExpansion.java:410) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil$1.cacheReflection(PlayerUtil.java:79) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil$1.apply(PlayerUtil.java:58) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil$1.apply(PlayerUtil.java:49) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil.getPing(PlayerUtil.java:121) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerExpansion.retrievePing(PlayerExpansion.java:386) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerExpansion.onRequest(PlayerExpansion.java:319) ~[?:?] at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:160) ~[?:?] at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70) ~[?:?] at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.replacePlaceholders(ScoreboardTask.kt:107) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.applyPlaceholders(ScoreboardTask.kt:96) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run$lambda-9(ScoreboardTask.kt:82) ~[?:?] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:82) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1254) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:428) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1205) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1033) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:303) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at java.lang.Thread.run(Thread.java:833) [?:?] Caused by: java.lang.IllegalArgumentException: No match found in 'dev-Spigot-b11f318-9fb3aa4 (MC: 1.18 Release Candidate 3)' at com.extendedclip.papi.expansion.player.PlayerExpansion.minecraftVersion(PlayerExpansion.java:407) ~[?:?] ... 20 more [08:12:57] [Server thread/WARN]: [SimpleScore] Could not apply PlaceholderAPI placeholders java.lang.RuntimeException: Failed to determine Minecraft version at com.extendedclip.papi.expansion.player.PlayerExpansion.minecraftVersion(PlayerExpansion.java:410) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil$1.cacheReflection(PlayerUtil.java:79) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil$1.apply(PlayerUtil.java:58) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil$1.apply(PlayerUtil.java:49) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil.getPing(PlayerUtil.java:121) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerExpansion.retrievePing(PlayerExpansion.java:386) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerExpansion.onRequest(PlayerExpansion.java:319) ~[?:?] at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:160) ~[?:?] at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70) ~[?:?] at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.replacePlaceholders(ScoreboardTask.kt:107) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.applyPlaceholders(ScoreboardTask.kt:96) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run$lambda-9(ScoreboardTask.kt:82) ~[?:?] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:82) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1254) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:428) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1205) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1033) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:303) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at java.lang.Thread.run(Thread.java:833) [?:?] Caused by: java.lang.IllegalArgumentException: No match found in 'dev-Spigot-b11f318-9fb3aa4 (MC: 1.18 Release Candidate 3)' at com.extendedclip.papi.expansion.player.PlayerExpansion.minecraftVersion(PlayerExpansion.java:407) ~[?:?] ... 20 more [08:13:02] [Server thread/WARN]: [SimpleScore] Could not apply PlaceholderAPI placeholders java.lang.RuntimeException: Failed to determine Minecraft version at com.extendedclip.papi.expansion.player.PlayerExpansion.minecraftVersion(PlayerExpansion.java:410) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil$1.cacheReflection(PlayerUtil.java:79) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil$1.apply(PlayerUtil.java:58) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil$1.apply(PlayerUtil.java:49) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil.getPing(PlayerUtil.java:121) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerExpansion.retrievePing(PlayerExpansion.java:386) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerExpansion.onRequest(PlayerExpansion.java:319) ~[?:?] at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:160) ~[?:?] at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70) ~[?:?] at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.replacePlaceholders(ScoreboardTask.kt:107) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.applyPlaceholders(ScoreboardTask.kt:96) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run$lambda-9(ScoreboardTask.kt:82) ~[?:?] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:82) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1254) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:428) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1205) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1033) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:303) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at java.lang.Thread.run(Thread.java:833) [?:?] Caused by: java.lang.IllegalArgumentException: No match found in 'dev-Spigot-b11f318-9fb3aa4 (MC: 1.18 Release Candidate 3)' at com.extendedclip.papi.expansion.player.PlayerExpansion.minecraftVersion(PlayerExpansion.java:407) ~[?:?] ... 20 more [08:13:07] [Server thread/WARN]: [SimpleScore] Could not apply PlaceholderAPI placeholders java.lang.RuntimeException: Failed to determine Minecraft version at com.extendedclip.papi.expansion.player.PlayerExpansion.minecraftVersion(PlayerExpansion.java:410) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil$1.cacheReflection(PlayerUtil.java:79) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil$1.apply(PlayerUtil.java:58) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil$1.apply(PlayerUtil.java:49) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerUtil.getPing(PlayerUtil.java:121) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerExpansion.retrievePing(PlayerExpansion.java:386) ~[?:?] at com.extendedclip.papi.expansion.player.PlayerExpansion.onRequest(PlayerExpansion.java:319) ~[?:?] at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:160) ~[?:?] at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70) ~[?:?] at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.replacePlaceholders(ScoreboardTask.kt:107) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.applyPlaceholders(ScoreboardTask.kt:96) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run$lambda-9(ScoreboardTask.kt:82) ~[?:?] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:82) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1254) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:428) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1205) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1033) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:303) ~[spigot-1.18-rc3-R0.1-SNAPSHOT.jar:dev-Spigot-b11f318-9fb3aa4] at java.lang.Thread.run(Thread.java:833) [?:?] Caused by: java.lang.IllegalArgumentException: No match found in 'dev-Spigot-b11f318-9fb3aa4 (MC: 1.18 Release Candidate 3)' at com.extendedclip.papi.expansion.player.PlayerExpansion.minecraftVersion(PlayerExpansion.java:407) ~[?:?] ... 20 more

Support

hello, how can i enable the scorebord on all worlds that I have?

i believe this area?

Worlds:

World names are case-insensitive

world: [ "example" ]

This will match all worlds starting with "world_" (e.g. world_nether, world_the_end)

world_\w*: [ "custom_time" ]

If player doesn't have permission to see the restricted scoreboard then it will display the example

multiple: [ "restricted", "example" ]

using the plugin makes vanilla scoreboards disappear

hello, i've tried your plugin, really great and easy plugin so far!
the only issue i have is, i have 2 vanilla scoreboard for tracking and showing death in the tab list, and health under usernames
but with the plugin, it has completly disappeared, and when i try to put them back, i run into "Nothing changed. That display slot is already showing that objective"

any solution please ? :/

error code again

latest paperspigot
latest simplescore plugin
mc 1.19.2

error come when resrating and the first player join.

[19:07:32 WARN]: [SimpleScore] Task #3366 for SimpleScore v3.12.2 generated an exception
java.lang.IndexOutOfBoundsException: Index 2 out of bounds for length 2
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100) ~[?:?]
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106) ~[?:?]
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302) ~[?:?]
at java.util.Objects.checkIndex(Objects.java:359) ~[?:?]
at java.util.ArrayList.get(ArrayList.java:427) ~[?:?]
at com.r4g3baby.simplescore.scoreboard.models.PlayerLine.getCurrentText(PlayerLine.kt:13) ~[SimpleScore-3.12.2.jar:?]
at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.getPlayerScoreboard(ScoreboardTask.kt:135) ~[SimpleScore-3.12.2.jar:?]
at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.getPlayerScoreboards(ScoreboardTask.kt:101) ~[SimpleScore-3.12.2.jar:?]
at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run$lambda-8(ScoreboardTask.kt:75) ~[SimpleScore-3.12.2.jar:?]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.2.jar:git-Paper-174]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.19.2.jar:git-Paper-174]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1473) ~[paper-1.19.2.jar:git-Paper-174]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.19.2.jar:git-Paper-174]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1397) ~[paper-1.19.2.jar:git-Paper-174]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1173) ~[paper-1.19.2.jar:git-Paper-174]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-174]
at java.lang.Thread.run(Thread.java:833) ~[?:?]

& Symbol appears with hex colors

Hello there, So I use your plugin for my scoreboards per world usually. I have one instance in which my hub world lists the player's rank using the Placeholder API Placeholder vault_prefix. However, ranks that I use with simplescore and this placeholder always have an & colored in black before the name of the rank. This only happens with ranks using hex codes. Heres an image of what I mean by this. Is there a way to fix this? LuckPerms (My permission plugin) formats hex codes using # and &. (In this case &#FF0000Sr.admin), perhaps that is the issue here, but I am not sure.
image

Suggestion about performing a blocking I/O operation on the main thread

Hello, I have found this suggestion from another spigot plugin called Lagmonitor : Make stop the plugin from doing a blocking I/O operation on the main thread because this could affect the server performance, the thread pauses until it gets the response. Such operations should be performed asynchronous from the main thread. Besides gameplay performance it could also improve startup time.

In this case looks like this happen when the server is closing up.

SimpleScoreboard Version: 3.12.1 / Server: Purpur-1762 (MC: 1.19.2) (Implementing API version 1.19.2-R0.1-SNAPSHOT) (Git: 39e30d6 on HEAD).

Log: https://logs.apexminecrafthosting.com/U35H8fu

Thanks.

Scoreboard lines issue

Hello @r4g3baby i configured a scoreboard of 17 lines but ingame it shows only 14 lines mean it starts from 2 and ends on 16.
Here is scoreboard value:
simple2:
titles: '&a&lHypo&f&lCraft'
scores:
16:
- '&7&m+----------------+'
- '&7&m------------------'
15: '&7» &4&l⭐&b&lPlayer'
14: ' &f%player%'
13: ''
12: '&7» &4&l⭐&b&lHealth'
11: ' %hearts%'
10: ''
9: '&7» &4&l⭐&b&lRank'
8: ' &f%luckperms_prefix%'
7: ''
6: '&7» &4&l⭐&b&lBalance'
5: ' &f%vault_eco_balance_fixed%$'
4: ''
3: '&7» &4&l⭐&b&lPlaytime'
2: ' &f%playtime_time%'
1:
- '&7&m+----------------+'
- '&7&m------------------'

 Here is the output of scoreboard in minecraft:

09

Restricted scoreboard show after toggling

Description:

  • I set up a multi-scoreboard which restrict each base on permission (managed by luckperms). When toggle it off and then on again, the permission get ignored and it shows the first board in the config.
  • The problem persist even after the server restart with SaveScoreboards: true in the config.

What to expect:

  • Show only board which user has permission on after toggling like it was before toggling the board.

My config:

# Default time in ticks for a score to stay on the scoreboard (20 ticks = 1 second)
UpdateTime: 100

# Save which players have the scoreboard disabled
SaveScoreboards: true

# Whether to apply placeholders asynchronously or not
AsyncPlaceholders: true

# Enable this if you are running a 1.13+ server with backwards version support
ForceLegacy: false

# Configure your scoreboards layout
Scoreboards:
  normal_board:
    // board detail
viplv1_board:
    Restricted: true
    // board detail
viplv2_board:
    Restricted: true
    // board detail


# Set what scoreboards each world will be using
Worlds:
  world_lobby: ['viplv2_board', 'viplv1_board', 'normal_board']
  multiple: ['viplv2_board', 'viplv1_board', 'normal_board']

placeholder

when i use the placeholder %luckperms_prefix% and use hex colour codes in the prefix this happens:

Screenshot 2020-12-10 at 21 36 40

Could not apply PlaceholderAPI placeholders (async sussy)

Hey, I'm running a server with SimpleScore and grakkit, a plugin for coding in JS...

[21:58:39] [Craft Scheduler Thread - 102 - SimpleScore/WARN]: [SimpleScore] Could not apply PlaceholderAPI placeholders
java.lang.IllegalStateException: Multi threaded access requested by thread Thread[Craft Scheduler Thread - 102 - SimpleScore,5,main] but is not allowed for language(s) js.
	at com.oracle.truffle.polyglot.PolyglotEngineException.illegalState(PolyglotEngineException.java:129) ~[grakkit-5.0.4.paper.jar:?]
	at com.oracle.truffle.polyglot.PolyglotContextImpl.throwDeniedThreadAccess(PolyglotContextImpl.java:940) ~[grakkit-5.0.4.paper.jar:?]
	at com.oracle.truffle.polyglot.PolyglotContextImpl.checkAllThreadAccesses(PolyglotContextImpl.java:799) ~[grakkit-5.0.4.paper.jar:?]
	at com.oracle.truffle.polyglot.PolyglotContextImpl.enterThreadChanged(PolyglotContextImpl.java:629) ~[grakkit-5.0.4.paper.jar:?]
	at com.oracle.truffle.polyglot.PolyglotEngineImpl.enterCached(PolyglotEngineImpl.java:1885) ~[grakkit-5.0.4.paper.jar:?]
	at com.oracle.truffle.polyglot.HostToGuestRootNode.execute(HostToGuestRootNode.java:112) ~[grakkit-5.0.4.paper.jar:?]
	at com.oracle.truffle.api.impl.DefaultCallTarget.callDirectOrIndirect(DefaultCallTarget.java:85) ~[grakkit-5.0.4.paper.jar:?]
	at com.oracle.truffle.api.impl.DefaultCallTarget.call(DefaultCallTarget.java:102) ~[grakkit-5.0.4.paper.jar:?]
	at com.oracle.truffle.api.impl.DefaultRuntimeAccessor$DefaultRuntimeSupport.callProfiled(DefaultRuntimeAccessor.java:147) ~[grakkit-5.0.4.paper.jar:?]
	at com.oracle.truffle.polyglot.PolyglotValueDispatch$InteropValue.canInvoke(PolyglotValueDispatch.java:2389) ~[grakkit-5.0.4.paper.jar:?]
	at org.graalvm.polyglot.Value.canInvokeMember(Value.java:910) ~[grakkit-5.0.4.paper.jar:?]
	at com.oracle.truffle.host.adapters.HostAdapterServices.hasMethod(HostAdapterServices.java:115) ~[?:?]
	at com.oracle.truffle.host.adapters.PlaceholderExpansion$$Adapter.onPlaceholderRequest(Unknown Source) ~[?:?]
	at me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:32) ~[PlaceholderAPI-2.11.1.jar:?]
	at com.oracle.truffle.host.adapters.PlaceholderExpansion$$Adapter.onRequest(Unknown Source) ~[?:?]
	at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:161) ~[PlaceholderAPI-2.11.1.jar:?]
	at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70) ~[PlaceholderAPI-2.11.1.jar:?]
	at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98) ~[PlaceholderAPI-2.11.1.jar:?]
	at com.r4g3baby.simplescore.scoreboard.placeholders.PlaceholderReplacer.applyPlaceholderAPI(PlaceholderReplacer.kt:22) ~[SimpleScore-3.9.1.jar:?]
	at com.r4g3baby.simplescore.scoreboard.placeholders.PlaceholderReplacer.replace(PlaceholderReplacer.kt:12) ~[SimpleScore-3.9.1.jar:?]
	at com.r4g3baby.simplescore.scoreboard.placeholders.PlaceholderReplacer.replacePlaceholders(PlaceholderReplacer.kt:53) ~[SimpleScore-3.9.1.jar:?]
	at com.r4g3baby.simplescore.scoreboard.models.conditions.Equals.check(Equals.kt:14) ~[SimpleScore-3.9.1.jar:?]
	at com.r4g3baby.simplescore.scoreboard.models.Scoreboard.canSee(Scoreboard.kt:12) ~[SimpleScore-3.9.1.jar:?]
	at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run(ScoreboardTask.kt:68) ~[SimpleScore-3.9.1.jar:?]
	at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.1.jar:git-Paper-155]
	at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.18.1.jar:git-Paper-155]
	at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.18.1.jar:git-Paper-155]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]

I'm quite knowledgeable on Grakkit JS, and this error happens when multiple calls happen to the JS program from separate threads.. However it shouldn't happen. I have async-placeholders disabled in SS's config.. Not sure why this is happening :(

I'm running the latest version of SimpleScore, ProtocolLib, PlaceholderAPI & grakkit.

I have a feeling this is more of an issue with grakkit than anything else, let alone SimpleScore. I apologize for that, but you wouldn't happen to know what's going on, would you?

Unhandled exception occured in onPacketSending(PacketEvent) for SimpleScore

09.01 21:17:40 [Server] ERROR Unhandled exception occured in onPacketSending(PacketEvent) for SimpleScore 09.01 21:17:40 [Server] INFO java.lang.UnsupportedOperationException: The method getUniqueId is not supported for temporary players. 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.server.TemporaryPlayerFactory$1.delegate(TemporaryPlayerFactory.java:166) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.server.TemporaryPlayerInvocationHandler.getUniqueId(Unknown Source) ~[?:?] 09.01 21:17:40 [Server] INFO at com.r4g3baby.simplescore.scoreboard.handlers.ScoreboardHandler$Companion.getPlayerIdentifier$SimpleScore(ScoreboardHandler.kt:11) ~[?:?] 09.01 21:17:40 [Server] INFO at com.r4g3baby.simplescore.scoreboard.listeners.PacketListener.onPacketSending(PacketListener.kt:40) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.SortedPacketListenerList.invokeSendingListener(SortedPacketListenerList.java:195) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.SortedPacketListenerList.invokePacketSending(SortedPacketListenerList.java:149) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.PacketFilterManager.handlePacket(PacketFilterManager.java:535) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.PacketFilterManager.invokePacketSending(PacketFilterManager.java:516) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.netty.ProtocolInjector.packetQueued(ProtocolInjector.java:334) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.netty.ProtocolInjector.onPacketSending(ProtocolInjector.java:296) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.netty.ChannelInjector.processSending(ChannelInjector.java:434) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.netty.ChannelInjector.access$800(ChannelInjector.java:71) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.netty.ChannelInjector$3.handleScheduled(ChannelInjector.java:374) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.netty.ChannelInjector$3.onMessageScheduled(ChannelInjector.java:344) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.netty.ChannelProxy$2.schedulingRunnable(ChannelProxy.java:127) ~[?:?] 09.01 21:17:40 [Server] INFO at com.comphenix.protocol.injector.netty.EventLoopProxy.execute(EventLoopProxy.java:95) ~[?:?] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.NetworkManager.a(NetworkManager.java:209) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.NetworkManager.sendPacket(NetworkManager.java:157) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnection.sendPacket(PlayerConnection.java:1203) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerList.sendScoreboard(PlayerList.java:267) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerList.a(PlayerList.java:167) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.LoginListener.b(LoginListener.java:178) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.LoginListener.e(LoginListener.java:68) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.NetworkManager.a(NetworkManager.java:273) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.ServerConnection.c(ServerConnection.java:150) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:948) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1618] 09.01 21:17:40 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]

Simplescore version: 3.12.2
Server version: 1.12.2

Citizens support

I think SimpleScore creates scoreboard too for citizens NPCs. Just try to spam few NPCs and check console.

Thanks.

Whenever a player leaves the server, SimpleScore returns an error on the Console

[15:54:15 ERROR]: Could not pass event PlayerQuitEvent to SimpleScore v3.4.1
org.bukkit.event.EventException: null
at com.massivecraft.massivelag.inject.MassiveLagEventExecutor.execute(MassiveLagEventExecutor.java:79) ~[?:?]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.12.2.jar:git-Paper-1618]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:513) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.PlayerList.disconnect(PlayerList.java:429) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1167) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.NetworkManager.handleDisconnection(NetworkManager.java:361) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.ServerConnection.c(ServerConnection.java:184) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:948) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1618]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1618]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_262]
Caused by: java.lang.IllegalArgumentException: cannot send packets to a closed channel
at org.apache.commons.lang.Validate.isTrue(Validate.java:136) ~[patched_1.12.2.jar:git-Paper-1618]
at com.comphenix.protocol.injector.netty.ChannelInjector.invokeSendPacket(ChannelInjector.java:683) ~[?:?]
at com.comphenix.protocol.injector.netty.ChannelInjector.sendServerPacket(ChannelInjector.java:675) ~[?:?]
at com.comphenix.protocol.injector.netty.ProtocolInjector$4.sendServerPacket(ProtocolInjector.java:401) ~[?:?]
at com.comphenix.protocol.injector.PacketFilterManager.sendServerPacket(PacketFilterManager.java:786) ~[?:?]
at com.comphenix.protocol.injector.PacketFilterManager.sendServerPacket(PacketFilterManager.java:740) ~[?:?]
at com.r4g3baby.simplescore.scoreboard.handlers.ProtocolScoreboard.removeScoreboard(ProtocolScoreboard.kt:39) ~[?:?]
at com.r4g3baby.simplescore.scoreboard.listeners.PlayersListener.onPlayerQuit(PlayersListener.kt:19) ~[?:?]
at sun.reflect.GeneratedMethodAccessor905.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_262]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_262]
at com.massivecraft.massivelag.inject.MassiveLagEventExecutor.execute(MassiveLagEventExecutor.java:69) ~[?:?]
... 11 more

Whenever a player leaves the server he ends up giving the error above, when the player enters no error occurs and it works normal, only when he leaves

Informations:
Version: 1.12.-R.0.1-SnapShot
Plugin Version: Latest (3.4.1)
How to reproduce the error: Just getting in and out of the server.

Please help

PS. Sorry my bad english, i'm brazilian

Error on startup

Hey there! I'm using SimpleScore v3.7.0 on Paper 1.16.5, and I get this error on startup, I thought it was a issue with Gadse's plugin but no.

The error is this one: https://pastebin.com/PNM2hLFC

Any ideas?

Sidebar Scoreboard will not display, nothing in logs.

Just downloaded the plugin and installed it, but the sidebar doesn't actually display. The commands work and all, but the sidebar just doesn't display. Nothing in logs to give any clue why it doesn't display, unsure of what is causing the issue. If you need any info I can get it.

Running Paper 1.16.5

Cant see scoreboard.

/sb does not work cant see scoreboard etc. No log for it since it says there's no error.
Current MC version: 1.16.5
Current plugins are:
Capture PNG4

1.17 Console Spam

Hey, after I put in the new version of protcolib for 1.17 the plugin seemed to kinda loose it's mind, I didn't see an option to turn off protocolib integration. I am on Spigot 1.17.

[10:39:02] [Server thread/WARN]: [SimpleScore] Task #9847 for SimpleScore v3.7.2 generated an exception com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.network.chat.IChatBaseComponent exists in class PacketPlayOutScoreboardTeam. at com.comphenix.protocol.reflect.StructureModifier.writeInternal(StructureModifier.java:365) ~[?:?] at com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:345) ~[?:?] at com.r4g3baby.simplescore.scoreboard.handlers.ProtocolScoreboard.updateScoreboard(ProtocolScoreboard.kt:107) ~[?:?] at com.r4g3baby.simplescore.scoreboard.ScoreboardManager.updateScoreboard(ScoreboardManager.kt:107) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask$run$4.run(ScoreboardTask.kt:84) ~[?:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[server.jar:3145-Spigot-9472b09-f992ce6] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1252) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:436) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1200) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1027) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307) ~[server.jar:3145-Spigot-9472b09-f992ce6] at java.lang.Thread.run(Thread.java:831) [?:?] [10:39:02] [Server thread/WARN]: [SimpleScore] Task #9848 for SimpleScore v3.7.2 generated an exception com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.network.chat.IChatBaseComponent exists in class PacketPlayOutScoreboardTeam. at com.comphenix.protocol.reflect.StructureModifier.writeInternal(StructureModifier.java:365) ~[?:?] at com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:345) ~[?:?] at com.r4g3baby.simplescore.scoreboard.handlers.ProtocolScoreboard.updateScoreboard(ProtocolScoreboard.kt:107) ~[?:?] at com.r4g3baby.simplescore.scoreboard.ScoreboardManager.updateScoreboard(ScoreboardManager.kt:107) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask$run$4.run(ScoreboardTask.kt:84) ~[?:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[server.jar:3145-Spigot-9472b09-f992ce6] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1252) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:436) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1200) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1027) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307) ~[server.jar:3145-Spigot-9472b09-f992ce6] at java.lang.Thread.run(Thread.java:831) [?:?] [10:39:02] [Server thread/WARN]: [SimpleScore] Task #9849 for SimpleScore v3.7.2 generated an exception com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.network.chat.IChatBaseComponent exists in class PacketPlayOutScoreboardTeam. at com.comphenix.protocol.reflect.StructureModifier.writeInternal(StructureModifier.java:365) ~[?:?] at com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:345) ~[?:?] at com.r4g3baby.simplescore.scoreboard.handlers.ProtocolScoreboard.updateScoreboard(ProtocolScoreboard.kt:107) ~[?:?] at com.r4g3baby.simplescore.scoreboard.ScoreboardManager.updateScoreboard(ScoreboardManager.kt:107) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask$run$4.run(ScoreboardTask.kt:84) ~[?:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[server.jar:3145-Spigot-9472b09-f992ce6] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1252) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:436) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1200) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1027) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307) ~[server.jar:3145-Spigot-9472b09-f992ce6] at java.lang.Thread.run(Thread.java:831) [?:?] [10:39:02] [Server thread/WARN]: [SimpleScore] Task #9850 for SimpleScore v3.7.2 generated an exception com.comphenix.protocol.reflect.FieldAccessException: No field with type net.minecraft.network.chat.IChatBaseComponent exists in class PacketPlayOutScoreboardTeam. at com.comphenix.protocol.reflect.StructureModifier.writeInternal(StructureModifier.java:365) ~[?:?] at com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:345) ~[?:?] at com.r4g3baby.simplescore.scoreboard.handlers.ProtocolScoreboard.updateScoreboard(ProtocolScoreboard.kt:107) ~[?:?] at com.r4g3baby.simplescore.scoreboard.ScoreboardManager.updateScoreboard(ScoreboardManager.kt:107) ~[?:?] at com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask$run$4.run(ScoreboardTask.kt:84) ~[?:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[server.jar:3145-Spigot-9472b09-f992ce6] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1252) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:436) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1200) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1027) ~[server.jar:3145-Spigot-9472b09-f992ce6] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:307) ~[server.jar:3145-Spigot-9472b09-f992ce6] at java.lang.Thread.run(Thread.java:831) [?:?]

%cmi_equationint_<expression>% does not work

I want to use this format in conditions:

candiotionName:
type: EQUALS
input: '%cmi_equationint_{bedwars_game_test_minplayers}-{bedwars_game_test_players}%'
value: '0'

but it's not working

Second Page

Hi. How can I make a second page simple score?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.