[ScoreBoard with cuberite]
Hello ! I would like to do a simple scoreboard to display username, userrank and number of connected players but even with the documentation I don't understand how they work.
(I've tried checking source code but I don't see why all cScoreboard functions aren't working)

Here is the error I always got:

LUA: Plugins/ValeaCore/main.lua:8: error in function 'AddPlayerScore'.
    argument #1 is 'string'; 'cScoreboard' expected.

Thank's for the help you will give ^^
Thanks given by:
I made this code that run but I don't see any scoreboard :/
---Main file

PLUGIN = nil

function Initialize(Plugin)

   cPluginManager:AddHook(cPluginManager.HOOK_WORLD_TICK, scoreBoardTask);

   PLUGIN = Plugin;
   LOG(Plugin:GetName()..' loaded in version '..Plugin:GetVersion());

   return true


function OnDisable(Plugin)
   LOG(Plugin:GetName().. 'disabled');

--Scoreboard file

function updateScoreBoard(World)
   World:GetScoreBoard():RegisterObjective('cos', 'Joueurs en ligne:', 4);
   World:GetScoreBoard():SetDisplay('cos', 2);
   World:GetScoreBoard():SetDisplay('cos', 0)

function scoreBoardTask(World, TimeDelta)

I know that scoreBoardTask is running becasue is tried logging ^^
Thanks given by:
So finally it prints well but I need to press tab to display it :/
That's strange :c

Is there any way to emulate this press ?

Also, I would like to have something that looks like this (see attachment) but I don't see how I can do it
Thanks for the hekp you'll give :p

Attached Files
.png   Screenshot_2.png (Size: 48.62 KB / Downloads: 97)
Thanks given by:
That's a screenshot of an abused scoreboard. Fake "players" with fake "scores" on the right
Thanks given by:
This screenshot is from a famous french server running on bukkit.
I just wanted help to make the same scoreboard (set a title, display custom names...)
Thanks given by:

Users browsing this thread: 1 Guest(s)