Blocking a command for players.

Discussion in 'Bukkit Help' started by matekso, Mar 21, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    matekso

    Hi guys.

    I'm looking for a method to block or permanently switch off command '/claim' , which comes from the Fractions plugin, for players on my server. I've been searching for the solution for quite long but found nothing. I'd be grateful for any help. Thanks.
     
  2. Offline

    Fuzzwolf

    Remove the permission node factions.claim (you ultimately need Permissions). If you're using a permission node that ends with '*', then you probably are inheriting it. Try adding "-factions.claim" if that's the case to the user group.
     
  3. Offline

    matekso

    I'm using PEX on ma serv and I haven't got the factions.claim node added to the list. Also, I'm not using permission node that ends with '*', so I'm not inheriting it. The problem concerns the user group, which is set to default.
     
  4. Offline

    Fuzzwolf

    Could you paste a copy of that permission group for me?
     
  5. Offline

    mindless728

    Well you are actually inheriting it, but from the factions plugin. The author decided to set "factions.kit.fullplayer" which contains the permission "factions.claim" so you will need to add "-factions.claim"

    I myself took it upon myself and removed all of the default permissions from the plugin.yml and just assign the permissions i want
     
  6. Offline

    matekso

    Here is my perm. group:

    groups:
    Player:
    default: true
    permissions:
    - admincmd.player.list
    - lwc.protect
    - ChestShop.shop.sell
    - ChestShop.shop.buy
    - ChestShop.shop.create
    - iConomy.rank
    - iConomy.payment
    - iConomy.list
    - iConomy.holdings
    - iConomy.help
    - iConomy.top
    - jobs.join.
    - jobs.world.world
    - multihome.namedhome.go
    - multihome.namedhome.set
    - multihome.namedhome.delete
    - multihome.namedhome.list
    - multihome.namedhome.invite
    - multihome.namedhome.uninvite
    - plgsetspawn.spawn
    - mcmmo.skills.taming
    - mcmmo.skills.woodcutting
    - mcmmo.skills.unarmed
    - mcmmo.skills.archery
    - mcmmo.skills.herbalism
    - mcmmo.skills.excavation
    - mcmmo.skills.swords
    - mcmmo.skills.axes
    - mcmmo.skills.acrobatics
    - mcmmo.skills.fishing
    - mcmmo.ability.herbalism
    - mcmmo.ability.excavation
    - mcmmo.ability.unarmed
    - mcmmo.ability.axes
    - mcmmo.ability.swords
    - mcmmo.ability.woodcutting
    - mcmmo.commands.whois
    - admincmd.player.whois
    - mcmmo.skills.mining
    - mcmmo.skills.repair
    - mcmmo.ability.mining
    - worldguard.region.teleport.*
    - factions.create
    - factions.deinvite
    - factions.description
    - factions.disband
    - factions.home
    - factions.invite
    - factions.join
    - factions.kick
    - factions.leave
    - factions.list
    - factions.mod
    - factions.money.balance
    - factions.money.deposit
    - factions.money.withdraw
    - factions.money.f2f
    - factions.money.f2p
    - factions.open
    - factions.relation
    - factions.sethome
    - factions.show
    - factions.title
    - factions.chat
    - admincmd.player.afk
    prefix: '&f[&8Player&f]&f '
     
  7. Offline

    c0mp

    Moved to Bukkit Help!
     
    Windows_i7_920 likes this.
  8. Offline

    Windows_i7_920

    I recommend PermissionsEx (a.k.a. PEX) for a plugin. I have yet to have a single issue with it, even with bleeding edge Bukkit builds like the ones which were out for 1.2.4 at the time of this post. To be honest, I generally use in-game commands to edit my permissions (/pex).

    However, there IS a way to disable commands without a Permissions plugin. Essentials provides a way to do this in its configuration file. However, this disables the command totally. I'm not sure if you are looking for that, or just having ops able to use /f claim.

    Wow, that was not very long after reporting it. :p
     
  9. Offline

    Fuzzwolf

    Just try tacking on -factions.claim, I don't see anything immediately wrong. Here's the config.yml if you need it, it shows the hierarchy for permissions. That should work though, I believe one of your nodes is inheriting it.

    http://pastebin.com/rwU4phff
     
  10. Offline

    matekso

    Adding '-factions.claim' was the solution for my problem. Thanks a lot for your help, guys.
     
Thread Status:
Not open for further replies.

Share This Page