LaserHydra
Provides a simple scoreboard API system

Supported Games
GameServerKingsGameServerKings

Scoreboards API allows other plugins to register scoreboards to show data on.

Permissions

  • scoreboards.admin -- Allows player to use the chat commands

Chat Commands

  • /scoreboard select -- Select a scoreboard to be used
  • /scoreboard disable -- Disable the scoreboard
  • /scoreboard list -- List available scoreboards

The scoreboards need to be created and updated by other plugins! This is an API and won't do a lot without other plugins using this!

Configuration

{
  "Anchor Max": "0.98 0.91",
  "Anchor Min": "0.83 0.21",
  "Background Color": "0.3 0.3 0.3 0.7",
  "Content Color": "0 0 0 1",
  "Header Color": "0.66 1 0 1",
  "Title Color": "0 0 0 1"
}

Developer API

Referencing this plugin:

[PluginReference]
Plugin Scoreboards;

Calling an API function:

Scoreboards?.Call("CreateScoreboard", "TestScoreboard", "This is just a test scoreboard", new KeyValuePair<string, string>[0]);

API Methods

void UpdateScoreboard(string title, KeyValuePair<string, string>[] entries)

Updates an existing scoreboard

void CreateScoreboard(string title, string description, KeyValuePair<string, string>[] entries)

Creates a new scoreboard (checks for existing scoreboards - could be called on each load / if it already exists)

void RemoveScoreboard(string title)

Removes an existing scoreboard

MIT License


Copyright (c) 2019 LaserHydra


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.