FishingRod is an open source plugin and is made for PocketMine-MP 5.x.x.
Note: The fishing rod 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 changes in the PocketMine-MP API from version 4 to version 5, now it is not possible to modify some properties of the items that are obtained through pocketmine\item\VanillaItems, now, to preserve these custom properties it is recommended to use the method of the Plugin API. (The "max-durability" property is the only one that now cannot be customized if it is obtained by VanillaItems)
<?php
use pocketmine\item\VanillaItems; /* Class that contains the methods of the API. */
$fishingRod = VanillaItems::FISHING_ROD(); /* Final item that you can add to any inventory. */
<?php
use MXJosueDev\fishingrod\FishingRodManager; /* Class that contains the methods of the API. */
$fishingRod = FishingRodManager::getFishingRod(); /* Final item that you can add to any inventory. */
<?php
use MXJosueDev\fishingrod\FishingRodManager; /* Class where the API methods are. */
use pocketmine\Server;
$player = Server::getInstance()->getPlayerExact("iMXJosue"); /* Player example with instance of 'pocketmine/player/Player'. */
$isFishing = FishingRodManager::getInstance()->isFishing($player); /* Returns a boolean value indicating if the player is fishing. */
Plugin Icon: Fishing rod icons created by bqlqn - Flaticon