From 82894b2e52e81262e3766e2206819c0a57e1a840 Mon Sep 17 00:00:00 2001 From: Steven Scott Date: Fri, 27 Jan 2012 15:02:17 -0800 Subject: [PATCH] [Version 0.7.4.2] - stargate.create.personal permission now also allows user to use personal gates --- README | 2 ++ src/net/TheDgtl/Stargate/Stargate.java | 2 ++ src/plugin.yml | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README b/README index 1e7df73..459223c 100644 --- a/README +++ b/README @@ -198,6 +198,8 @@ createConflict=Gate conflicts with existing gate ============= Changes ============= +[Version 0.7.4.2] + - stargate.create.personal permission now also allows user to use personal gates [Version 0.7.4.1] - Quick API update to add player to the activate event [Version 0.7.4.0] diff --git a/src/net/TheDgtl/Stargate/Stargate.java b/src/net/TheDgtl/Stargate/Stargate.java index 8d50449..dcf4380 100644 --- a/src/net/TheDgtl/Stargate/Stargate.java +++ b/src/net/TheDgtl/Stargate/Stargate.java @@ -381,6 +381,8 @@ public class Stargate extends JavaPlugin { } // Can access this network if (hasPerm(player, "stargate.network." + network)) return true; + // Is able to create personal gates (Assumption is made they can also access them) + if (network.equals(player.getName()) && hasPerm(player, "stargate.create.personal")) return true; return false; } diff --git a/src/plugin.yml b/src/plugin.yml index eafc021..c766c2b 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: Stargate main: net.TheDgtl.Stargate.Stargate -version: 0.7.4.1 +version: 0.7.4.2 description: Stargate mod for Bukkit author: Drakia website: http://www.thedgtl.net