本文整理汇总了Java中de.bananaco.bpermissions.api.CalculableType类的典型用法代码示例。如果您正苦于以下问题:Java CalculableType类的具体用法?Java CalculableType怎么用?Java CalculableType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CalculableType类属于de.bananaco.bpermissions.api包,在下文中一共展示了CalculableType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getGroups
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public String[] getGroups() {
String[] groups = null;
Set<String> gSet = new HashSet<String>();
for(World world : WorldManager.getInstance().getAllWorlds()) {
Set<Calculable> gr = world.getAll(CalculableType.GROUP);
for(Calculable c : gr) {
gSet.add(c.getNameLowerCase());
}
}
// Convert to String
groups = gSet.toArray(new String[gSet.size()]);
return groups;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:15,代码来源:Permission_bPermissions2.java
示例2: getSuffix
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
public static String getSuffix(Player p) {
String bPermissions = ApiLayer.getValue(p.getPlayer().getWorld().getName(), CalculableType.USER, p.getPlayer().getName(), "suffix");
return bPermissions;
}
开发者ID:xize,项目名称:xEssentials_old_Source,代码行数:5,代码来源:bPermissions.java
示例3: playerHas
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public boolean playerHas(String world, String player, String permission) {
return ApiLayer.hasPermission(world, CalculableType.USER, player, permission);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:5,代码来源:Permission_bPermissions2.java
示例4: playerAdd
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public boolean playerAdd(String world, String player, String permission) {
ApiLayer.addPermission(world, CalculableType.USER, player, de.bananaco.bpermissions.api.Permission.loadFromString(permission));
return true;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:6,代码来源:Permission_bPermissions2.java
示例5: playerRemove
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public boolean playerRemove(String world, String player, String permission) {
ApiLayer.removePermission(world, CalculableType.USER, player, permission);
return true;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:6,代码来源:Permission_bPermissions2.java
示例6: groupHas
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public boolean groupHas(String world, String group, String permission) {
return ApiLayer.hasPermission(world, CalculableType.GROUP, group, permission);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:5,代码来源:Permission_bPermissions2.java
示例7: groupAdd
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public boolean groupAdd(String world, String group, String permission) {
ApiLayer.addPermission(world, CalculableType.GROUP, group, de.bananaco.bpermissions.api.Permission.loadFromString(permission));
return true;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:6,代码来源:Permission_bPermissions2.java
示例8: groupRemove
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public boolean groupRemove(String world, String group, String permission) {
ApiLayer.removePermission(world, CalculableType.GROUP, group, permission);
return true;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:6,代码来源:Permission_bPermissions2.java
示例9: playerInGroup
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public boolean playerInGroup(String world, String player, String group) {
return ApiLayer.hasGroup(world, CalculableType.USER, player, group);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:5,代码来源:Permission_bPermissions2.java
示例10: playerAddGroup
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public boolean playerAddGroup(String world, String player, String group) {
ApiLayer.addGroup(world, CalculableType.USER, player, group);
return true;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:6,代码来源:Permission_bPermissions2.java
示例11: playerRemoveGroup
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public boolean playerRemoveGroup(String world, String player, String group) {
ApiLayer.removeGroup(world, CalculableType.USER, player, group);
return true;
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:6,代码来源:Permission_bPermissions2.java
示例12: getPlayerGroups
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public String[] getPlayerGroups(String world, String player) {
return ApiLayer.getGroups(world, CalculableType.USER, player);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:5,代码来源:Permission_bPermissions2.java
示例13: getPlayerPrefix
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public String getPlayerPrefix(String world, String player) {
return ApiLayer.getValue(world, CalculableType.USER, player, "prefix");
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:5,代码来源:Chat_bPermissions2.java
示例14: setPlayerPrefix
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public void setPlayerPrefix(String world, String player, String prefix) {
ApiLayer.setValue(world, CalculableType.USER, player, "prefix", prefix);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:5,代码来源:Chat_bPermissions2.java
示例15: getPlayerSuffix
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public String getPlayerSuffix(String world, String player) {
return ApiLayer.getValue(world, CalculableType.USER, player, "suffix");
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:5,代码来源:Chat_bPermissions2.java
示例16: setPlayerSuffix
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public void setPlayerSuffix(String world, String player, String suffix) {
ApiLayer.setValue(world, CalculableType.USER, player, "suffix", suffix);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:5,代码来源:Chat_bPermissions2.java
示例17: getGroupPrefix
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public String getGroupPrefix(String world, String group) {
return ApiLayer.getValue(world, CalculableType.GROUP, group, "prefix");
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:5,代码来源:Chat_bPermissions2.java
示例18: setGroupPrefix
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public void setGroupPrefix(String world, String group, String prefix) {
ApiLayer.setValue(world, CalculableType.GROUP, group, "prefix", prefix);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:5,代码来源:Chat_bPermissions2.java
示例19: getGroupSuffix
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public String getGroupSuffix(String world, String group) {
return ApiLayer.getValue(world, CalculableType.GROUP, group, "suffix");
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:5,代码来源:Chat_bPermissions2.java
示例20: setGroupSuffix
import de.bananaco.bpermissions.api.CalculableType; //导入依赖的package包/类
@Override
public void setGroupSuffix(String world, String group, String suffix) {
ApiLayer.setValue(world, CalculableType.GROUP, group, "suffix", suffix);
}
开发者ID:Realmcraft,项目名称:Vault,代码行数:5,代码来源:Chat_bPermissions2.java
注:本文中的de.bananaco.bpermissions.api.CalculableType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论