thumbnail
Return to Blog Catalog
Other

How to Protect Your Minecraft Server

Posted on by bisecthosting

Minecraft servers are a wonderful gateway into all the many ways you can play the game. But keeping your Minecraft Server secured is massively important.

Here's our guide on how to protect your Minecraft server, where we'll cover everything from Vanilla settings to plugins and break down why they're important.

How to Protect Your Minecraft Server Using Vanilla Settings

Before starting with the plugins, let's start with the stuff we’ve seen before: vanilla settings, and the server.properties file.

Whitelist

Whitelisting is a way to block members you don't want joining your Minecraft server, by only allowing players in who are on your list. This has only two options, true or false. Enabling whitelisting (whitelist = true) will generate a whitelist.json file. But you can simply add or remove players by using /whitelist [add/remove] [player]. You can also turn the whitelist on or off by using the command /whitelist [on/off].

PVP

Player vs. Player, aka PvP, enables players to hit each other on your server. If your server doesn’t depend on it, you're able to turn it off entirely or toggle it on/off in certain situations.

Don’t Miss It: Is Minecraft Bedrock Better Than Java?

We'll go over each situation below.

Teams

Teams are an important way for servers to control pvp for players that want it on their servers. Here are some of the different team commands you can run:

  • Create a team with /scoreboard teams add [team name].
  • Add players to the team with /scoreboard teams join [team name] [player].
  • Disable friendly fire with /scoreboard teams option [team name] friendlyfire false. If you want to re-enable friendly fire again, replace false with true here.

While this is no perfect solution to controlling PvP on your Minecraft server, it’s what Vanilla affords us. Thankfully, plugins can help a lot here.

Spawn Protection

Spawn protection sets a radius to stop building and mining around a spawn point. To change this, go to the server.properties file where you will find spawn-protection=0. If you’re playing a custom map, or don’t want players to do that for one reason or another, then consider enabling this option and customizing the radius to your preferences. 

Remember that this option doesn’t protect the spawn area from mobs like creeper explosions, for example. We’ll address how to prevent this as well further down.

Game Rules

Game rules change and customize how your Minecraft world behaves, and you can change your game’s rules by using _/gamerule [rule] [value]_. We’ll be talking about every rule that can help you protect your server in this section, so buckle up! 

doFireTick

You know when you light up one wood to create a cool campfire, and then suddenly your village is on fire? The game rule _/gamerule doFireTick [true/false]_ disables that.

You can use this when you want to do create an extremely cool campfire, or, for something more useful, you can disable the rule if you mistakenly give a flint and steel to your players. Lifehack: if you want to go all Daenerys Targaryen on your players but you don’t want them to get hurt, you can disable the game rule fireDamage instead, it also takes either true or false values 

mobGriefing

Remember the creeper we talked about before? Well, now it’s nothing! You can easily disable their explosions by using _/gamerule mobGriefing [true/false]_ . Not only will this disable creeper explosions, but it prevents mobs from picking up your items off the ground.

PvP

Yes, you can disable player versus player combat from the command line too using  _/gamerule pvp [true/false]_

tntExplodes 

This rule, written as _/gamerule tntExplodes [true/false]_ disables TNT explosions. Useful if your friend loves to “test the server capabilities”.

How to Protect Your Minecraft Server Using Plugins

Next, we’ll move on to the plugins side of protecting your Minecraft server, which means access to tons of unique options beyond those in the vanilla settings.

Don’t Miss It: Weekly Wrap Up - September 17th

There are many plugins available that can enhance your Minecraft experience. These are our recommendations:

Offline Servers - AuthMe 

If your server runs in offline mode, we recommend installing the AuthMe plugin. AuthMe requires users to register with a password before playing on a server, and it includes an email recovery option. This protects your players from identity theft, and enables you to restrict access based on your servers needs.

You can download the AuthMe plugin here.

World Guard

World Guard is a great plugin for public servers that allows you to create different zones in your world. With these you can set different gamerules for each region, restrict members from entering or leaving a specific zone and more! The plugin needs to be installed with another plugin called WorldEdit to function. After downloading them both, you will no longer have to worry about your “perfectly hidden” storage room!

You can download the WorldEdit plugin here.

You can download the World Guard plugin here

Modern LWC

Tired of your neighbors going through your chests? It’s about time you fixed that. Modern LWC is a great plugin that lets users protect their own chests with the ability to give permissions to their friends too.

You can download the Modern LWC plugin here.

Anti-Xray 

Anti-Xray is incredibly useful. It prevents the very common cheat of using software to have Xray vision in Minecraft. Typically, this gives players the ability to see beneath the surface and instantly find valuable materials or hidden bases.

You can download the Anti-Xray plugin here.

Anti-Cheat

For public servers, we recommend using anti-cheat plugins, preferably a well-designed premium one, to protect your server against cheaters. Spartan AntiCheat is our premium recommendation since it is highly regarded by a lot of developers and server owners. For free options, a popular choice is NoCheatPlus.

While your mileage may vary, premium anti-cheat programs typically have better protection against popular threats like KillAura and NoKnockback. For this reason we recommend going the extra mile if fully preventing cheating is important to you.

You can download Spartan AntiCheat here.

You can download NoCheatPlus here.

Conclusion

There you have it folks! That’s our guide on how to protect your Minecraft server through vanilla settings and plugins. While each server is different, these options are great ways to ensure your server is secure and offers the gameplay experience you’re looking for.

Don’t Miss It: Best Minecraft Seeds in 1.16.2

But of course, there will always be new threats, and new security options around the corner. With this in mind, feel free to ask any questions or share your thoughts in the comments below!

Get Started with a
Game Server

Looking to create your own gaming server? It only takes a few minutes.

You Might Also Like

Search our blog

Join our Discord!

20,000+ Members & Growing!

Join our DiscordDISCORD
Share our blog

Start your Game server

Looking to create your own gaming server? It only takes a few minutes.

What do you think?

0 Responses
It's okayIt's Okay
It's okayPerfect
It's okayLoved it!