Skip to content

Commit 8cac21b

Browse files
author
minecraft server
committed
Replaced rant in plugin spec. Sorry!
1 parent 593156e commit 8cac21b

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

plugin-spec.txt

+4-12
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,8 @@ However, in general, the plugin SHOULD use its own logging path.
2828
Plugins MAY import any of the items contained in the top level directory.
2929
As an exception, plugins MAY NOT import proxy.py
3030
Plugins SHOULD make use of the functions given in helpers.py
31-
Plugins SHOULD
3231

33-
Plugins MUST not do stupid shit that fucks up the main program.
34-
This being python, there's no real way to prevent that apart from just not doing stupid shit.
35-
Some things that you may be tempted to do that aren't always stupid shit but still MUST not do:
36-
signals
37-
threads
38-
importing proxy.py (here be dragons)
39-
signals
40-
sleep (use schedule instead)
41-
signals
42-
taking a long time (the entire proxy is blocking on you)
43-
signals
32+
Plugins MUST NOT:
33+
Modify the real-time process timer, or the SIGALRM handler
34+
Take overly long to run (the entire proxy is blocking on you)
35+
In addition, the User and Packet objects should not be considered thread-safe.

0 commit comments

Comments
 (0)