tastybento / ASkyBlock-Bugs-N-Features

Bug Tracker for ASkyBlock and AcidIsland - note team is 100% working on next version BentoBox
6 stars 3 forks source link

Protect staff members from being expelled or banned by players #611

Closed EBatuzay closed 6 years ago

EBatuzay commented 6 years ago

Some users use /is expel to ban my moderators from his island, making his job hard. Can you make some node perm, example: island.staff to give a staff inmunity? Thanks.

Poslovitch commented 6 years ago

You should have a look at the askyblock.mod.* permissions node, which will solve your problem ;)

Give it (or its sub-permissions) to your staff members, and they'll be able to bypass bans, expels, locks and protection on every island.

As a reminder, below is the list of all exisiting permissions in ASkyBlock 3.0.8.2 :

permissions:
  askyblock.*:
    default: false
    children:
      askyblock.island.*:
        children:
          askyblock.island.go:
            description: Allow teleporting to player island
            default: true
          askyblock.island.create:
            description: Let the player use the /island command
            default: true
          askyblock.island.info:
            description: Let the player check their island level
            default: true
          askyblock.island.topten:
            description: Let the player see the top ten list
            default: true
          askyblock.island.sethome:
            description: Let the player set their island teleport point
            default: true
          askyblock.island.challenges:
            description: Let the player use the /challenges command
            default: true
          askyblock.island.warp:
            description: Let the player use /island warp to warp to a players island
            default: true
          askyblock.island.addwarp:
            description: Let the player place a Welcome warp sign
            default: true
          askyblock.island.minishop:
            description: Allows usage of the minishop
            default: true
          askyblock.island.controlpanel:
            description: Allows usage of the island GUI
            default: true
          askyblock.island.biomes:
            description: Allows biome changing
            default: true
          askyblock.island.lock:
            description: Allows island locking
            default: false
          askyblock.island.expel:
            description: Allows expelling of visitors
            default: true
          askyblock.island.ban:
            description: Allows banning of visitors
            default: false
          askyblock.island.settings:
            description: Player can see server settings
            default: true
          askyblock.island.lang:
            description: Player can select a language
            default: true
          askyblock.island.name:
            description: Player can set the name of their island
            default: false
          askyblock.island.value:
            description: Player can see the value of a block
            default: true
          askyblock.island.spawn:
            description: Player can use the island spawn command if spawn exists
            default: true
          askyblock.island.reset:
            description: Player can use the island reset or restart command
            default: true
      askyblock.team.*:
        children:
          askyblock.team.create:
            description: Let a player invite other players to join a team
            default: true
          askyblock.team.kick:
            description: Let a player kick other players
            default: true
          askyblock.team.makeleader:
            description: Let a player make another player leader of the team
            default: true
          askyblock.team.join:
            description: Let a player join another player's team
            default: true
          askyblock.team.chat:
            description: Allow player to use team chat
            default: true
      askyblock.command.*:
        description: Event commands will not be run for players with this perm
        default: false
        children:
          askyblock.command.resetexempt:
            description: Player is exempt from commands run when island resets
            default: false
          askyblock.command.leaveexempt:
            description: Player is exempt from commands run when they leave or are kicked. Note will not help if player is offline.
            default: false
          askyblock.command.newexempt:
            description: Player is exempt from commands run when starting an island
            default: false
          askyblock.command.challengeexempt:
            description: Player is exempt from commands run when a challenge is completed
            default: false
          askyblock.command.newteamexempt:
            description: Player is exempt from commands run when accepting a team invite
            default: false
      askyblock.coop:
        description: Allows player to use the coop command
        default: false
      askyblock.craft.*:
        children:
          askyblock.craft.enderchest:
            description: Allow crafting and use of enderchests in askyblock
            default: false
          askyblock.craft.dirt:
            description: Allows tilling of coarse dirt into dirt
            default: false
      askyblock.intopten:
        description: Includes player in top ten
        default: true
      askyblock.nohunger:
        description: Excludes player from hunger if on island
        default: false
      askyblock.islandfly:
        description: Allow player to fly inside his island boundaries
        default: false
      askyblock.settings.*:
        description: Ability to change settings in GUI
        default: false
        # ACID_DAMAGE, ANVIL, ARMOR_STAND, BEACON, BED, BREAK_BLOCKS, BREEDING, BREWING,
        # BUCKET, COLLECT_LAVA, COLLECT_WATER, CHEST, CHORUS_FRUIT, CRAFTING, CROP_TRAMPLE,
        # DOOR, EGGS, ENCHANTING, ENDER_PEARL, ENTER_EXIT_MESSAGES, FIRE, FIRE_EXTINGUISH,
        # FIRE_SPREAD, FURNACE, GATE, HORSE_INVENTORY, HORSE_RIDING, HURT_MOBS, LEASH,
        # LEVER_BUTTON, MOB_SPAWN, MUSIC, PLACE_BLOCKS, PORTAL, PRESSURE_PLATE, PVP,
        # MILKING, NETHER_PVP, REDSTONE, SPAWN_EGGS, SHEARING, VILLAGER_TRADING,
        # VISITOR_ITEM_DROP, VISITOR_ITEM_PICKUP
      askyblock.mod.*:
        children:
          askyblock.mod.topten:
            description: Let a moderator update the top ten list
            default: op
          askyblock.mod.info:
            description: Let a moderator see info on a player
            default: op
          askyblock.mod.challenges:
            description: Let a moderator access challenge commands
            default: op
          askyblock.mod.noburn:
            description: Gives mod immunity to acid
            default: false
          askyblock.mod.resethome:
            description: Allows setting or reseting of a player's home position
            default: op
          askyblock.mod.clearreset:
            description: Allow clearing of island reset limit
            default: false
          askyblock.mod.tp:
            description: Allows teleport to an island
            default: op
          askyblock.mod.tpnether:
            description: Allows teleport to a nether island
            default: op
          askyblock.mod.bypassprotect:
            description: Allow moderator to bypass island protection
            default: op
          askyblock.mod.bypassexpel:
            description: Allow moderator to bypass island expulsion
            default: op
          askyblock.mod.setbiome:
            description: Allows setting player island biomes
            default: op
          askyblock.mod.topbreeders:
            description: Lists most populated islands current loaded
            default: op
          askyblock.mod.lock:
            description: Locks or unlocks an island
            default: op
          askyblock.mod.bypasslock:
            description: Bypasses an island lock
            default: op
          askyblock.mod.signadmin:
            description: Enables warp sign admin commands
            default: op
          askyblock.mod.spy:
            description: Spy on team chats
            default: false
          askyblock.mod.removesign:
            description: Gives ability to remove warp signs
            default: false
          askyblock.mod.team:
            description: Enables modification of teams via kick and add commands
            default: false
          askyblock.mod.name:
            description: Enables naming of player's islands
            default: false
          askyblock.mod.resetname:
            description: Enables reset of player's island names
            default: false
          askyblock.mod.setdeaths:
            description: Sets how many deaths the player has
            default: false
      askyblock.admin.*:
        children:
          askyblock.admin.clearresetall:
            description: Allow clearing of island reset limit of all players
            default: op
          askyblock.admin.reload:
            description: Reload the config.yml
            default: op
          askyblock.admin.delete:
            description: Let a player completely remove a player (including island)
            default: op
          askyblock.admin.deleteisland:
            description: Let a player completely remove the island the player is on
            default: op
          askyblock.admin.register:
            description: Let a player register the nearest island to another player.
            default: op
          askyblock.admin.unregister:
            description: Removes a player from an island without deleting the island blocks.
            default: op
          askyblock.admin.purge:
            description: Let a player purge old islands.
            default: op
          askyblock.admin.noburn:
            description: Gives admin immunity to acid
            default: false
          askyblock.admin.setspawn:
            description: Allows use of spawn tools
            default: op
          askyblock.admin.setrange:
            description: Allows setting of island protection range
            default: op
          askyblock.admin.topbreeders:
            description: Lists most populated islands current loaded
            default: op
          askyblock.admin.reserve:
            description: Reserves an empty spot for a player's next island
            default: op
          askyblock.admin.settingsreset:
            description: Resets all the islands to default protection settings
            default: op
          askyblock.admin.noban:
            description: Player cannot be banned from an island
            default: op
          askyblock.admin.cobblestats:
            description: Displays magic cobble gen stats
            default: op
          askyblock.admin.setlanguage:
            description: Resets all player languages and sets the default language
            default: op
tastybento commented 6 years ago

Answered.