falkirks / spoondetector

Detect all the SPOONS!
The Unlicense
14 stars 7 forks source link
pocketmine-mp poggit-virions virion

SpoonDetector

I am so tired of getting reports on GitHub about third party server builds. This is a simple class which will detect if your plugin is running on a spoon, print a message to the console, disable your plugin, and force the user to agree to read and agree to a predefined message.

To install this into your plugin you can copy the SpoonDetector class and change the namespace to your own, or if you are fancy, this is available as a virion. To use it you must add the following to your onEnable method

SpoonDetector::printSpoon($this, 'spoon.txt');

What I think about spoons

Spoons are great. However, Spoons do not help the PocketMine community or our open source philosophy, they fragment it. Everyone who uses this library (myself included) is happy for spoon users to use their plugin, they just want to make it clear that they don't have the time to provide support.

A note to spoon developers