The /team top and the leaderboard placeholders do not work, an error pops up in console
Expected Behaviour
I expected both things to work
How to Reproduce
/team top
Error message
29.07 17:34:34 [Server] INFO JrAdmin issued server command: /team top
29.07 17:34:34 [Server] WARN [BetterTeams] Plugin BetterTeams v4.7.1 generated an exception while executing task 4891
29.07 17:34:34 [Server] INFO java.lang.NullPointerException: Cannot invoke "com.booksaw.betterTeams.Team.getName()" because "tempTeam" is null
29.07 17:34:34 [Server] INFO at com.booksaw.betterTeams.commands.team.TopCommand$1.run(TopCommand.java:39) ~[BetterTeams.jar:?]
29.07 17:34:34 [Server] INFO at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.1.jar:git-Paper-47]
29.07 17:34:34 [Server] INFO at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.20.1.jar:git-Paper-47]
29.07 17:34:34 [Server] INFO at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.20.1.jar:?]
29.07 17:34:34 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
29.07 17:34:34 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
29.07 17:34:34 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]
What is the bug?
The /team top and the leaderboard placeholders do not work, an error pops up in console
Expected Behaviour
I expected both things to work
How to Reproduce
/team top
Error message
29.07 17:34:34 [Server] INFO JrAdmin issued server command: /team top 29.07 17:34:34 [Server] WARN [BetterTeams] Plugin BetterTeams v4.7.1 generated an exception while executing task 4891 29.07 17:34:34 [Server] INFO java.lang.NullPointerException: Cannot invoke "com.booksaw.betterTeams.Team.getName()" because "tempTeam" is null 29.07 17:34:34 [Server] INFO at com.booksaw.betterTeams.commands.team.TopCommand$1.run(TopCommand.java:39) ~[BetterTeams.jar:?] 29.07 17:34:34 [Server] INFO at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.1.jar:git-Paper-47] 29.07 17:34:34 [Server] INFO at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.20.1.jar:git-Paper-47] 29.07 17:34:34 [Server] INFO at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.20.1.jar:?] 29.07 17:34:34 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] 29.07 17:34:34 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] 29.07 17:34:34 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]
Output of /teama version
4.7.1
Additional Information
No response