Prism is a rollback/restore grief-prevention plugin for Sponge-based Minecraft servers.
Prism 3.x has been completely rewritten for Sponge. It's still very early in the development process but we're working hard to exceed even our own standards.
Because of this, our feature set is growing. File an issue or let us know in IRC what's important to you.
If using Mongo, download the
Prism-(version)-all.jar file. Otherwise, download
/pr l (parameters)- Lookup records, filtering by parameters.
/pr near- Query nearby records.
/pr rb (parameters)- Rollback, filtering by parameters.
/pr rs (parameters)- Restore, filtering by parameters.
/pr undo- Undo your last rollback/restore action.
b:(block id)- "Block" name. Like "grass".
before:(time)- "Before" time period.
c:(cause)- Non-player causes, i.e. "environment"
player:(name)- "Player" name. May be an offline player.
r:(number)- "Radius" - A distance around you.
since:(time)- "Since" time period.
-clean- Clean dangerous blocks and item drops from the rollback area.
-drain- Drain liquids within a rollback area.
-no-group- Prevent record grouping in lookups. Clicking on a single record will teleport you to those coordinates.
-extended- Prints additional information to the /lookup command - Ex: Result (X, Y, Z) Date Time
prism.info- Can view information about Prism.
prism.help- Can view help.
prism.inspect- Can use inspection wand.
prism.lookup- Can query records (via lookup or near).
prism.rollback- Can perform a rollback.
prism.undo- Can undo a rollback.
prism.override.radius- Can exceed the maximum radius in the config.
Coming soon. Bug vive about this.
Prism supports a variety of databases. We work hard to ensure is Prism is fast and efficient, but there are a lot of variables and no matter how much we tweak the "out-of-box" experience, the location, hardware, and configuration of your database servers can be a crucial factor.
MongoDB is a "no-sql" database, meaning it works very differently from sql-based databases. Rather than define fixed schemas, we store records as "documents". Given the variable nature of Minecraft and Mod data, it's difficult to work with a fixed schema.
We really appreciate other features like it's incredible performance.
Mongo can be installed and run similarly to other database servers.
MySQL and the MariaDB fork are familiar products, especially for users of Prism 1/2. We continue to support these two products although native JSON support is essentially unavailable
Recent versions of MySQL support native JSON, while MariaDB has some support - although they've diverged in their handling. Supporting would require special work for each and is not a priority at this time.
H2 is a file-based storage engine which does not require any servers or setup on your part. It's useful only for testing or small servers. File-based storage engines are quite limited compared to database servers.
Unfortunately, H2 does not fully support batch inserts the way Prism needs - this impacts Prism's performance as it either prevents us from using batches, or prevents us from utilizing table relationships.
Also, H2 doesn't seem to have a way of grouping by formatted data - in this case the date. It has to group on the column itself which would defeat the purpose. For now, records are grouped but without dates.
Prism can be extended with support for additional storage engines. We always are open to PRs if you would like to submit further support.
Prism 3 offers an API which allows you to:
Please follow prism development on
Prism 3 is the successor to Prism 1/2 (for Bukkit/Spigot/Cauldron). While much of the code has been rewritten it's still influenced by our original vision.
Thanks to YourKit for an open source license for their java profiling application.
Use the provided Gradle runtime to compile.
git clone [email protected]:prism/Prism.git
cp scripts/pre-commit .git/hooks