Giter Club home page Giter Club logo

netherboard's Introduction

Netherboard

Scoreboard API for your Minecraft Sponge and Bukkit Plugins.
You can use this as a Plugin, or just add it to your dependencies.

Features:

  • Works for all the Bukkit versions since 1.7 (even 1.17!).
  • Works with Sponge! (Tell me if a version is not compatible)
  • No blinking!
  • Max characters per line:
    • 1.7: 16 (Working on it to allow 48 characters)
    • 1.8+: 40 (Working on it to allow 72 characters, not sure if possible, we'll see)

TODO:

  • Allow more characters per line (Using teams)

Examples:

Bukkit

Create a board:

BPlayerBoard board = Netherboard.instance().createBoard(player, "My Scoreboard");

Create a board with your own Scoreboard object:

BPlayerBoard board = Netherboard.instance().createBoard(player, scoreboard, "My Scoreboard");

Get a player's board:

BPlayerBoard board = Netherboard.instance().getBoard(player);

When you have your board, you can do whatever you want with it:

// Set a line
// If there is already a line with this score, it will replace it.
board.set("Test Score", 5);

// Set all the lines
// This will remove all the existing lines then set the new ones
board.setAll(
    "First Line",
    "Second Line",
    "Third Line",
    "Fourth Line",
    "Fifth Line"
);

// Get a line from its score
board.get(5);

// Remove a line
board.remove(5);

// Change the name of the board
board.setName("My New Scoreboard");

// Clear the board
board.clear();

// Delete the board
board.delete();

Sponge

Same thing than Bukkit, but the object is called SPlayerBoard and the methods requires Text objects instead of String ones.
NB: With Sponge, please do not create boards for different players with the same scoreboard.

Usage

To use the Netherboard API, either:

  • put it in the plugins folder of your server, add it to your dependencies in your plugin.yml (e.g. depend: [Netherboard]) and add it to the dependencies in your IDE.
  • add it to the dependencies in your IDE and include it in your plugin jar.

You can download the latest version on the Releases page on Github.

You can also use a build system:

Gradle

repositories {
    mavenCentral()
}

dependencies {
    compile 'fr.minuskube:netherboard-bukkit:1.2.3'
    
    // Or if you use Sponge:
    // compile 'fr.minuskube:netherboard-sponge:1.2.3'
}

Maven

<dependency>
  <groupId>fr.minuskube</groupId>
  <artifactId>netherboard-bukkit</artifactId>
  
  <!--
  Or if you use Sponge:
  
  <artifactId>netherboard-sponge</artifactId>
  -->
  
  <version>1.2.3</version>
</dependency>

Issues:

If you have a problem with the API, or you want to request a feature, make an issue here.

netherboard's People

Contributors

minuskube 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

netherboard's Issues

Problems with Maven using Java 17

Please update to Java 17 so it can be used in modern projects. If you don't some people (me for example) get this error when compiling in maven.

I'm not sure what it is, but it lets me use version 1.2.2 of Netherboard without this problem, but I need the 1.19 version.

image

Dude

I have a problem, I put that when a staff is activated the staffmode some lines are added and that works well but when the staff is deactivated the staffmode the lines do not leave the staff has to restart has to leave and re-enter

After changing score of same name, if we change the old score, the name disappears

Let's say you have a given score named Hello World with the score 5, then, later, you change this score to 6, it will works and it will get the new score correctly. But if after that, you add a new score with any name, like dlroW olleH, then you give it the same score than the old first score, 5, the score Hello World will disappear.

(Guess I just lost everyone)

Example for reproduction:

// Gives "Hello World - 5", correct
board.set("Hello World", 5);

// Gives "Hello World - 6", correct
board.set("Hello World", 6);

// Gives "dlroW olleH - 5", incorrect
// Expected output:
//     Hello World - 6
//     dlroW olleH - 5
board.set("dlroW olleH", 5); 

Error

I have problems with netherboard, can you please update it to 1.17

PlayBoard did not loads(?)

I done a Minecraft (1.8) plugin that generates a Scoreboard with some basically player informations (I built it with Maven and the API won't show any errors), but at the moment that i have to build the plugin the console shows me an error like he can't reach the PlayerBoard's API, can anyone help me?

Update method?

Hello, I have an idea what could be added to this API. If it is possible, you could add a method like "UPDATE" which would update the scoreboard

Readme copy & paste mistake

Hey,
the README contains

put it in the plugins folder of your server, add it to your dependencies in your plugin.yml (e.g. depend: [SmartInvs]) and add it to the dependencies in your IDE.

and I think [SmartInvs] has to be replaced with [Netherboard]?

Greetings, Paul

.

.

Maven: Using netherboard without installing the JAR

Hello. I'm trying to add Netherboard to my plugin without downloading the jar, just with maven. But when I add the bukkit dependency, it overwrites my own plugin.yml. This is how I add Netherboard to my plugin via maven.

    <dependency>
      <groupId>fr.minuskube</groupId>
      <artifactId>netherboard-core</artifactId>
      <version>1.2.0</version>
    </dependency>
    <dependency>
      <groupId>fr.minuskube</groupId>
      <artifactId>netherboard-bukkit</artifactId>
      <version>1.2.0</version>
    </dependency>

What can I do to resolve the issue?

Help with the scoreboard

Hello good morning I had these problems with the scoreboard and I don't know how to fix them, the error is
[11:48:20 ERROR]: Could not pass event PlayerJoinEvent to cFFA v1.0
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.PlayerList.onPlayerJoin(PlayerList.java:272) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.PlayerList.a(PlayerList.java:156) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.LoginListener.b(LoginListener.java:109) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.LoginListener.c(LoginListener.java:41) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.NetworkManager.a(NetworkManager.java:159) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.ServerConnection.c(ServerConnection.java:82) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:800) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]
Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at fr.minuskube.netherboard.bukkit.BPlayerBoard.(BPlayerBoard.java:19) ~[?:?]
at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:47) ~[?:?]
at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:33) ~[?:?]
at me.notcacha.cffa.scoreboard.ScoreboardPlayer.onCreate(ScoreboardPlayer.java:25) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_231]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_231]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
... 14 more
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_231]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_231]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_231]
at fr.minuskube.netherboard.bukkit.BPlayerBoard.(BPlayerBoard.java:19) ~[?:?]
at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:47) ~[?:?]
at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:33) ~[?:?]
at me.notcacha.cffa.scoreboard.ScoreboardPlayer.onCreate(ScoreboardPlayer.java:25) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_231]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_231]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_231]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
... 14 more
[11:48:21 INFO]: NotCacha[/127.0.0.1:63873] logged in with entity id 223 at ([world] 106.79864272858377, 72.0, 340.81969753510134)
[11:48:21 WARN]: [cFFA] Task #3 for cFFA v1.0 generated an exception
java.lang.NullPointerException
at me.notcacha.cffa.scoreboard.ScoreboardPlayer.updateScoreboard(ScoreboardPlayer.java:38) ~[?:?]
at me.notcacha.cffa.scoreboard.ScoreboardPlayer.lambda$0(ScoreboardPlayer.java:31) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:709) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]
[11:48:23 WARN]: [cFFA] Task #3 for cFFA v1.0 generated an exception
java.lang.NullPointerException
at me.notcacha.cffa.scoreboard.ScoreboardPlayer.updateScoreboard(ScoreboardPlayer.java:38) ~[?:?]
at me.notcacha.cffa.scoreboard.ScoreboardPlayer.lambda$0(ScoreboardPlayer.java:31) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:709) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]
[11:48:26 WARN]: [cFFA] Task #3 for cFFA v1.0 generated an exception
java.lang.NullPointerException
at me.notcacha.cffa.scoreboard.ScoreboardPlayer.updateScoreboard(ScoreboardPlayer.java:38) ~[?:?]
at me.notcacha.cffa.scoreboard.ScoreboardPlayer.lambda$0(ScoreboardPlayer.java:31) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:709) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_231]

