Chapter 18. Protecting Your Server Against Griefing

One of the great things about running a CanaryMod server instead of the standard Minecraft server is the ability to customize the game by adding plugins. On a public non-whitelisted server where anyone can connect and play, one of the first things a server administrator will want to do is protect against griefing or wanton destruction. In this chapter, I’ll show you how to prevent players from destroying property and how to prevent them from placing destructive blocks such as TNT and lava.

Simple Protection

The easiest way to prevent griefing is to prevent all players from breaking any blocks at all. This isn’t very practical since breaking blocks and placing blocks is part of the process of ...

Get A Beginner’s Guide to Writing Minecraft Plugins in JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.