1
1
mirror of https://github.com/geekfrog/PermissionsTime.git synced 2025-09-09 15:30:45 +00:00

2652146617 提交的BUG,修复了op无法打开权限仓库

This commit is contained in:
2018-04-18 20:54:37 +08:00
parent a6b2d621ab
commit 11330ece35
2 changed files with 5 additions and 2 deletions

View File

@ -164,6 +164,8 @@ public class PluginMain extends JavaPlugin {
public OfflinePlayer getOfflinePlayer(String name) {
for (OfflinePlayer p : getServer().getOfflinePlayers()) {
if(p==null)
continue;
if (p.getName().equalsIgnoreCase(name)) {
return p;
}