Spawns database for external plugins

Supported Games
GameServerKingsGameServerKings

Spawns database is used to record and store multiple points chosen by the user. It serves no purpose standalone, but is for use with other plugins

Chat Commands

  • /spawns new - Create a new spawn file
  • /spawns open - Open a existing spawn file
  • /spawns add - Add a spawn point
  • /spawns remove <number> - Remove a spawn point
  • /spawns save <filename> - Save the spawn file
  • /spawns close - Cancel spawn file creation
  • /spawns show - Display boxes on each spawn point with their corresponding spawn number

For Developers

Return (int) the max number of spawn points in the specified spawn file, or (string) error message:

object GetSpawnsCount(string filename)

Return a random (Vector3) spawn point from the specified spawnfile, or (string) error message:

object GetRandomSpawn(string filename)

Return a random (Vector3) spawnpoint between the range of min and max from the specified spawn file, or (string) error message:

object GetRandomSpawnRange(string filename, int min, int max)

Return a specific (Vector3) spawnpoint from the specified spawn file, or (string) error message:

object GetSpawn(string filename, int number)

Return (string[]) of all valid spawn file names:

string[] GetSpawnfileNames()

MIT License


Copyright (c) 2019 k1lly0u


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.