[Resolved] Scoreboard?

Hello, i want use a scoarboard to send he result of action of a player… but it doesn’t work
Scoreboard board = plugin.game.getRegistry().createScoreboardBuilder().build();
Objective obj = plugin.game.getRegistry().createObjectiveBuilder().name(“Result”).criterion(Criteria.DUMMY).displayName(Texts.builder(“Points”).color(TextColors.LIGHT_PURPLE).build()).build();

but when i start the server it give me this error:

[16:07:37] [Server thread/ERROR] [Sponge]: [Plugin Class: be.thesebakl.multiserv
e.recolter.Main][Handler: onServerStart]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0
_60]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0
_60]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1
.8.0_60]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
at org.spongepowered.mod.plugin.SpongeModPluginContainer.handleModStateE
vent(SpongeModPluginContainer.java:127) [SpongeModPluginContainer.class:1.8-1521
-2.1-DEV-744]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0
_60]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0
_60]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1
.8.0_60]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscribe
r.java:74) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(Sy
nchronizedEventSubscriber.java:47) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [mine
craft_server.1.8.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.jav
a:304) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) [minecraf
t_server.1.8.jar:?]
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(
LoadController.java:212) [LoadController.class:?]
at net.minecraftforge.fml.common.LoadController.propogateStateMessage(Lo
adController.java:190) [LoadController.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0
_60]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0
_60]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1
.8.0_60]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_60]
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscribe
r.java:74) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(Sy
nchronizedEventSubscriber.java:47) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [mine
craft_server.1.8.jar:?]
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.jav
a:304) [minecraft_server.1.8.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) [minecraf
t_server.1.8.jar:?]
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(L
oadController.java:119) [LoadController.class:?]
at net.minecraftforge.fml.common.Loader.serverStarted(Loader.java:794) [
Loader.class:?]
at net.minecraftforge.fml.common.FMLCommonHandler.handleServerStarted(FM
LCommonHandler.java:324) [FMLCommonHandler.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:440) [M
inecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
Caused by: java.lang.NullPointerException
at be.thesebakl.multiserve.recolter.Cours.(Cours.java:23) ~[
Cours.class:?]
at be.thesebakl.multiserve.recolter.Main.onServerStart(Main.java:1
22) ~[Main.class:?]
… 30 more

(line 23 =the first line of code gived)

Could you please provide a bit more information?

Forge version?
Sponge Version?
Which Java?

Using http://pastebin.com/ (or a similar service) is highly advised too :smile:

Your problem seems to lie within your own classes. Check which value might be null there.

i try to put in main class and it’s good thx