Sueta

LostSkyWars

1.5.26

A simple skywars plugin based on hy!

·Plugin

LostSkyWars is a simple skywars plugin based on hy servers!
PartySystem needs LostParties addon.
MysteryVault needs LostBoxes addon.

k.png

  • v1_8_R3
  • v1_9_R1 (Not fully tested)
  • v1_10_R1 (Not fully tested)
  • v1_11_R1 (Not fully tested)
  • v1_12_R1 (Not fully tested)

features.png

  • API
  • MySQL
  • SQLite
  • Kits System
  • Souls System
  • Soul Well System
  • Custom Messages
  • Custom Options
  • Custom Menus
  • Multi Arena mode (multi world)
  • NPCs for play game

API Details
Found at package io.github.losteddev.skywars.api

Main class: LostSkyWarsAPI
Methods:
LostSkyWarsAPI#tryWatch(org.bukkit.entity.Player, String usernameToWatch)
LostSkyWarsAPI#getLostPlayer(org.bukkit.entity.Player)

Player class: LostPlayer
Methods:
LostPlayer#destroy() : Destroys this player (only LostPlayer not account)
LostPlayer#addExp(double) : Add exp to player
LostPlayer#setCoins(int) : Set coins of player
LostPlayer#addCoins(int) : Add coins to player
LostPlayer#removeCoins(int) : Remove coins from player
LostPlayer#setSouls(int) : Set souls of player
LostPlayer#addSouls(int) : Add souls to player
LostPlayer#removeSouls(int) : Remove souls from player
LostPlayer#getCoins() : Get coins amount, returns Integer
LostPlayer#getSouls() : Get souls amount, returns Integer
LostPlayer#getCurrentExp() : Get current exp amount, returns double
LostPlayer#getLevel() : Get current level, returns Integer
LostPlayer#getMysteryDusts() : Get mystery vault dusts, returns Integer
LostPlayer#getServer() : Get current skywars server, returns null if in lobby
LostPlayer#getHandle() : Returns the Real account of player (Inside the plugin) used for SkyWarsServer methods.

Server class: SkyWarsServer
Methods:
SkyWarsServer#connect(Account from LostPlayer#getHandle()) : Connect the player to server
SkyWarsServer#disconnect(Account from..) : Disconnect the player from server
SkyWarsServer#getState() : Returns current state of server.
SkyWarsServer#isSpectator(org.bukkit.entity.Player) : Check if the player is spectating
SkyWarsServer#getName() - Returns map name
SkyWarsServer#getServerName() : Returns server name
SkyWarsServer#getOnline() : Returns online players (with spectators count)
SkyWarsServer#getAlive() : Returns online players (without dead/spectators count)
SkyWarsServer#getAliveTeams() : Returns a list of alive teams
SkyWarsServer#getKills(org.bukkit.entity.Player) : Returns count of kills from player
SkyWarsServer#getMaxPlayers() : Returns the max number of spawns
SkyWarsServer#getTeam(org.bukkit.entity.Player) : Returns SkyWarsTeam instance from player

Team class: SkyWarsTeam
States class: SkyWarsState

Usage example:
public static void changeCoinsLostSkyWars(Player player, int coins) {
    LostPlayer lp = LostSkyWarsAPI.getLostPlayer(player);
    lp.addCoins(coins);
    lp.destroy(); // Helps the garbage collector
}

commands.png

Player Commands

  • /stats <player> - Shows player stats.
  • /watch <player> - Watch a player match.

Admin Commands

  • /lsw - Main command.
  • /lsw setlobby - Set the lobby of your server.
  • /lsw build - Enable builder mode.
  • /lsw leaderboard - Manage LeaderBoards.
  • /lsw leaderboard add - Add a LeaderBoard.
  • /lsw leaderboard remove - Remove a LeaderBoard.
  • /lsw playnpc - Manage PlayNPCs.
  • /lsw playnpc add - Add a PlayNPC.
  • /lsw playnpc remove - Remove a PlayNPC.
  • /lsw playnpc setskin <mode> <user> - Set skin of the NPCs to a skin from user.
  • /lsw boxnpc - Manage MysteryVaults.
  • /lsw boxnpc add - Add a MysteryVault.
  • /lsw boxnpc remove - Remove a MysteryVault.
  • /lsw wellnpc - Manage SoulWell NPCs.
  • /lsw wellnpc add - Add a WellNPC.
  • /lsw wellnpc remove - Remove a WellNPC.
  • /lsw give - Give coins/souls to players.
  • /lsw give coins <player> <amount> - Give coins to a player.
  • /lsw give souls <player> <amount> - Give souls to a player.
  • /lsw remove - Remove coins/souls from players.
  • /lsw remove coins <player> <amount> - Remove coins from a player.
  • /lsw remove souls <player> <amount> - Remove souls from a player.
  • /lsw fstart - Force starts your current server.
  • /lsw load - Load a world of server folder.
  • /lsw unload - Unload a server world.
  • /lsw teleport - Teleport to an server world.
  • /lsw create - Create a new game.
  • /lsw chest - Enter in the chest mode (Change ChestTypes of a game).

permissions.png

  • lostskywars.lobby.fly - Fly in lobby.
  • lostskywars.chat.delay - Bypass delay to text on chat.
  • lostskywars.chat.color - Use colors on chat.
  • lostskywars.mapselector.infinite - Infinite map selector attempts.
  • lostskywars.cmd.skywars - Use /lsw (All Commands).
  • lostskywars.cmd.stats - Use /stats <username>.
  • lostskywars.cmd.watch - Use /watch <username>.

yamlconfigs.png

Similar projects

Plugin →