本文整理汇总了Java中org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler类的典型用法代码示例。如果您正苦于以下问题:Java AnjoPermissionsHandler类的具体用法?Java AnjoPermissionsHandler怎么用?Java AnjoPermissionsHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AnjoPermissionsHandler类属于org.anjocaido.groupmanager.permissions包,在下文中一共展示了AnjoPermissionsHandler类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getGMDouble
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
private double getGMDouble(final CommandSender player, final String key, final double defaultValue)
{
try
{
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(getPlayer(player));
if (handler == null)
{
return defaultValue;
}
return handler.getPermissionDouble(player.getName(), key);
}
catch (Exception e)
{
ess.getLogger().log(Level.WARNING, e.getMessage(), e);
return defaultValue;
}
}
开发者ID:Curtis3321,项目名称:Essentials,代码行数:18,代码来源:GMGroups.java
示例2: getGMInteger
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
private int getGMInteger(final CommandSender player, final String key, final int defaultValue)
{
try
{
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(getPlayer(player));
if (handler == null)
{
return defaultValue;
}
return handler.getPermissionInteger(player.getName(), key);
}
catch (Exception e)
{
ess.getLogger().log(Level.WARNING, e.getMessage(), e);
return defaultValue;
}
}
开发者ID:Curtis3321,项目名称:Essentials,代码行数:18,代码来源:GMGroups.java
示例3: getGMString
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
private String getGMString(final CommandSender player, final String key, final String defaultValue)
{
try
{
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(getPlayer(player));
if (handler == null)
{
return defaultValue;
}
return handler.getPermissionString(player.getName(), key);
}
catch (Exception e)
{
ess.getLogger().log(Level.WARNING, e.getMessage(), e);
return defaultValue;
}
}
开发者ID:Curtis3321,项目名称:Essentials,代码行数:18,代码来源:GMGroups.java
示例4: getPrefix
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public String getPrefix(final CommandSender player)
{
try
{
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(getPlayer(player));
if (handler == null)
{
return null;
}
return handler.getUserPrefix(player.getName());
}
catch (Exception e)
{
ess.getLogger().log(Level.WARNING, e.getMessage(), e);
return null;
}
}
开发者ID:Curtis3321,项目名称:Essentials,代码行数:19,代码来源:GMGroups.java
示例5: getSuffix
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public String getSuffix(final CommandSender player)
{
try
{
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(getPlayer(player));
if (handler == null)
{
return null;
}
return handler.getUserSuffix(player.getName());
}
catch (Exception e)
{
ess.getLogger().log(Level.WARNING, e.getMessage(), e);
return null;
}
}
开发者ID:Curtis3321,项目名称:Essentials,代码行数:19,代码来源:GMGroups.java
示例6: getMainGroup
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public String getMainGroup(CommandSender player)
{
try
{
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissions(getPlayer(player));
if (handler == null)
{
return null;
}
return handler.getGroup(player.getName());
}
catch (Exception e)
{
ess.getLogger().log(Level.WARNING, e.getMessage(), e);
return null;
}
}
开发者ID:Curtis3321,项目名称:Essentials,代码行数:19,代码来源:GMGroups.java
示例7: playerHas
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public boolean playerHas(String worldName, String playerName, String permission) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getWorldPermissionsByPlayerName(playerName);
}
else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return false;
}
return handler.permission(playerName, permission);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:15,代码来源:Permission_GroupManager.java
示例8: playerInGroup
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public boolean playerInGroup(String worldName, String playerName, String groupName) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getWorldPermissionsByPlayerName(playerName);
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return false;
}
return handler.inGroup(playerName, groupName);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:14,代码来源:Permission_GroupManager.java
示例9: getPlayerGroups
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public String[] getPlayerGroups(String worldName, String playerName) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getWorldPermissionsByPlayerName(playerName);
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return null;
}
return handler.getGroups(playerName);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:14,代码来源:Permission_GroupManager.java
示例10: getPrimaryGroup
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public String getPrimaryGroup(String worldName, String playerName) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getWorldPermissionsByPlayerName(playerName);
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return null;
}
return handler.getGroup(playerName);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:14,代码来源:Permission_GroupManager.java
示例11: getPlayerInfoInteger
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public int getPlayerInfoInteger(String worldName, String playerName, String node, int defaultValue) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getWorldPermissionsByPlayerName(playerName);
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return defaultValue;
}
Integer val = handler.getUserPermissionInteger(playerName, node);
return val != null ? val : defaultValue;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:15,代码来源:Chat_GroupManager.java
示例12: getGroupInfoInteger
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public int getGroupInfoInteger(String worldName, String groupName, String node, int defaultValue) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getDefaultWorld().getPermissionsHandler();
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return defaultValue;
}
Integer val = handler.getGroupPermissionInteger(groupName, node);
return val != null ? val : defaultValue;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:15,代码来源:Chat_GroupManager.java
示例13: getPlayerInfoDouble
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public double getPlayerInfoDouble(String worldName, String playerName, String node, double defaultValue) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getWorldPermissionsByPlayerName(playerName);
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return defaultValue;
}
Double val = handler.getUserPermissionDouble(playerName, node);
return val != null ? val : defaultValue;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:15,代码来源:Chat_GroupManager.java
示例14: getGroupInfoDouble
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public double getGroupInfoDouble(String worldName, String groupName, String node, double defaultValue) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getDefaultWorld().getPermissionsHandler();
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return defaultValue;
}
Double val = handler.getGroupPermissionDouble(groupName, node);
return val != null ? val : defaultValue;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:15,代码来源:Chat_GroupManager.java
示例15: getPlayerInfoBoolean
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public boolean getPlayerInfoBoolean(String worldName, String playerName, String node, boolean defaultValue) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getWorldPermissionsByPlayerName(playerName);
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return defaultValue;
}
Boolean val = handler.getUserPermissionBoolean(playerName, node);
return val != null ? val : defaultValue;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:15,代码来源:Chat_GroupManager.java
示例16: getGroupInfoBoolean
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public boolean getGroupInfoBoolean(String worldName, String groupName, String node, boolean defaultValue) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getDefaultWorld().getPermissionsHandler();
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return defaultValue;
}
Boolean val = handler.getGroupPermissionBoolean(groupName, node);
return val != null ? val : defaultValue;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:15,代码来源:Chat_GroupManager.java
示例17: getPlayerInfoString
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public String getPlayerInfoString(String worldName, String playerName, String node, String defaultValue) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getWorldPermissionsByPlayerName(playerName);
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return defaultValue;
}
String val = handler.getUserPermissionString(playerName, node);
return val != null ? val : defaultValue;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:15,代码来源:Chat_GroupManager.java
示例18: getGroupInfoString
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public String getGroupInfoString(String worldName, String groupName, String node, String defaultValue) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getDefaultWorld().getPermissionsHandler();
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return defaultValue;
}
String val = handler.getGroupPermissionString(groupName, node);
return val != null ? val : defaultValue;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:15,代码来源:Chat_GroupManager.java
示例19: getPlayerPrefix
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public String getPlayerPrefix(String worldName, String playerName) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getWorldPermissionsByPlayerName(playerName);
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return "";
}
return handler.getUserPrefix(playerName);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:14,代码来源:Chat_GroupManager.java
示例20: getPlayerSuffix
import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler; //导入依赖的package包/类
@Override
public String getPlayerSuffix(String worldName, String playerName) {
AnjoPermissionsHandler handler;
if (worldName == null) {
handler = groupManager.getWorldsHolder().getWorldPermissionsByPlayerName(playerName);
} else {
handler = groupManager.getWorldsHolder().getWorldPermissions(worldName);
}
if (handler == null) {
return "";
}
return handler.getUserSuffix(playerName);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:14,代码来源:Chat_GroupManager.java
注:本文中的org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论