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
/1vs1 create <arenaName>
/1vs1 set <arenaName>
)/
), you can use them to set the arenaCommand | Description |
---|---|
help | Displays all setup commands |
done | Is used to exit setup mode |
level <levelName>
|
Sets arena game level |
spawn <spawnNum>
|
Sets arena spawn position |
joinsign | Update joinsign |
enable | Enable the arena |
Commands:
/1vs1 help:
Description: Displays all OneVsOne commands
Permission: 1vs1.cmd.help (OP)
/1vs1 create:
Description: Create new arena
Permission: 1vs1.cmd.create (OP)
Usage: /1vs1 set <arenaName>
/1vs1 remove:
Description: Remove arena
Permission: 1vs1.cmd.remove (OP)
Usage: /1vs1 remove <arenaName>
Note: Changes will be after restart
/1vs1 set:
Description: Command allows setup arena
Permission: 1vs1.cmd.set (OP)
Usage: /1vs1 set <arenaName>
Note: This command can be used only in-game
/1vs1 arenas:
Description: Displays list of all arenas
Permission: 1vs1.cmd.arenas (OP)
/1vs1 join:
Description: Connect player to random match
Permission: 1vs1.cmd.join (DEFAULT)
1vs1.cmd:
description: Permissions for all OneVsOne commands
default: op
children:
1vs1.cmd.help:
description: Permission for /1vs1 help
default: op
1vs1.cmd.create:
description: Permission for /1vs1 create
default: op
1vs1.cmd.remove:
description: Permission for /1vs1 remove
default: op
1vs1.cmd.set:
description: Permission for /1vs1 set
default: op
1vs1.cmd.arenas:
description: Permission for /1vs1 arenas
default: op
1vs1.cmd.join:
description: Permission for /1vs1 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) {}
Reply to review by :
You can leave one review per plugin release, and delete or update your review at any time