By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.
OK, Don't show this again
/sw create <arenaName>
/sw set <arenaName>
)/
), you can use them to set the arenaCommand | 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 arena level to 'arenaName.zip' |
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)
sw.cmd:
description: Permission to 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
/**
* 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) {}
- You can support me purchasing my private plugins.
- SkyWars Pro is better version of this plugin with lots of new functions:
You can buy it here
Reply to review by :
You can leave one review per plugin release, and delete or update your review at any time