Skip to content

Commit

Permalink
[Version 0.7.9.10]
Browse files Browse the repository at this point in the history
Fix permission check for personal gates
  • Loading branch information
DrakiaXYZ committed Mar 16, 2013
1 parent 6c044ec commit 2b8f99c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/net/TheDgtl/Stargate/Stargate.java
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public static boolean canAccessNetwork(Player player, String network) {
// 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;
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2b8f99c

Please sign in to comment.