java.lang.ClassNotFoundException: net.minecraft.server.v1_8_R3.ScoreboardServer$Action

Hi, i have an issue with API (Maven) this is it:
[13:08:32] [Server thread/WARN]: [Server thread] ERROR fr.minuskube.netherboard.bukkit.util.NMS - Error while loading NMS methods. (Unsupported Minecraft version?) [13:08:32] [Server thread/WARN]: java.lang.ClassNotFoundException: net.minecraft.server.v1_8_R3.ScoreboardServer$Action [13:08:32] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) [13:08:32] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) [13:08:32] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [13:08:32] [Server thread/WARN]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [13:08:32] [Server thread/WARN]: at java.lang.Class.forName0(Native Method) [13:08:32] [Server thread/WARN]: at java.lang.Class.forName(Class.java:264) [13:08:32] [Server thread/WARN]: at fr.minuskube.netherboard.bukkit.util.NMS.getClass(NMS.java:139) [13:08:32] [Server thread/WARN]: at fr.minuskube.netherboard.bukkit.util.NMS.<clinit>(NMS.java:70) [13:08:32] [Server thread/WARN]: at fr.minuskube.netherboard.bukkit.BPlayerBoard.sendObjective(BPlayerBoard.java:129) [13:08:32] [Server thread/WARN]: at fr.minuskube.netherboard.bukkit.BPlayerBoard.<init>(BPlayerBoard.java:65) [13:08:32] [Server thread/WARN]: at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:47) [13:08:32] [Server thread/WARN]: at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:33) [13:08:32] [Server thread/WARN]: at pl.jms.grupowetp.Main.showSidebar(Main.java:54) [13:08:32] [Server thread/WARN]: at pl.jms.grupowetp.pl.jms.grupowetp.listeners.PlayerJoinListener.onJoin(PlayerJoinListener.java:27) [13:08:32] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [13:08:32] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [13:08:32] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [13:08:32] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Method.java:498) [13:08:32] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [13:08:32] [Server thread/WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [13:08:32] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [13:08:32] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PlayerList.onPlayerJoin(PlayerList.java:298) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PlayerList.a(PlayerList.java:157) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.LoginListener.b(LoginListener.java:144) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.LoginListener.c(LoginListener.java:54) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.NetworkManager.a(NetworkManager.java:231) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.ServerConnection.c(ServerConnection.java:148) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:814) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [13:08:32] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [13:08:32] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:748)

