SimpleWarp

SimpleWarp

por poggit-archive
No disponible

No funciona (falla al cargar) — Could not load plugin 'SimpleWarp_4.0.1.phar': Invalid plugin manifest: Invalid Plugin "permissions": Nested permission declarations are no longer supported. Declare each permission separately. · Probado en PocketMine-MP 5.50.0 (PHP 8.4.27).

Spawnspocketmine
4visitas
0descargas

SimpleWarp

Poggit

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 powerful 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 [player] Warps you or another player to a specified warp.

/addwarp /addwarp [ | |] Creates a new warp at a set location.

/delwarp /delwarp Deletes specified warp.

/listwarps /listwarps Prints out list of warps.

/openwarp /openwarp Allows any player to access specified warp.

/closewarp /closewarp Restricts specfied so that only players with correct permission node can use it

/warpreport /warpreport [title] Run from console to generate a new GitHub issue for SimpleWarp

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.command.closewarp: default: op simplewarp.essentials.notice: default: op description: Recieve messages when their is warp conflict in Essentials 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(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=api = server->getPluginManager()->getPlugin("SimpleWarp")->getApi(); // $server is an instance of \pocketmine\Server