[[File:A Griefed Castle.png|thumb|right|A destroyed castle with holes and a destroyed [[beacon]] pyramid.]]
'''Griefing''' is the act of irritating and angering people in video games through the use of destruction, construction, or social engineering. Popularized in ''Minecraft'' by teams, griefing has become a serious problem for [[server]] [[administrator]]s who wish to foster building and protect builders. Most players tend to dislike and frown upon griefing, while others feel it adds a certain degree of drama to the game.
The purpose of this page is to instruct players on how to prevent griefing, whether you're just a normal player or a server administrator/owner.
==Griefing methods and prevention==
{| class="wikitable" cellpadding="4" data-description="Methods and prevention"
|-
!Method
!Description
!How To Prevent (with [[mcservers:Bukkit|Bukkit]]/Spigot and plugins)
!How To Prevent (with unmodified Minecraft)
|-
|'''Destruction'''
|Most griefers' goals are to destroy as much land, buildings and creations as they can in order to make the server as unusable as possible. This can include [[Creative]] "nuking", where users instantly mine all blocks within reach, and "torch nuking" when the griefer destroys only torches. Many [[#Griefing_Clients|hacked clients]] have these as built in features. A more time-consuming and generally expensive method of griefing is the creation of [[Tutorials/Mechanisms#Cannons|TNT cannon]]s to bombard other players' creations from a safe distance. When it comes to destroying houses, griefers often steal the player's most valuable items before destroying the house. A fast, and potentially more effective, method (if the server allows it) is spawning [[wither]]s. [[End crystal]]s are also effective, but more expensive and less practical to place.
|This can be avoided with block and chunk protection plugins if you are using Bukkit. Logging and rollback plugins can completely undo the damage done by individual griefers. Restricting TNT renders cannons worthless.
|You can use the following [[commands]], either in a repeating [[command block]], or a [[Commands/function|function]] to prevent [[TNT]] from being used.
[[Commands/kill|kill]] @e[type=tnt]
[[Commands/kill|kill]] @e[type=tnt_minecart]
If you are using {{el|be}}, you can change the [[Commands/gamerule|gamerule]] tntexplodes to false.
You can also encourage players to add waterlogged blocks to their builds, making them immune to [[TNT]].
Other than that, frequently [[Tutorials/Server startup script|backing up]] your world and [[Commands/ban|banning]] or [[Commands/kick|kicking]] griefers is about all you can do.
|-
|'''Creation'''
|Nearly as frequently as simple destruction of servers, griefers also often attempt to create nude or offensive [[Tutorials/Pixel art|pixel art]]. Also, cages around players that are AFK are built, often of materials unable to mine with tools obtained early on, like [[obsidian]]. Sometimes players even surround other players' structures with obsidian, [[bedrock]], and [[sand]] or [[gravel]] which are annoying due to their falling properties. Lava casts are also a problem (see Lava/Water Flooding below).
|If you have chosen to use Bukkit, logging and rollback plugins can once again completely undo the damage done by griefers.
|[[Sand]] and [[gravel]] can be removed quite quickly using [[Torch#Usage|torches]]. [[Commands/ban|Banning]] offensive players is a good way to discourage griefing. Also, admins can use {{cmd|fill}} commands to remove any inappropriate structures from griefers.
|-
|'''Chat Spam'''
|Chat spam is simply typing and sending large amounts of messages in chat, often randomly. The result of this can be server lag, which usually makes chat spam more of an annoyance than vandalism.
|Stopping chat spam is relatively easy with spam protection plugins, of which there are a variety on Bukkit.
|Banning or kicking are the only options, although to lessen the impact you can tell players to only have chat on when they need it.
|-
|'''Abusive [[Mob]] [[Spawn]]ing'''
|This form of griefing is spawning mobs to the point that the server lags. With enough lag, the map can become corrupted and unusable. If the spawned mobs are hostile, they can be especially destructive on [[Tutorials/PvP|PvP]] servers. [[Creeper]]s, [[wither]]s, [[blaze]]s, [[endermen]], [[ghast]]s, and the [[ender dragon]] are even more destructive, as they can move and destroy blocks.
[[Tutorials/Egg farming#chicken farm|Chicken spamming]] is one of the more common ways of making mob lag, as automatic [[chicken]] farms are relatively easy to create. Alternatively, making a huge gold farm can also lag the server.
|There are various plugins available to limit the number of mobs, making it harder to create lag.
|Using {{cmd|kill}} is the easiest way to clear up mob lag. Here are some example commands you can use. If you are having a problem with a specific type of mob or in a certain area, you could use a repeating [[command block]] or function to kill those mobs.
[[Commands/kill|kill]] @e[type=chicken]
[[Commands/kill|kill]] @e[type!=player,distance=..50]
[[Commands/kill|kill]] @e[type=chicken,limit=25,distance=..50]
The first command kills all chickens in the loaded world, the second all non-player entities within 50 blocks, and the third a maximum of 25 chickens within 50 blocks. This causes the mobs to drop loot, so you may have to run this several times to kill everything, especially with [[slime]]s.
You can also use run the command {{cmd|gamerule mobGriefing false}} to stop mobs such as creepers or endermen from modifying the terrain.
|-
|'''[[Lava]]/[[Water]] Flooding'''
|If able, griefers often attempt to place as much lava and/or water around a map in order to make it as ugly and dangerous as possible. Water and lava can also be used together to create large amounts of [[cobblestone]], [[stone]] or [[obsidian]] (sometimes referred to as lava casts). [[Water]] or [[lava]] can impede [[player]]s from rebuilding the ruins of their houses.
|The best way to prevent this from happening is to simply limit who is able to place lava or water using a Bukkit plugin. If the damage has already been done, the best way to remove it is with world editing plugins.
|You can use the following [[command]], either in a repeating [[command block]] or a [[function]], to make it impossible for griefers to obtain [[lava]].
[[Commands/clear|clear]] @a lava_bucket
Otherwise, just remember to frequently back up your world.
|-
|'''Spawn killing'''
|On servers with PvP enabled, some [[player]]s take advantage of this to kill legitimate players as they spawn. The use of [[#Griefing clients|client modifications]] such as "Kill Aura" is frequently used to give the griefer a large advantage. [[End crystal]]s are also very effective weapons against players, being able to swiftly or instantly kill a player in [[Protection]] IV armor. Some may even use a hack called "Crystal Aura" to make this attack even more deadly.
|The most effective way of preventing this is to disable PvP in the spawn area with Bukkit plugins and provide multiple exits for newly spawned players to escape from (a single exit point is very predictable).
|You can use the following commands, either in a repeating command block or a function, to give a player invincibility and teleport them to a random location away from spawn. You should use a chain command block with this if not using functions. Note that players could abuse this by intentionally traveling to spawn to gain invincibility, which is why the invincibility command is shown with a smaller radius.
[[Commands/effect|effect]] give @a[distance=..15,x=100,y=120,z=100] resistance 15 255 true
[[Commands/spreadplayers|spreadplayers]] 100 100 30 300 true @a[distance=..20,x=100,y=120,z=100]
The latter command works as such in Bedrock Edition:
[[Commands/spreadplayers|spreadplayers]] 100 100 30 300 @a[r=20,x=100,y=120,z=100]
For effect, 15 represents the invincibility time. For spreadplayers, the only applicable numbers are 100 100, which is the x z to spread the players around, and the 300 which is the maximum distance to spread players. To see what the other numbers are, click the link to the commands above. Another way is to build as many beacons loaded with the resistance and regeneration effects as possible around the spawn location so anyone within the effect range of the beacons gets more health and regenerate, making them practically invincible. This also provides a safe zone for players that are seeking refuge from enemy attacks.
|-
|'''Tree creation'''
|For a long time, block logging plugins did not have the ability to roll back the growth of [[tree]]s. Because of this, griefers would place [[sapling]]s and use [[bonemeal]] (if available) to grow full trees in the locations where houses once stood, preventing rollbacks from easily undoing their damage. They would also place lots of TNT on a tree and firebomb it (if it has enough leaves) to create devastating explosions.
|Previously, server admins would restrict the use of saplings and bonemeal with Bukkit permissions; however, that lead to problems for normal players. Luckily, Bukkit logging/rollback plugins are now able to track and undo player-grown trees.
|If you aren't using plugins, then you don't need to worry about this as good old fashioned backups are not affected by trees. However, if you really want a vanilla solution, you can use {{cmd|clear}} to restrict the possession of [[sapling]]s and [[bonemeal]].
|-
|'''[[Fire]] Destruction'''
|Many builders use a lot of flammable materials, and if the server has fire spread enabled, a griefer armed with [[flint and steel]] can quickly cause a lot of damage.
|Disable fire spread with world protection plugins if you have chosen to use Bukkit. One can also restrict the use of flint and steel/[[spawn egg]]s.
|If you do {{cmd|gamerule doFireTick false}}, fire won't spread. Alternatively, use a combination of the following [[commands]], either in a repeating [[command block]] or a [[Commands/function|function]].
[[Commands/clear|clear]] @a flint_and_steel
[[Commands/clear|clear]] @a lava_bucket
[[Commands/kill|kill]] @e[type=fireball]
[[Commands/kill|kill]] @e[type=small_fireball]
|-
|'''Social Engineering'''
|Social engineering is any technique used as an attempt to gain the trust of people by acting as a normal player or creating a situation where the legitimate players need to trust them.
A common trick that griefers use is pretending to be from popular Minecraft websites or clans and asking for OP status in order to "review" the server. This is not a typical form of destruction griefing; however, this is a strategy employed by many griefers to gain trust and cause rage, or it may be done to get OP status and cause great destruction.
|Be very careful who gets administrator tools and make sure that you know them well enough to trust them with power.
|If the griefer [[Commands/deop|deops]] all of your operators, you can use the server console to deop them and reinstate control.
|-
|'''Trolling'''{{Anchor|Trolling|Troll}}
|Trolls like to annoy players, rather than outright grief them.
There are several ways to troll, such as killing a person and having them watch you throw their items into [[lava]], spamming, and promising to give them items, and doing so before killing them the moment they exit a safe zone.
|
|Most of these cannot be blocked, though they are usually easy to notice. A troll usually wants you to see what they have done, so they can annoy you more. A good temporary ban can solve things. Many trollers stop after a firm warning, for example, "Stop trolling or be banned." This is often as effective as a ban. Usually, you need to ban the person only for a day or two.
|-
|'''Map Corruption'''
|A relatively rare form of griefing, map corrupting is simply making the map file as big as possible, usually by running as far as they can (and sometimes dominating the world with destructive mobs). This can lead to a lot of lag in the server, and can make the map size so big that it cannot be loaded. If a backup is not available, then the map may need to be deleted and all structures are lost. This was a big issue before the Beta switch to a new chunk managing method.
|Some Bukkit plugins can limit the size of a map, and some make automatic saves/backups of the file.
|You can use {{cmd|worldborder set }} to set up a [[world border]] that players cannot pass. (However, there are some machines using boats and dispensers that can be used to bypass the world border.) By doing {{cmd|worldborder set