Sign in to follow this  
StUffzEnra

Tekkit 3.1.2 and NEI Permissions for a specific User?

Recommended Posts

Hi guys,

after a long time playing with technic in SSP, a friend and me bought us a small Server and put Tekkit on it.

Everything is doing quite good and Im happy that there are these Modpacks so that you dont have to do all that (partly) annoying stuff with adding mods and solve compatibility issues.

But right now I think im a little stupid to understand the Permission System with PermissionsEX.

Im trying to make one single User able to use the NEI Cheat Menu but so far without success.

If im editing the neiserver.cfg it is always being reset after a server restart.

So i guess you have to do it over the permissions.yml file but I absolutely cant find the Syntax for enabling the NEI (Item) Cheat Mode with PermissionsEX.

Any clues? Thanks in advance!

Share this post


Link to post
Share on other sites

yes this would work... but if I OP that guy, how can I avoid that hes using all other privileges that come with OP?

Even if hes a normal user, with OP he can build in all the protected Zones from Worldguard for example. that is something id like to avoid :-)

Share this post


Link to post
Share on other sites

I'm not sure if there are permissions for NEI, I may be wrong. You could just /gamemode them though? As it essentially gives the same perks, or permission to use /give.

EDIT: Come to think of it, you could do this:

If you have a plugin like Essentials, the command to spawn items is /i [item ID]:[item damage value] [amount]

If the user goes into his NEI.cfg in his Tekkit folder and changes the command to spawn items to /i {1}:{3} {2}, it will spawn the items using the command when you click them. You'll just need to give him the essentials.item permission node.

Share this post


Link to post
Share on other sites

nope. just tried it with my account. didnt work for me :( but the idea was very good.

so i guess i have no other option then adding him to the ops... maybe NEI gets some permissions as well in the futute, even if its not a bukkit plugin

Share this post


Link to post
Share on other sites

nope. just tried it with my account. didnt work for me :( but the idea was very good.

so i guess i have no other option then adding him to the ops... maybe NEI gets some permissions as well in the futute, even if its not a bukkit plugin

It works for me, make sure you're not using the client when you're changing the NEI config. It must also be /i {1}:{3} {2}

Share this post


Link to post
Share on other sites

ok tried it again this morning with my local server and client files.

i removed myself from the ops.txt and added me to the user group in the permissions.yml

to the user group perms i added

  • essentials.item

but NEI is still doing nothing or is opening the shaped crafting box if i left click the items.

if im manually typing the /i 45 55 command everything is working fine.

same results if im adding everything else from essentials.item to the permissions

- essentials.item

- essentials.itemspawn.item-all

- essentials.itemspawn.item-[itemname]

- essentials.itemspawn.item-[itemid]

- essentials.give.item-all

- essentials.give.item-[itemname]

- essentials.give.item-[itemid]

but the interesting part is that as a normal user, i cant even see the delete icon or magnet. shouldn't these icons always visible with NEI?

Share this post


Link to post
Share on other sites

hi nentify,

sorry for the late response... been a little busy the last days.

yes the cheat mode is activated as well.

just for comparison. does your nei.cfg looks like this:

#Main configuration of NEI.

#Most of these options can be changed ingame.

#Deleting any element will restore it to it's default value

 

saved.search=gra

 

#Block/Item ID settings, configured via the options menu ingame.

ID_dump

{

    blockIDs=true

    dump_on_load=false

    itemIDs=false

    show_empty_blockIDs=false

    unused_blockIDs=true

    unused_itemIDs=false

}

 

KeyBinding

{

    back=14

    enchant=45

    hide=24

    next=209

    prev=201

    recipe=19

    usage=22

}

 

#Change these options if you have a different mod installed on the server that handles the commands differently, Eg. Bukkit Essentials

command

{

    #{0} = player, {1} = 1 for creative, 0 for survival

    creative=/gamemode {0} {1}

   

    #{0} = player, {1} = itemID, {2} = quantity, {3} = itemDamage

    give=/i {1}:{3} {2}

   

    #The vanilla server doesn't have a heal command, however others may

    #{0} = player

    heal=null

   

    #{0} = 1 for on, 0 for off

    rain=/toggledownfall

   

    #{0} = worldtime

    time=/time set {0}

}

 

options

{

    enable=true

    enablemp=true

    hidden=false

   

    cheatmode=2

    #For those who can't help themselves

    #Set this to a mode and you will be unable to change it ingame

    lockmode=-1

    #list the actions that are considered 'utilities' rather than cheats

    #Choose from time, creative, rain, item, heal, delete, magnet, enchant

    utility_actions=delete, magnet

   

    layout_style=1

    edge-align_buttons=false

   

    show_ids=1

    realtimesearch=true

    searchinventories=false

   

    itemdrops=true

}


 

and the neiserver.cfg




#NEI Server Permissions

# Names are Comma (,) separated

# ALL, OP and NONE are special names

 

saved.creativeinv=

saved.disable-dawn=false

saved.disable-dusk=false

saved.disable-midnight=false

saved.disable-noon=false

saved.disable-rain=false

saved.magnet=, jokerretry

 

#List of players who can use these blocks.

#Anyone not listed here will not have these blocks appear in their item panel.

#format is {itemID}:{itemDamage}

#Eg. 12:5=CodeChicken, Friend1

BannedBlocks

{

    7:0=NONE

}

 

#List of players who can use these features.

#Eg. time=CodeChicken, Friend1

permissions

{

    creative=OP

    delete=OP

    enchant=OP

    heal=OP

    item=OP

    magnet=OP

    notify-item=CONSOLE, OP

    rain=OP

    save-state=OP

    time=OP

}


 

and the permissions.yml with the user group like:




User:

        default: false

        prefix: '&f[&8User&f]&7'

        suffix: '&7'

        permissions:

        - modifyworld.*

        - authme.register

        - authme.login

        - authme.logout

        - authme.changepassword

        - authme.unregister

        - essentials.afk

        - essentials.help

        - essentials.list

        - essentials.msg

        - essentials.rules

        - essentials.spawn

        - essentials.back

        - essentials.home

        - essentials.sethome

        - essentials.warp

        - essentials.warp.list

        - ChestShop.shop.buy

        - ChestShop.shop.sell

        - ChestShop.shop.create

        - iConomy.help

        - iConomy.holdings

        - iConomy.payment

        - iConomy.accounts.*

        - essentials.item

        - essentials.give.item-all

maybe i just have a small little error somewhere that i cant see?

Share this post


Link to post
Share on other sites

other mods blocks NEI.

u have to give the group permission to use /give command.

/give <player> 2 64

then u have to let those guys go to survival and kill themselves.

then u have to let those guys go back to creative.

Done :D

Share this post


Link to post
Share on other sites

Notice the bottom section of your neiserver.cfg file where it says "#List of players who can use these features."

They are all set to OP, which means that only OPs can use those features. That is also why you could not see the magnet or delete icon when you were not OP.

Add your friends player name to the item field and he should be able to use that feature.

I'm not sure if clearing the field would make it so that it would work based on permissions or not. I am pretty sure that not having the NEI mod on the server makes it so that it is based on the servers permissions rather than the NEI mod config controling who can use it. That way it forces the users client to use the /i or /give command rather than the server mod controlling it.

Share this post


Link to post
Share on other sites

Another thing with your permissions nodes, it helps to have the - modifyworld.* at the bottom of the list instead of the top, in case you start limiting blocks, otehrwise modifyworld will give you many problems. PEX reads bottom to top for permissions, last time I was using it, and it took a bit to figure that out, but, once I did everything was fine.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this