WarpCore
✈️ WarpCore
Warp System. (plugin for PocketMine-MP 5)
Feature
-
You can add custom warps and players can use those warps!
-
If you created a warp named 'lobby', players can use it through a short command '/lobby'.
-
available two languages (english, korean) - Please correct any errors through contributions!
-
developer API (Use cases)
How to Use:
-
Put WarpCore in your plugin folder.
-
Turn on PocketMine-MP and turn off.
-
Open config.yml file in plugin data folder.
-
Start the server.
Command
name description usage permission
warp use a warp named (name) /warp (name) warpcore.use.warp
(warp's name) use a warp (short command) /(warp's name) warpcore.use.warp
warpmanager manage warps(create, remove, edit) /warpmanager warpcore.manage.warp
permissions
name default
warpcore.use.warp All players
warpcore.manage.warp operators
API
Get a warp
use RoMo\WarpCore\warp\WarpFactory;
//get a one warp WarpFactory::getInstance()->getWarp(string $name);
//get all warps WarpFactory::getInstance()->getAllWarp();
Warp method
use RoMo\WarpCore\warp\WarpFactory; use pocketmine\math\Vector3; use pocketmine\player\Player;
name);
//Getter & Setter //warp name $warp->getName() : string;
//warp location information warp->getPosition() : Vector3; warp->getPitch() : float;
//is a warp send title warp->setIsTitle(bool $isTitle) : void;
//is a warp send particle warp->setIsParticle(bool $isParticle) : void;
//is a warp send sound warp->setIsSound(bool $isSound) : void;
//is a warp able to be used by users warp->setIsPermit(bool $isPermit) : void;
//does a warp register a command(warp command, short command) warp->setIsCommandRegister(bool $isCommandRegister) : void;
//Teleport a player to this warp //targetSound is targets that receive sound packet player, array targetSound = null) : void;