All Projects → Cosmoverse → mcMMO

Cosmoverse / mcMMO

Licence: Unlicense License
Port of mcMMO-Dev/mcMMO for PocketMine-MP (API 4.0.0)

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to mcMMO

BurgerCustomArmor
Create Custom Armor Sets with several abilities!
Stars: ✭ 25 (+0%)
Mutual labels:  pocketmine, pmmp, mcmmo
ProfileUI
Get any player's profile on a Modal Form! MCPE v1.2! PMMP support only!
Stars: ✭ 20 (-20%)
Mutual labels:  pocketmine, pmmp
CommandShop
Players have to pay items or money to use specific commands! A PocketMine plugin.
Stars: ✭ 32 (+28%)
Mutual labels:  pocketmine, pmmp
Xakkit
Server Software for Minecraft
Stars: ✭ 27 (+8%)
Mutual labels:  pocketmine, pmmp
RedstoneCircuit
This is the PocketMine plugin that implements the Redstone circuit.
Stars: ✭ 81 (+224%)
Mutual labels:  pocketmine, pmmp
PMEssentials
A collection of essential PMMP commands, features and more. Heavily inspired by Essentials
Stars: ✭ 13 (-48%)
Mutual labels:  pocketmine, pmmp
BuilderTools
🪓 Powerful World Editor plugin for PocketMine servers
Stars: ✭ 74 (+196%)
Mutual labels:  pocketmine, pmmp
Pocketmine-School
A Website To Teach Everything About PocketMine-MP
Stars: ✭ 15 (-40%)
Mutual labels:  pocketmine, pmmp
VirionTools
A handy plugin for developers who wish to compile and inject virions without using Poggit.
Stars: ✭ 17 (-32%)
Mutual labels:  pocketmine, pmmp
Pathfinding
A pmmp virion (library) for pathfinding using A*
Stars: ✭ 36 (+44%)
Mutual labels:  pocketmine, pmmp
SAC
An AntiCheat software for PockeMine-MP made to detect unfair gamplay advantages.
Stars: ✭ 52 (+108%)
Mutual labels:  pocketmine, pmmp
MysteryBox
Crate implemention for PocketMine-MP (PMMP)
Stars: ✭ 19 (-24%)
Mutual labels:  pocketmine, pmmp
IslandArchitect
An plugin to create custom sky island generators for the SkyBlock plugin
Stars: ✭ 12 (-52%)
Mutual labels:  pocketmine, pmmp
InvSee
A PocketMine-MP plugin that lets you view and modify offline and online players' inventories in real-time!
Stars: ✭ 19 (-24%)
Mutual labels:  pocketmine, pmmp
Pocketmine Mp
A server software for Minecraft: Bedrock Edition in PHP
Stars: ✭ 2,594 (+10276%)
Mutual labels:  pocketmine, pmmp
BurgerSpawners
Pocketmine Plugin implementing Stackable Spawners
Stars: ✭ 32 (+28%)
Mutual labels:  pocketmine, pmmp
NpcDialog
🗽 PocketMine-MP virion to add dialogs to entities easily
Stars: ✭ 55 (+120%)
Mutual labels:  pocketmine, pmmp
CosmeticMenu
Fun and Easy-to-Use Pocketmine Cosmetics plugin. (Gadgets, Particles, Trails, etc)
Stars: ✭ 22 (-12%)
Mutual labels:  pocketmine, pmmp
Emotes
This plugin allows players to use their favorite emotes on the server!
Stars: ✭ 15 (-40%)
Mutual labels:  pocketmine, pmmp
AuctionHouse
Feature-packed auction house plugin for PocketMine-MP (pmmp)
Stars: ✭ 31 (+24%)
Mutual labels:  pocketmine, pmmp

mcMMO

API

Player API

To fetch an McMMOPlayer instance of an online player

/** @var Player $player */
$mcmmo_player = mcMMO::getInstance()->getPlayerManager()->get($player);

As the player data is fetched asynchronously, $mcmmo_player will be null at the time the player data is being fetched from the database, so you must do a null check.

To increase the player's acrobatics skill experience

$mcmmo_player->increaseSkillExperience(SkillManager::get(SkillIds::ACROBATICS), 125);

To increase the player's acrobatics skill level by 3

$mcmmo_player->increaseSkillLevel(SkillManager::get(SkillIds::ACROBATICS), 3);

Note that increaseSkillExperience and increaseSkillLevel return a boolean indicating whether McMMOPlayerSkillExperienceChangeEvent was not cancelled (returns true if the event wasn't cancelled).

Events API

McMMOPlayerAbilityActivateEvent

Called when player activates an ability (f.e: giga drill breaker).

/**
 * Returns the skill ability that is being activated.
 * @return Ability
 */
McMMOPlayerAbilityActivateEvent::getAbility() : Ability;

/**
 * How long the ability lasts (in seconds).
 * @return int
 */
McMMOPlayerAbilityActivateEvent::getDuration() : int;

/**
 * Change how long the ability lasts
 * @param int $duration (in seconds)
 */
McMMOPlayerAbilityActivateEvent::setDuration(int $duration) : void;

McMMOPlayerSkillExperienceChangeEvent

Called when a player gains experience in a skill.

/**
 * Returns the old experience value.
 * @return int
 */
McMMOPlayerSkillExperienceChangeEvent::getOldExperience() : int;

/**
 * Returns the new experience value.
 * @return int
 */
McMMOPlayerSkillExperienceChangeEvent::getNewExperience() : int;

/**
 * Returns the old experience level.
 * @return int
 */
McMMOPlayerSkillExperienceChangeEvent::getOldLevel() : int;

/**
 * Returns the new experience level.
 * @return int
 */
McMMOPlayerSkillExperienceChangeEvent::getNewLevel() : int;

/**
 * Sets the new experience value.
 * @param int $value
 */
McMMOPlayerSkillExperienceChangeEvent::setNewExperience(int $value) : void;
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].