From 2b8f99c796141d3185b7b83057413b5dba94b472 Mon Sep 17 00:00:00 2001 From: Steven Scott Date: Sat, 16 Mar 2013 10:57:06 -0700 Subject: [PATCH] [Version 0.7.9.10] Fix permission check for personal gates --- README | 2 ++ src/net/TheDgtl/Stargate/Stargate.java | 2 +- src/plugin.yml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README b/README index 5593af2..8490750 100644 --- a/README +++ b/README @@ -215,6 +215,8 @@ Bukkit Issue: Stargate will randomly NPE when drawing a sign. Long-standing Bukk ============= Changes ============= +[Version 0.7.9.10] + - Fix personal gate permission check for players with mixed-case names [Version 0.7.9.9] - Remove "Permissions" support, we now only support SuperPerms handlers. [Version 0.7.9.8] diff --git a/src/net/TheDgtl/Stargate/Stargate.java b/src/net/TheDgtl/Stargate/Stargate.java index 783b772..04b0337 100644 --- a/src/net/TheDgtl/Stargate/Stargate.java +++ b/src/net/TheDgtl/Stargate/Stargate.java @@ -420,7 +420,7 @@ 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) - String playerName = player.getName().toLowerCase(); + String playerName = player.getName(); if (playerName.length() > 11) playerName = playerName.substring(0, 11); if (network.equals(playerName) && hasPerm(player, "stargate.create.personal")) return true; return false; diff --git a/src/plugin.yml b/src/plugin.yml index b3a32b8..bc8d6e1 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: Stargate main: net.TheDgtl.Stargate.Stargate -version: 0.7.9.9 +version: 0.7.9.10 description: Stargate mod for Bukkit author: Drakia website: http://www.thedgtl.net