Wrapper.py has moved to a new repository. It features a total re-write, with better performance, Python 2.x and 3.x compatibility from the ground up, a new, sleek dashboard interface, and more.
This will remain online as an archived repository only.
An extremely huge thank-you to @suresttexas00 for maintaining the Wrapper.py project for so long! Wrapper would've been dead in the road long ago if it weren't for you.
Wrapper.py is an easy to use Minecraft server wrapper for adding extra functionality into the server without modifying the server jar file. It also comes with a relatively simple and straight-forward - yet powerful - plugin API that can be used to create Bukkit-like plugins with no server modding. The API works best when operated in proxy mode.
We also have a gitter channel:
NOTICE: Wrapper will Accept the minecraft server EULA on your behalf. 2
Wrapper.py supports the following features:
/
command interface.Python 3.5 + is suggested, However...
Wrapper.py requires the following packages:
pip, requests, cryptography, bcrypt, setuptools, pkg_resources
You only need to download Wrapper.py. The '\wrapper' folder is the source code and is just the extracted version of Wrapper.py. Wrapper.py is a Python-executable archive folder containing the sourcecode.
To start Wrapper, open a console where the Wrapper.py
or /wrapper
sourcecode are
located and type the following into the console to start:
python Wrapper.py|/wrapper [--passphrase 'passphrase']
The passphrase must be 8 or more characters in length!
Once wrapper has started:
Restart wrapper.
[15:28:08] [Server thread/INFO]: Starting minecraft server version 1.12.2
[15:28:08] [Server thread/INFO]: Loading properties
...
[15:28:16] [Server thread/INFO]: Preparing spawn area: 94%
[15:28:17] [Wrapper.py/INFO]: Server started
[15:28:17] [Wrapper.py/INFO]: Proxy listening on *:25566
Any console command beginning with a slash (/) will be interpreted firstly as a Wrapper.py command.
Type /help to see a list of Wrapper.py commands.
To completely shutdown the wrapper, type /halt.
To enter passwords into the wrapper.properties.config file, use the /password
console command to enter the applicable password:
/password Web web-password <new password>
Please read our Doc page for additional information and review the issues page before submitting bug reports.
If you run into any bugs, please do report them!
If you have questions, please use our Gitter page instead of creating an issue.
The references for the wrapper plugin API are here: Wrapper.py Plugin API
A file in the wrapper root directory "superOPs.txt" now augments the "Ops.json" file. Operators in the ops.json file can be assigned a higher (wrapper) OP level. The contents of the file are laid out just like server.properties (lines of \<something>=\<value>).
Sample superops.txt
:
Suresttexas00=5
BenBaptist=9
Higher op levels are required to run sensitive wrapper commands like /perms
.
The modern event list is updated with each build: Wrapper events 3
Check the 'example-plugins' and 'stable-plugins' folders to see some example plugins. These are very useful for seeing how the API functions.
Tip:
If you want to see more error messages and other useful messages while developing plugins or debugging wrapper, look for the logging.json file and make changes to the "console" section:
...
"console": {
"stream": "ext://sys.stdout",
"formatter": "standard",
"class": "logging.StreamHandler",
"filters": [
"plugin"
],
"level": "INFO" <-- Set to DEBUG for more detailed output
},
...
1 - The old stable branch "master", version 0.7.6, build 83 has now been archived in the "Original" branch. The original
version only supports minecraft versions up to 1.8. ↩
2 - Using wrapper means you also accept the EULA, which will be set to true in the eula.txt file in your server folder. Mojang EULA ↩
3 - The original Event list (Wrapper version 0.7.6) - 0.7.6 Wrapper list of events ↩