Remove CommandSender->getServer()
#6510
Labels
BC break
Breaks API compatibility
Category: API
Related to the plugin API
Easy task
Probably really easy to do, good task for first-time contributors
Type: Enhancement
Contributes features or other improvements to PocketMine-MP
Milestone
Description
This dependency makes it
impossibleinconvenient to unit-testCommandSender
-related code offline.Commands that need a
Server
instance should take it in their constructor instead of requiring aCommandSender
to provide it.The text was updated successfully, but these errors were encountered: