[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

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