Crafting recipes per player #6208
Labels
Category: API
Related to the plugin API
Type: Change Proposal
RFCs (Request for Comments) on change ideas for PocketMine-MP
Type: Enhancement
Contributes features or other improvements to PocketMine-MP
Description
It's possible that in some circumstances, we may want to have different players have access to different crafting recipes, based on roles, permissions, location, and other things.
While recipe access limiting can technically be implemented by cancelling
CraftItemEvent
for non-permitted players, it doesn't prevent those players from being able to attempt the crafting in the first place, and accessing it via the recipe book. Cancelling the event this way also leads to a lot of network noise as the items are rolled back to their original states.This can be implemented similarly to the recent addition of per-player creative inventory (#5694), though in this particular case it may be worth exploring if there are better ways to do this.
Problems
Justification
Alternative methods
The text was updated successfully, but these errors were encountered: