Giter Site home page Giter Site logo

simplewarp's Introduction

SimpleWarp

SimpleWarp is the original warp plugin for PocketMine-MP. It allows players to move from point A to B with ease. At the core of SimpleWarp is simplicity and extensibility. Although very easy on the end user, it exposes a beast of a backend for developers to hack around with.

SimpleWarp 2.0 is not compatible with older SimpleWarp and PocketMine versions.

Commands

Command Usage Description
/warp /warp <name> [player] Warps you or another player to a specified warp.
/addwarp `/addwarp ]`
/delwarp /delwarp <name> Deletes specified warp.
/listwarps /listwarps Prints out list of warps.
/openwarp /openwarp <name> Allows any player to access specified warp.
/closewarp /closewarp <name> Restricts specfied so that only players with correct permission node can use it

Permissions

 simplewarp:
  default: op
  children:
   simplewarp.command:
    default: op
    children:
     simplewarp.command.list:
      default: true
      children:
       simplewarp.command.list.xyz:
        default: op
       simplewarp.command.list.visual:
        default: op
     simplewarp.command.addwarp:
      default: op
     simplewarp.command.delwarp:
      default: op
     simplewarp.command.warp:
      default: true
      children:
        simplewarp.command.warp.other:
         default: op
     simplewarp.command.openwarp:
      default: op
     simplewarp.command.closewarp:
       default: op
   simplewarp.warp:
    default: op
    description: Allows usage of all warps

API

What good is a plugin without an API? SimpleWarp has an API which is used by it's own core components.

Getting access

Make sure to add the following to your plugin.yml

depend: ["SimpleWarp"]

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

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

$api = SimpleWarpAPI::getInstance($this); // This only works inside a PluginBase

If you want to get the instance outside your main class, you can do

$api = $server->getPluginManager()->getPlugin("SimpleWarp")->getApi(); // $server is an instance of \pocketmine\Server

simplewarp's People

Contributors

falkirks avatar

Watchers

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