Doubt about api

Good I have a doubt how I can use the scoreboard api without using your .jar to improve the experience of my plugin

help for api

How can I make repeated lines work example

- "&7&m--------------------"
- "&fRank&7:"
- "&d%player_rank%"
- ""
- "&fPlayers&7:"
- "&d%bungee_total%"
- ""
- "&7&m-------&7&m-------------"

because only one line counts that is blank and the other does not

Flickers Alot. And By Alot I mean alot.

So, I get the scoreboard using its get method, then setAll on the lines i want. I do that every second (Through a BukkitRunnable Task). It flickers alot each 2-4 seconds. Can you help? If you need the code just tell me and im gonna send it.

[SUGGESTION] Scoreboard limit

Hi,
I want to suggest to implement the limit of 128/256 chars line lenght in scoreboards for versions from 1.13 to latest one (actually 1.19.2).

add pizz

Add the ability to edit the appearance of asb help and all its help

1.20.1

Please update for 1.20.1 support !

Plugin is not loaded

Sorry for my bad english with me the plugin is not loaded use the latest version of Forge and sponge would be happy if you could help me to fix the problem.////spongeforge-1.12.2-2838-7.2.4-RC4057////Netherboard-Sponge
Or do I need anything else to get it going?

Add Fabric support

Add a Fabric implementation of Netherboard. The Fabric Scoreboard API is fluent and qualitative but doesn't provide utilities like an easy way to avoid scoreboard flickering.

Error while importing maven API

I used maven to upload the api, I made the basic plugin I needed and when I wanted to build it, I got "cannot access fr.minuskube.netherboard.api.PlayerBoard"

Cannot invoke "java.util.Map.put(Object, Object)" because the return value of "java.util.Map.get(Object)" is null

java.lang.NullPointerException: Cannot invoke "java.util.Map.put(Object, Object)" because the return value of "java.util.Map.get(Object)" is null
at fr.minuskube.netherboard.bukkit.BPlayerBoard.sendScore(BPlayerBoard.java:212) ~[?:?]
at fr.minuskube.netherboard.bukkit.BPlayerBoard.set(BPlayerBoard.java:104) ~[?:?]
at fr.minuskube.netherboard.bukkit.BPlayerBoard.setAll(BPlayerBoard.java:128) ~[?:?]
at me.heytek.utils.ScoreboardUtil.updateStats(ScoreboardUtil.java:98) ~[?:?]
at me.heytek.listeners.DeathListener$1.run(DeathListener.java:42) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.16.5.jar:git-Patina-ver/1.16.5-"667fb1b"]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:58) ~[patched_1.16.5.jar:git-Patina-ver/1.16.5-"667fb1b"]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.5.jar:git-Patina-ver/1.16.5-"667fb1b"]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]

Why can't you create repeated lines like Bukkit?

I know that to create the method BPlayerBoard.set ("Text", score);
You used the ScoreboardScore class, I know because I have used ScoreboardScore and it has had the same result as using the API, besides that in the NMS class you can see when you call ScoreboardScore, what I don't understand is why can't repeat lines like bukkit? Could you explain to me what Bukkit does to "repeat lines" if you have any idea? Thanks in advance.

java.lang.NoClassDefFoundError: fr/minuskube/netherboard/api/PlayerBoard

