For support, join the
discord server
I'd love to take suggestions, but I don't check spigot that often
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.
1.8-1.12 download link
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
Spoiler: 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.'
Code (YAML):
# /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:
![[IMG]](//proxy.spigotmc.org/be104623aea672fd50ac18579567f395ede53462?url=https%3A%2F%2Fi.imgur.com%2F1yU8QXm.png)
- Click allow to stop players from using /back to get into that region
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
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.12, 1.16
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Deny /back commands into WorldGuard regions and GriefPrevention claims is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.12, 1.16, 1.17 and newer. Downloaded 966 times (via Spigot). Download it and open it directly in the game.
![[IMG]](http://proxy.spigotmc.org/be104623aea672fd50ac18579567f395ede53462?url=https%3A%2F%2Fi.imgur.com%2F1yU8QXm.png)