SimCraft for Minecraft

!!

Welcome Guest

Dear visitor, welcome to MC Port Central. If this is your first visit here,  you should consider registering to show your support.   By registering you will give us an idea and clear indication of how in demand our work really are and will motivate our porting team to continue there work. We port vanilla mods to Bukkit and you will also find a lot of other related Minecraft material on our Forum.

Author Topic: Modded items usage permissions  (Read 626 times)

unitazas

  • Newbie
  • *
  • Posts: 3
Modded items usage permissions
« on: May 14, 2012, 05:51:30 PM »
Is there any way, to set permissions on using items, which have ID's like 277:2 and similar?
Or if I set permission on ID 277, it will use this permission also on 277:2 and others?
Also, can anyone give small example of permissionsEX permissions? I want to disable some items for some players to use.

Nixus32

  • Newbie
  • *
  • Posts: 23
    • minority-gaming.eu
Re: Modded items usage permissions
« Reply #1 on: May 14, 2012, 06:18:55 PM »
you can prevent players from placing certain blocks by using the worldguard blacklist but i didnt find a way to prevent someone using an item.

unitazas

  • Newbie
  • *
  • Posts: 3
Re: Modded items usage permissions
« Reply #2 on: May 14, 2012, 07:03:21 PM »
It is possible using modifyworld plugin, but I need a correct permission or way to identify ID of item or block, to create a permission for it.

Nixus32

  • Newbie
  • *
  • Posts: 23
    • minority-gaming.eu
Re: Modded items usage permissions
« Reply #3 on: May 14, 2012, 07:09:33 PM »
hmm ok, then look in the configs for the ids or use not enough items it shows the ids

unitazas

  • Newbie
  • *
  • Posts: 3
Re: Modded items usage permissions
« Reply #4 on: May 14, 2012, 07:49:14 PM »
I know the ID's, but i don't know how to write them, when creating modifyworld permission.

darkcamo12

  • Newbie
  • *
  • Posts: 22
Re: Modded items usage permissions
« Reply #5 on: May 16, 2012, 02:06:58 PM »
this is just a guess i haven't tried it but

modifyworld.items.have.<itemid>
Player can hold <itemid> in hand. itemRestrictions: true need to be set for this to work.

i know this is "can hold" but i think if u put in the group

  default:
    default: true
    permissions:
    - modifyworld.*
    - modifyworld.items.*


and on the players u dont want having the item put


  someplayername:
    permissions:
    - -modifyworld.items.have.<itemid>
    group:
    - default

like i said I'm not 100% sure that would work