[Version 0.7.9.10]
Fix permission check for personal gates
This commit is contained in:
parent
6c044ec82e
commit
2b8f99c796
2
README
2
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]
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user