Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mxjosuedev/fishingrod

Fishing Rod for PvP, plugin for Pocketmine-MP 5.x.x
https://github.com/mxjosuedev/fishingrod

fishing fishing-rod php plugin pmmp pocketmine pocketmine-mp pocketmine-mp-plugin pocketmine-php pocketmine-plugin pocketmine-plugins rod

Last synced: about 18 hours ago
JSON representation

Fishing Rod for PvP, plugin for Pocketmine-MP 5.x.x

Awesome Lists containing this project

README

        

[![](https://poggit.pmmp.io/shield.state/FishingRod)](https://poggit.pmmp.io/p/FishingRod) [![](https://poggit.pmmp.io/shield.api/FishingRod)](https://poggit.pmmp.io/p/FishingRod) [![](https://poggit.pmmp.io/shield.downloads/FishingRod)](https://poggit.pmmp.io/p/FishingRod)

# FishingRod

FishingRod is an open source plugin and is made for [PocketMine-MP](https://github.com/pmmp/PocketMine-MP) 5.x.x.

Note: The fishing rod is designed for PvP and not for fishing.

## Installation

Install the file named `FishingRod.phar` in the`/home/plugins/` folder, you can download this file
from [Poggit](https://poggit.pmmp.io/p/FishingRod).

## Developers

Please see [CONTRIBUTING](https://github.com/MXJosueDev/FishingRod/blob/main/CONTRIBUTING.md).

### API

#### Get the fishing rod

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)

##### VanillaItems
```php
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. */
```

## Attributions

Plugin Icon: Fishing rod icons
created by bqlqn - Flaticon

## License

[MIT](https://choosealicense.com/licenses/mit/)