Coder Social home page Coder Social logo

1vs1's Introduction

1vs1

discord license poggit-ci

✔️ Simple setup
✔️Multi arena support
✔️ Fast, without lags
✔️ Last PocketMine API support

Releases:

Version Zip Download Phar Download
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 /1vs1 create <arenaName>
  2. Join the setup mode (command /1vs1 set <arenaName>)
  3. There are setup commands (they are without /), you can use them to set the arena
  • Setup commands:
Command 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:


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)

Permissions


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    
			

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) {}

Credits

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

1vs1's People

Contributors

gamakcz avatar poggit-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.