FishingRod is an open source plugin and is made for PocketMine-MP 5.x.x.
Note: The fishing rod of this plugin is designed for PvP and not for fishing.
Install the file named FishingRod.phar
in the/home/plugins/
folder, you can download this file
from Poggit.
Please see CONTRIBUTING.
Due to some changes from PM 4 to 5, items obtained using pocketmine\item\VanillaItems
do not allow modifying the "max-durability"
property, to keep the value set in the configuration it is recommended to use the Plugin API method to get the item.
<?php
use pocketmine\item\VanillaItems;
$fishingRod = VanillaItems::FISHING_ROD();
<?php
use MXJosueDev\fishingrod\FishingRodManager; /* API Class */
$fishingRod = FishingRodManager::getFishingRod(); /* The Item with custom durability */
Why you should know it? LOL
<?php
use MXJosueDev\fishingrod\FishingRodManager; /* API Class */
use pocketmine\Server;
$player = Server::getInstance()->getPlayerExact("iMXJosue"); /* Object with instance of 'pocketmine/player/Player' */
$isFishing = FishingRodManager::getInstance()->isFishing($player); /* Returns true/false */
Plugin Icon: Fishing rod icons created by bqlqn - Flaticon