Giter VIP home page Giter VIP logo

platewarp's Introduction

PlateWarp is an extension for the Plugin SimpleWarp

PlateWarp is not compatible with versions of SimpleWarp below 3.2.0.

Commands

Command Usage Description
/addwarpplate /addwarpplate <name> [<x> <y> <z> [level]]
/delwarpplate /delwarpplate <name> Deletes the WarpPlate for the specified Warp.
/listwarps /listwarps .

Permissions

permissions:
 platewarp:
 default: op
 children:
  platewarp.use:
   default: true
   description: "Allows the use of all PlateWarps"
  platewarp.command:
  default: op
  children:
   platewarp.command.add:
    default: op
    decription: "Allows to use the /addwarpplate command"
   platewarp.command.remove:
    default: op
    decription: "Allows to use the /delwarpplate command"
   platewarp.command.list:
    default: op
    decription: "Allows to use the /listwarps command"

API

What good is a plugin without an API? PlateWarp has an API.

Getting access

Make sure to add the following to your plugin.yml

depend: ["PlateWarp"]

Note: If you use softdepend you will need to check if PlateWarp is installed.

Now you can a copy of the API in your onEnable method

$api = PlateWarpAPI::getInstance($this); // This only works if you have a use-d the namespace for the API class
/**
 * @deprecated If you use this you should use depend instead of softdepend, if you do want to use softdepend you should just use the method below.
 */

If you want to get the instance without a static method:

//depend:
$api = $server->getPluginManager()->getPlugin("PlateWarp")->getApi(); // $server is an instance of \pocketmine\Server
//softdepend
$plugin = $server->getPluginManager()->getPlugin("PlateWarp"); //$server is an instance of \pocketmine\Server
$api = $plugin === null ? null : $plugin->getApi(); 
//remember to check if($api !== null) before doing any calls.

platewarp's People

Contributors

robske110 avatar

Stargazers

 avatar noa avatar

Watchers

James Cloos avatar  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.