Survival Requiring Claims Mode
Disallows building/breaking outside of land claims, but doesn't involve the other creative-mode rules.
This commit is contained in:
parent
ff00b78189
commit
c40e8ac75c
|
|
@ -4,5 +4,6 @@ public enum ClaimsMode
|
|||
{
|
||||
Survival,
|
||||
Creative,
|
||||
Disabled
|
||||
Disabled,
|
||||
SurvivalRequiringClaims
|
||||
}
|
||||
|
|
@ -2456,7 +2456,7 @@ public class GriefPrevention extends JavaPlugin
|
|||
if(claim == null)
|
||||
{
|
||||
//no building in the wilderness in creative mode
|
||||
if(this.creativeRulesApply(location))
|
||||
if(this.creativeRulesApply(location) || this.config_claims_worldModes.get(location.getWorld()) == ClaimsMode.SurvivalRequiringClaims)
|
||||
{
|
||||
String reason = this.dataStore.getMessage(Messages.NoBuildOutsideClaims);
|
||||
if(player.hasPermission("griefprevention.ignoreclaims"))
|
||||
|
|
@ -2493,7 +2493,7 @@ public class GriefPrevention extends JavaPlugin
|
|||
if(claim == null)
|
||||
{
|
||||
//no building in the wilderness in creative mode
|
||||
if(this.creativeRulesApply(location))
|
||||
if(this.creativeRulesApply(location) || this.config_claims_worldModes.get(location.getWorld()) == ClaimsMode.SurvivalRequiringClaims)
|
||||
{
|
||||
String reason = this.dataStore.getMessage(Messages.NoBuildOutsideClaims);
|
||||
if(player.hasPermission("griefprevention.ignoreclaims"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user