mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2025-01-23 16:01:31 +01:00
Fixed perms.
This commit is contained in:
parent
fcf944e027
commit
5954c7da5f
@ -5,3 +5,8 @@ version: 0.1
|
||||
authors: [tastybento]
|
||||
|
||||
depend: [BSkyBlock]
|
||||
|
||||
permissions:
|
||||
bskyblock.intopten:
|
||||
description: Player is in the top ten.
|
||||
default: true
|
@ -67,8 +67,8 @@ public class LevelCalcByChunk {
|
||||
plugin.getLogger().info("DEBUG: player is online");
|
||||
// Get permission multiplier
|
||||
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
|
||||
if (perms.getPermission().startsWith(Settings.PERMPREFIX + "island.multiplier.")) {
|
||||
String spl[] = perms.getPermission().split(Settings.PERMPREFIX + "island.multiplier.");
|
||||
if (perms.getPermission().startsWith(us.tastybento.bskyblock.config.Settings.PERMPREFIX + "island.multiplier.")) {
|
||||
String spl[] = perms.getPermission().split(us.tastybento.bskyblock.config.Settings.PERMPREFIX + "island.multiplier.");
|
||||
if (spl.length > 1) {
|
||||
if (!NumberUtils.isDigits(spl[1])) {
|
||||
bSkyBlock.getLogger().severe("Player " + player.getName() + " has permission: " + perms.getPermission() + " <-- the last part MUST be a number! Ignoring...");
|
||||
|
@ -41,11 +41,11 @@ import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.meta.SkullMeta;
|
||||
|
||||
import bskyblock.addin.level.config.Settings;
|
||||
import bskyblock.addin.level.database.object.Levels;
|
||||
import bskyblock.addin.level.database.object.TopTenList;
|
||||
import bskyblock.addin.level.event.TopTenClick;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
import us.tastybento.bskyblock.config.Settings;
|
||||
import us.tastybento.bskyblock.database.BSBDatabase;
|
||||
import us.tastybento.bskyblock.database.managers.AbstractDatabaseHandler;
|
||||
|
||||
|
@ -6,7 +6,6 @@ import org.bukkit.material.MaterialData;
|
||||
|
||||
public class Settings {
|
||||
|
||||
public static String PERMPREFIX;
|
||||
public static boolean sumTeamDeaths;
|
||||
public static int seaHeight;
|
||||
public static HashMap<MaterialData, Integer> blockLimits;
|
||||
|
Loading…
Reference in New Issue
Block a user