Deny /back commands into WorldGuard regions and GriefPrevent
1.10Adds WorldGuard flag to deny all /back commands | Checks for GriefPrevention claims as well
For support, join the discord server
I'd love to take suggestions, but I don't check spigot that often
Have you ever wanted to stop people from returning to regions or claims with /back? This is the plugin for you! It adds a third-party flag to WorldGuard that you can enable if you don't want players to get back to the region with /back, and a config setting to stop players from returning to untrusted claims.
Requirements
WorldGuard plugin is a dependency that you can get here.
GriefPrevention plugin is not required for the plugin to work, but DenyBack will work with it. You can get it here.
Blocked Commands
The following commands are the default back commands that this plugin will check for:
/back
/eback
/return
/ereturn
/cmi back
/cback
/dback
You can add more commands in the config
Config
config.yml
# /rg flag -w "{world_name}" -h 6 {region_name} deny-back ALLOW
# what commands to deny
deny-commands:
- '/back'
- '/cmi back'
- '/eback'
- '/cback'
- '/cmi cback'
- '/return'
- '/ereturn'
- '/dback'
# the permission that allows players to /back to their death location
back-on-death-permission: 'essentials.back.ondeath' # cmi.command.back.ondeath for cmi
# if GriefPrevention is enabled, true = /back will be denied if a player's last known location is inside a claim they are not trusted in
deny-untrusted-claims: true
# set this true to deny back to all non-members of a region - setting the region flag overrides this
deny-nonmembers: false
# message sent to player if they are denied returning to a location
deny-message: '&c&lHey! &7Sorry, but you can''t return to there.'
# this will use GriefPrevention's message when a player tries to return to a claim
use-grief-prevention-message: true
back-command:
# register a back command for DenyBack
register: false
# send player back to the last location that they are allowed to go
use-last-available-location: true
# how many seconds before player will be teleported
teleport-delay: 0
# message sent to player when they use the command
message: '&6Returning to previous location.'Usage
- Create a region with WorldGuard. More info in the WorldGuard documentation.
- Run the command: "/rg flags" in the region you want to be affected.
- Click the arrows in chat to get to one of the pages. It should look something like this:

- Click allow to stop players from using /back to get into that region
If you are looking at how to deny back into untrusted claims, it is enabled by default. You can turn it off in the config.
Commands
/denyback reload - requires denyback.admin to use
This next command requires the back command to be enabled in the config
/dback - denyback.back
* denyback.back.ondeath is required to be able to return to your death location
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta