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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.