By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.
OK, Don't show this again
stopon your server, then start it again.
Assign commands to specific items
There are 2 base permissions:
You need the first permission to use powertools and the second one to assign/unassign powertools. It's that simple!
Powertools work a little different in this plugin than they do in java edition. You assign commands to SPECIFIC items and not the id. This way you can share powertools to people to other people (that might only have the permission to run powertools).
If, for instance, you want to make this plugin compatible with your plugin (maybe a kit plugin or something) you can do that by making sure you use Powertools with
use AndreasHGK\Powertools\Powertools; and then call it by doing this:
$pt = Powertools::getInstance(); /** * @param item $item * @param string $command * * @return item $item */ $pt->enablePowertool($item, $command);
If the item is an existing item, be sure to also add a
You can leave one review per plugin release, and delete or update your review at any time
This Release will be permanently deleted and cannot be recovered. Are you sure?