[16:30:53 ERROR]: Could not pass event PlayerJoinEvent to OceanusPractice v1.0
org.bukkit.event.EventException: null
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.PlayerList.onPlayerJoin(PlayerList.java:298) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.PlayerList.a(PlayerList.java:157) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.LoginListener.b(LoginListener.java:144) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.LoginListener.c(LoginListener.java:54) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.NetworkManager.a(NetworkManager.java:231) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.ServerConnection.c(ServerConnection.java:148) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:814) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at java.lang.Thread.run(Thread.java:1623) [?:?]
Caused by: java.lang.NoClassDefFoundError: fr/minuskube/netherboard/api/PlayerBoard
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
at java.lang.ClassLoader.defineClass(ClassLoader.java:1013) ~[?:?]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:524) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:427) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
at java.security.AccessController.doPrivileged(AccessController.java:714) ~[?:?]
at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:195) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:97) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at java.lang.ClassLoader.loadClass(ClassLoader.java:588) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:47) ~[?:?]
at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:33) ~[?:?]
at com.trosor.oceanuspractice.events.PlayerJoin.onPlayerJoin(PlayerJoin.java:16) ~[?:?]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:578) ~[?:?]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
... 14 more
Caused by: java.lang.ClassNotFoundException: fr.minuskube.netherboard.api.PlayerBoard
at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at java.lang.ClassLoader.loadClass(ClassLoader.java:588) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
at java.lang.ClassLoader.defineClass(ClassLoader.java:1013) ~[?:?]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:524) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:427) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
at java.security.AccessController.doPrivileged(AccessController.java:714) ~[?:?]
at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:195) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:97) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
at java.lang.ClassLoader.loadClass(ClassLoader.java:588) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:47) ~[?:?]
at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:33) ~[?:?]
at com.trosor.oceanuspractice.events.PlayerJoin.onPlayerJoin(PlayerJoin.java:16) ~[?:?]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:578) ~[?:?]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-21fe707-741a1bd]
... 14 more
[16:30:53 INFO]: iFanL[/192.168.1.64:3220] logged in with entity id 0 at ([lobby]9.5, 69.5, 2.5)

Error on compile full code

I have this error on compiling my code

final BPlayerBoard board = Netherboard.instance().createBoard(p, "sidebarr");

'cannot access fr.minuskube.netherboard.api.PlayerBoard'

Cannot access fr.minuskube.netherboard.api.PlayerBoard

Hey there, in IntelliJ IDEA Ultimate when adding this api as Maven and getting an instance this happens on the set (red, alert):
Cannot access fr.minuskube.netherboard.api.PlayerBoard

BPlayerBoard board = Netherboard.instance().getBoard(p);
        if(board == null)
            board = Netherboard.instance().createBoard(p, "My Scoreboard");

        board.set("a", 1);

Support Adventure component API

Adventure is a Minecraft text library that has been adopted by Sponge, Velocity, and (soon) Paper. It would be great if instead of passing Strings as legacy text, you could pass an Adventure Component.

Maven: cannot access fr.minuskube.netherboard.api.PlayerBoard

When i trying to compile using maven this error showing.

import fr.minuskube.netherboard.Netherboard;
import fr.minuskube.netherboard.bukkit.BPlayerBoard;

BPlayerBoard board = Netherboard.instance().getBoard(player);

Edit:
To fix this problem, add this to your pom.xml:

        <dependency>
            <groupId>fr.minuskube</groupId>
            <artifactId>netherboard-core</artifactId>
            <version>1.2.3</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>fr.minuskube</groupId>
            <artifactId>netherboard-bukkit</artifactId>
            <version>1.2.3</version>
            <scope>compile</scope>
        </dependency>

2 lines won't show up

Any idea why line 7 and 5 won't show up in-game, but 1, 2, 3 & 4 show up.

   @EventHandler
    public void onjoin(PlayerJoinEvent event) {
        Player p = Bukkit.getPlayerExact(toString());

        BPlayerBoard board = Netherboard.instance().createBoard(p, "board");
        board.set("⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯", 6);
        board.set(" ",5);
        board.set(ChatColor.DARK_AQUA + "Remaining: ", 4);
        board.set(" ",3);
        board.set(ChatColor.DARK_AQUA + "Later", 2);
        board.set(ChatColor.STRIKETHROUGH + "⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯", 1);
    }

I wasn't able to use API until I added core dependency

Greetings! Just started to use API, however, I wasn't able to use it until I added
implementation group: 'fr.minuskube', name: 'netherboard-core', version: '1.2.0'
alongside with
implementation group: 'fr.minuskube', name: 'netherboard-bukkit', version: '1.2.0'

My IDE was complaining about this.
image

