Skip to content

GamakCZ/SkyWars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord license poggit-ci

✔️ Simple setup
✔️Multi arena support
✔️ Fast, without lags
✔️ Last PocketMine API support
✔️ Map reset
✔️ Chest refill

Releases:

Version Zip Download Phar Download
1.1.1 GitHub Poggit
1.1.0 GitHub GitHub
1.0.0 GitHub GitHub

  • Other released versions here
  • All developement builds on poggit here

How to setup?

  • Installation:

  1. Download latest release or sucess. build
  2. Upload it to your server folder /plugins/
  3. Restart the server
  • Create and setup an arena:

  1. Create an arena using /sw create <arenaName>
  2. Join the setup mode (command /sw set <arenaName>)
  3. There are setup commands (they are without /), you can use them to set the arena
  • Video:

  • Setup commands:
Command Description
help Displays all setup commands
done Is used to exit setup mode
slots <slots> Sets arena slots
level <levelName> Sets arena game level
spawn <spawnNum.> Sets arena spawn position
joinsign Update joinsign
enable Enable the arena
savelevel Saves level to 'levelName.zip'

Commands:


Commands:
    /sw help:
        Description: Displays all SkyWars commands
        Permission: sw.cmd.help (OP)
    /sw create:
        Description: Create new arena
        Permission: sw.cmd.create (OP)
        Usage: /sw set <arenaName>
    /sw remove:
        Description: Remove arena
        Permission: sw.cmd.remove (OP)
        Usage: /sw remove <arenaName>
        Note: Changes will be after restart
    /sw set:
        Description: Command allows setup arena
        Permission: sw.cmd.set (OP)
        Usage: /sw set <arenaName>
        Note: This command can be used only in-game
    /sw arenas:
        Description: Displays list of all arenas
        Permission: sw.cmd.arenas (OP)

Permissions


sw.cmd:  
    description: Permissions for all skywars commands
    default: op  
    children:  
        sw.cmd.help:
            description: Permission for /sw help  
            default: op  
        sw.cmd.create:  
            description: Permission for /sw create  
            default: op
        sw.cmd.remove:
            description: Permission for /sw remove
            default: op
        sw.cmd.set:  
            description: Permission for /sw set  
            default: op  
        sw.cmd.arenas:  
            description: Permission for /sw arenas  
            default: op    
			

API


Events:

/**  
 * Arena constructor.
 * @param Server $server  
 * @param Plugin $plugin  
 */
 public function __construct(Server $server, Plugin $plugin) {  
    $server->getPluginManager()->registerEvents($this, $plugin);  
 }  
  
/**  
 * @param PlayerArenaWinEvent $event  
 */
 public function onWin(PlayerArenaWinEvent $event) {  
    $player = $event->getPlayer();  
    $this->addCoins($player, 100);  
    $player->sendMessage("§a> You won 100 coins!");  
 }  
		
/**  
 * @param Player $player  
 * @param int $coins  
 */
 public function addCoins(Player $player, int $coins) {}

SkyWars Pro

SkyWars Pro is better version of this plugin with lots of new functions:

  • Custom chest refill with enchants
  • Opening cages
  • MySQL, Json, SQLite and YAML data providers
  • Custom messages
  • Kits with EconomyAPI support
  • Spectator mode
  • More commands and permissions
  • Portals to join
  • Lucky blocks
  • More setup commands

You can buy it here

Credits

- Icon made by Freepik from www.flaticon.com is licensed by CC 3.0 BY