Search in sources :

Example 6 with PermissionInformation

use of io.github.nucleuspowered.nucleus.internal.permissions.PermissionInformation in project Nucleus by NucleusPowered.

the class GodCommand method permissionSuffixesToRegister.

@Override
public Map<String, PermissionInformation> permissionSuffixesToRegister() {
    Map<String, PermissionInformation> m = new HashMap<>();
    m.put(OTHER_SUFFIX, new PermissionInformation(plugin.getMessageProvider().getMessageWithFormat("permission.others", this.getAliases()[0]), SuggestedLevel.ADMIN));
    m.put("pvp.override", PermissionInformation.getWithTranslation("permission.god.pvp.override", SuggestedLevel.ADMIN));
    return m;
}
Also used : HashMap(java.util.HashMap) PermissionInformation(io.github.nucleuspowered.nucleus.internal.permissions.PermissionInformation)

Example 7 with PermissionInformation

use of io.github.nucleuspowered.nucleus.internal.permissions.PermissionInformation in project Nucleus by NucleusPowered.

the class SkullCommand method permissionSuffixesToRegister.

@Override
public Map<String, PermissionInformation> permissionSuffixesToRegister() {
    Map<String, PermissionInformation> m = new HashMap<>();
    m.put("others", new PermissionInformation(plugin.getMessageProvider().getMessageWithFormat("permission.others", this.getAliases()[0]), SuggestedLevel.ADMIN));
    return m;
}
Also used : HashMap(java.util.HashMap) PermissionInformation(io.github.nucleuspowered.nucleus.internal.permissions.PermissionInformation)

Example 8 with PermissionInformation

use of io.github.nucleuspowered.nucleus.internal.permissions.PermissionInformation in project Nucleus by NucleusPowered.

the class IgniteCommand method permissionSuffixesToRegister.

@Override
public Map<String, PermissionInformation> permissionSuffixesToRegister() {
    Map<String, PermissionInformation> m = new HashMap<>();
    m.put("others", new PermissionInformation(plugin.getMessageProvider().getMessageWithFormat("permission.others", this.getAliases()[0]), SuggestedLevel.ADMIN));
    return m;
}
Also used : HashMap(java.util.HashMap) PermissionInformation(io.github.nucleuspowered.nucleus.internal.permissions.PermissionInformation)

Aggregations

PermissionInformation (io.github.nucleuspowered.nucleus.internal.permissions.PermissionInformation)8 HashMap (java.util.HashMap)5 SuggestedLevel (io.github.nucleuspowered.nucleus.internal.permissions.SuggestedLevel)2 IOException (java.io.IOException)2 List (java.util.List)2 Map (java.util.Map)2 Lists (com.google.common.collect.Lists)1 Maps (com.google.common.collect.Maps)1 Sets (com.google.common.collect.Sets)1 Gson (com.google.gson.Gson)1 TypeToken (com.google.gson.reflect.TypeToken)1 ConfigException (com.typesafe.config.ConfigException)1 DESCRIPTION (io.github.nucleuspowered.nucleus.PluginInfo.DESCRIPTION)1 ID (io.github.nucleuspowered.nucleus.PluginInfo.ID)1 NAME (io.github.nucleuspowered.nucleus.PluginInfo.NAME)1 VERSION (io.github.nucleuspowered.nucleus.PluginInfo.VERSION)1 NucleusAPITokens (io.github.nucleuspowered.nucleus.api.NucleusAPITokens)1 NucleusMessageTokenService (io.github.nucleuspowered.nucleus.api.service.NucleusMessageTokenService)1 NucleusModuleService (io.github.nucleuspowered.nucleus.api.service.NucleusModuleService)1 NucleusWarmupManagerService (io.github.nucleuspowered.nucleus.api.service.NucleusWarmupManagerService)1