[Version 0.7.9.10]

Fix permission check for personal gates
This commit is contained in:
Steven Scott 2013-03-16 10:57:06 -07:00
parent 6c044ec82e
commit 2b8f99c796
3 changed files with 4 additions and 2 deletions

2
README
View File

@ -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]

View File

@ -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;

View File

@ -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