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
  1. so do i need to add myself to group admin ?
     
  2. Yes make yourself admin and make the required permission for the mod admin instead of your name.
     
  3. 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
     
  4. Just in you have changed something else (even a comma) paste the kits.json into here http://jsonlint.com/ and make sure it valids.
    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.
     
  5. 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
  6. 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'
    god is the group not the name
    Code:
    users {
        madman {
            groups {
                - 'god'
                - 'default'
            }
            permissions {
            }
     
    Last edited by a moderator: May 18, 2015
  7. 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.
     
  8. Define spamming because i have spammed a few without issue prob about 5 times really fast or does it take more?
     
  9. 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.
     
  10. the reason they are listed because i dont want my admins to have all commands
     
  11. yes but they get all commands from the way i had it too the "* " means all
     
  12. I think I might have figured out the problem with the crashes.
    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!
     
  13. Mughisi updated Kits with a new update entry:

    Update & Fix


    [DOUBLEPOST=1431989290][/DOUBLEPOST]
    The update fixes the problem :)
     
  14. 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 .
     
  15. Thank you so much!
     
    Last edited by a moderator: May 19, 2015
  16. 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
  17. 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
     
  18. 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
     
  19. I've included the Oxide permissions to be able to be used with the plugin which requires the latest version of Oxide for RoK (build 937 or newer) or it will throw that error
     
  20. When I download the plugin where do the files go? Where do I put them?