O'Reilly logo

A Beginner’s Guide to Writing Minecraft Plugins in JavaScript by Walter Higgins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required