Kits
Allow players to redeem sets of items
Total Downloads: 3,383 - First Release: May 15, 2015 - Last Update: May 18, 2015
- 5/5, 19 likes
-
-
ok i am admin and ive changed it back to admin
"Settings": {
"AdminPermission": "admin",
instead of my name but still dont have permission.
sorry for sounding dumb just dont quite understand.
[DOUBLEPOST=1431943954][/DOUBLEPOST]ive checked the permissions and im in group admin but im still not allowed to use ...i give up -
make sure your editing the .json not the cs
Also sure me how you have the permissions setup as maybe the error is in there. I noticed that it can fail if you have colours assigned to admin names but i thought the last patch fixed that. -
Code:
groups { default { default = 'True' nameFormat = '%name%' chatFormat = '%name% : %message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = '' permissions { - 'rok.fairplay' } } admin { nameFormat = '[FF0000](Admin)[F5D04C] %name%' chatFormat = '[F5D04C]%name% : %message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = '' permissions { - '*' } } } macros { } users { dsfdsfsdfds { groups { - 'admin' } nameFormat = '[57FEFF][Owner] [FFFFFF]%name%' permissions { } } sdfdsfsdfsdf { groups { - 'admin' } nameFormat = '[FDD017][Senior Admin] [FFFFFF]%name%' permissions { } } sdfsdfdsfdsf { groups { - 'admin' } nameFormat = '[57FEFF][Owner] [FFFFFF]%name%' permissions { } } sdfsdfsdfsd { groups { - 'admin' } nameFormat = '[FF0000][Admin] [FFFFFF]%name%' permissions { - 'codehatch.command.admin.ban' - 'rok.command.ui.switchlayout' - 'codehatch.blocks.build' - 'codehatch.debug.buildreport.send' - 'rok.command.objects.butcher ' - 'rok.command.items.clear' - 'rok.command.admin.fly' - 'rok.command.items.give' - 'rok.command.admin.godmode' - 'rok.command.chat.guild' - 'rok.command.health.heal' - 'codehatch.command.help' - 'rok.command.health.hydrate' - 'codehatch.blocks.debug' - 'codehatch.command.admin.kick' - 'rok.command.objects.killbyblueprint' - 'rok.command.objects.killbytype' - 'rok.command.help.list' - 'rok.command.chat.me' - 'rok.command.objects.security' - 'codehatch.command.admin.notice' - 'rok.command.health.nourish' - 'rok.command.ui.popup' - 'rok.command.ui.question' - 'codehatch.reporting.players' - 'rok.command.chat.say' - 'rok.command.admin.serverFps' - 'rok.ui.nametag' - 'codehatch.command.admin.shutdown' - 'rok.command.health.stophunger' - 'rok.command.health.stopthirst' - 'rok.command.health.suicide' - 'rok.command.environment.time' - 'rok.command.teleport' - 'rok.command.admin.videofly' - 'rok.command.environment.weather' } } dsfsdfsdfds { groups { - 'admin' } nameFormat = '[FF0000][Admin] [FFFFFF]%name%' permissions { - 'codehatch.command.admin.ban' - 'rok.command.ui.switchlayout' - 'codehatch.blocks.build' - 'codehatch.debug.buildreport.send' - 'rok.command.objects.butcher' - 'rok.command.items.clear' - 'rok.command.admin.fly' - 'rok.command.items.give' - 'rok.command.admin.godmode' - 'rok.command.chat.guild' - 'rok.command.health.heal' - 'codehatch.command.help' - 'rok.command.health.hydrate' - 'codehatch.blocks.debug' - 'codehatch.command.admin.kick' - 'rok.command.objects.killbyblueprint' - 'rok.command.objects.killbytype' - 'rok.command.help.list' - 'rok.command.chat.me' - 'rok.command.objects.security' - 'codehatch.command.admin.notice' - 'rok.command.health.nourish' - 'rok.command.ui.popup' - 'rok.command.ui.question' - 'codehatch.reporting.players' - 'rok.command.chat.say' - 'rok.command.admin.serverFps' - 'rok.ui.nametag' - 'codehatch.command.admin.shutdown' - 'rok.command.health.stophunger' - 'rok.command.health.stopthirst' - 'rok.command.health.suicide' - 'rok.command.environment.time' - 'rok.command.teleport' - 'rok.command.admin.videofly' - 'rok.command.environment.weather' } } dfffffd { groups { - 'admin' } nameFormat = '[FF0000][Admin] [FFFFFF]%name%' permissions { - 'codehatch.command.admin.ban' - 'rok.command.ui.switchlayout' - 'codehatch.blocks.build' - 'codehatch.debug.buildreport.send' - 'rok.command.objects.butcher' - 'rok.command.items.clear' - 'rok.command.admin.fly' - 'rok.command.items.give' - 'rok.command.admin.godmode' - 'rok.command.chat.guild' - 'rok.command.health.heal' - 'codehatch.command.help' - 'rok.command.health.hydrate' - 'codehatch.blocks.debug' - 'codehatch.command.admin.kick' - 'rok.command.objects.killbyblueprint' - 'rok.command.objects.killbytype' - 'rok.command.help.list' - 'rok.command.chat.me' - 'rok.command.objects.security' - 'codehatch.command.admin.notice' - 'rok.command.health.nourish' - 'rok.command.ui.popup' - 'rok.command.ui.question' - 'codehatch.reporting.players' - 'rok.command.chat.say' - 'rok.command.admin.serverFps' - 'rok.ui.nametag' - 'codehatch.command.admin.shutdown' - 'rok.command.health.stophunger' - 'rok.command.health.stopthirst' - 'rok.command.health.suicide' - 'rok.command.environment.time' - 'rok.command.teleport' - 'rok.command.admin.videofly' - 'rok.command.environment.weather' } } dsfsdfdsf { groups { - 'mod' - 'default' } nameFormat = '[0000FF][Moderator] [FFFFFF]%name%' permissions { - 'rok.command.health.suicide' - 'rok.command.help.list' - 'rok.command.teleport.user' - 'rok.command.environment.time' - 'rok.command.ui.question' - 'rok.command.admin.fly' - 'codehatch.command.admin.kick' - 'codehatch.command.admin.shutdown ' - 'rok.ui.nametag' } } dfdsfsdfdsfdsf { groups { - 'admin' } nameFormat = '[FF0000][Admin] [FFFFFF]%name%' permissions { } } } } } } }
Last edited by a moderator: May 18, 2015 -
Try removing all of those colours from the admins names and reboot server and then try.
Btw you dont need to list all the perms for the admins mine is like this:
Code:god { permissions { - '*' } nameFormat = '%name%' chatFormat = '%name% : %message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = 'default'
Code:users { madman { groups { - 'god' - 'default' } permissions { }
Last edited by a moderator: May 18, 2015 -
If anyone else wants to try replicating the "server crash" issue, try spamming a kit. Trust me, at some point your players will try it, and it will crash. It crashed both my public server and my test server, of which I was the only online player.
-
-
It might also depend on the quantity of items in the plugin. I was using one that had 14 seperate item stacks. Had another one with fewer though. Still crashed.
[DOUBLEPOST=1431948618][/DOUBLEPOST]If I knew a stable number of items, I'd limit my kits to that, for sure. -
-
-
If you add an item to the kit manually using /kit modify blah additem "item" # it adds that item as one stack, even if it's 3 stacks in your inventory. i.e. /kit modify "kitname" additem "iron javelin" 150. It's 3 stacks in your inventory, but 1 stack in the kit interface. I tried it out with just doing the -inventory modifier to add items to a kit. It raised the total stack count from 14 to 16. the 14 crashes my test server. the 16 does not. I imagine that adding appropriate sized stacks individually would have a positive result as well. i.e. 3x /kit modify "kitname" additem "iron javelin" 50.
If anyone else could test these theories, I'd greatly appreciate it! -
Mughisi updated Kits with a new update entry:
Update & Fix
[DOUBLEPOST=1431989290][/DOUBLEPOST] -
Btw if you are looking for new features to add. One I would love is to be able to specify multiple permissions for each kit. ie. i have an admin class and a god class but i can only let each kit be spawned by one or the other. I can simply make duplicate kits but it makes the list messy .
-
Code:
9:55 PM [Error] Kits plugin failed to compile! 9:55 PM [Error] Kits.cs(780,24): error CS0103: The name `permission' does not exist in the current context
Last edited by a moderator: May 19, 2015 -
Im reverting back to old patch the last one worked great but as soon as i did this update it broke it. also i noticed that this one fails to generate config and data files whereas old version was fine.... im getting same error as upperking too
-
after the new update of this plugin my log gives me this error
Code:4:17 AM [Error] Error while compiling Kits.cs(780,24): error CS0103: The name `permission' does not exist in the current context
-
-
When I download the plugin where do the files go? Where do I put them?