I'm not sure is this Intellij bug, or not, but thought that it might be a worthy thing to notify you about

NPE on 1.13.2

[14:33:37] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'sb' in plugin BNCore v1.5
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-a1f2566-8cd538e]
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:139) ~[spigot.jar:git-Spigot-a1f2566-8cd538e]
	at org.bukkit.craftbukkit.v1_13_R2.CraftServer.dispatchCommand(CraftServer.java:702) ~[spigot.jar:git-Spigot-a1f2566-8cd538e]
	at net.minecraft.server.v1_13_R2.PlayerConnection.handleCommand(PlayerConnection.java:1648) ~[spigot.jar:git-Spigot-a1f2566-8cd538e]
	at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1483) ~[spigot.jar:git-Spigot-a1f2566-8cd538e]
	at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[spigot.jar:git-Spigot-a1f2566-8cd538e]
	at net.minecraft.server.v1_13_R2.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot.jar:git-Spigot-a1f2566-8cd538e]
	at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.a(SourceFile:10) ~[spigot.jar:git-Spigot-a1f2566-8cd538e]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_162]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_162]
	at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199) [spigot.jar:git-Spigot-a1f2566-8cd538e]
	at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:900) [spigot.jar:git-Spigot-a1f2566-8cd538e]
	at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot.jar:git-Spigot-a1f2566-8cd538e]
	at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:835) [spigot.jar:git-Spigot-a1f2566-8cd538e]
	at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:733) [spigot.jar:git-Spigot-a1f2566-8cd538e]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_162]
Caused by: java.lang.NullPointerException
	at fr.minuskube.netherboard.bukkit.BPlayerBoard.sendObjective(BPlayerBoard.java:128) ~[?:?]
	at fr.minuskube.netherboard.bukkit.BPlayerBoard.<init>(BPlayerBoard.java:65) ~[?:?]
	at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:47) ~[?:?]
	at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:33) ~[?:?]
	at me.pugabyte.bncore.features.scoreboards.ScoreboardsCommand.onCommand(ScoreboardsCommand.java:34) ~[?:?]
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-a1f2566-8cd538e]
	... 15 more

BPlayerBoard board = Netherboard.instance().createBoard(player, "Bear Nation");

image

Updating Scoreboard (Question)

i made a scoreboard and i call the method on join but i want to know how to update the scoreboard with a runnable task without blinking

RGB support?

Hi, with the newer Minecraft versions, RGB support would be great to achieve with Netherboard. Would it be possible to impement? If so, would it be a hacky packet stuff? I haven't looked that much into vanilla scoreboards myself.

Not working on 1.7.10

[Server thread] ERROR fr.minuskube.netherboard.bukkit.util.NMS - Error while loading NMS methods. (Unsupported Minecraft version?)
[21:07:56 WARN]: java.lang.NoSuchMethodException: net.minecraft.server.v1_7_R4.PacketPlayOutScoreboardObjective.<init>(int, net.minecraft.server.v1_7_R4.ScoreboardObjective)
[21:07:56 WARN]:        at java.lang.Class.getConstructor0(Unknown Source)
[21:07:56 WARN]:        at java.lang.Class.getConstructor(Unknown Source)
[21:07:56 WARN]:        at fr.minuskube.netherboard.bukkit.util.NMS.<clinit>(NMS.java:89)
[21:07:56 WARN]:        at fr.minuskube.netherboard.bukkit.BPlayerBoard.sendObjective(BPlayerBoard.java:129)
[21:07:56 WARN]:        at fr.minuskube.netherboard.bukkit.BPlayerBoard.<init>(BPlayerBoard.java:65)
[21:07:56 WARN]:        at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:47)
[21:07:56 WARN]:        at fr.minuskube.netherboard.Netherboard.createBoard(Netherboard.java:33)
[21:07:56 WARN]:        at fr.alkadev.eaglezzplugin.commands.TestCommand.onCommand(TestCommand.java:15)
[21:07:56 WARN]:        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[21:07:56 WARN]:        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181)
[21:07:56 WARN]:        at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767)
[21:07:56 WARN]:        at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1043)
[21:07:56 WARN]:        at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:880)
[21:07:56 WARN]:        at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28)
[21:07:56 WARN]:        at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65)
[21:07:56 WARN]:        at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:186)
[21:07:56 WARN]:        at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81)
[21:07:56 WARN]:        at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734)
[21:07:56 WARN]:        at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289)
[21:07:56 WARN]:        at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584)
[21:07:56 WARN]:        at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490)
[21:07:56 WARN]:        at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628)

This exception is thrown when using Netherboard with an 1.7.10 server.

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.