Battlekits-FAQ

Feb 2, 2018
Battlekits-FAQ
  • BattleKits FAQ
    How do I use restrictions?
    These are handled with permission overrides. If you give a player these permissions, they become exempt from the restriction. As permissions can be easily configured for multi-world situations, this is better than a config.

    battlekits.bypassrestriction.disable-dropping-items
    battlekits.bypassrestriction.disable-crafting
    battlekits.bypassrestriction.disable-pickup-items
    battlekits.bypassrestriction.disable-block-place
    battlekits.bypassrestriction.disable-player-drops-on-death
    battlekits.bypassrestriction.hide-death-messages
    battlekits.bypassrestriction.disable-mob-xp
    battlekits.bypassrestriction.disable-block-xp
    battlekits.bypassrestriction.disable-block-break
    battlekits.bypassrestriction.disable-inventory-click

    To disable food changing, give the player BattleKits.disableFoodChange.

    IF YOU ARE ENABLING RESTRICTIONS IN GLOBAL.YML, MAKE SURE YOU DO A RELOAD AFTERWARDS :D

    Can I add potions to kits?
    Yes, you can add potions. Use this format: itemNum:amount PotionType:duration:level

    eg: '1': 'POTION:1 DAMAGE_RESISTANCE:100:2

    Where 1 is the slot number, POTION is the item id for potions, 1 is the number of potions and DAMAGE is potion type 100 is the duration and 2 is the level. See here for a list of potion values.

    Yes, you can add more than one potion effect.

    The plugin gives a null pointer exception on startup!
    Please join our discord support channel for help.

    No players can craft, place blocks or do anything
    Nobody will be able to do anything by default unless you give them the permissions or disable restrictions (by setting enable-restrictions to false in global.yml) altogether.

    See above for permissions.

    Kill rewards are given to the player who is killed, not the player who did the killing
    Please join our discord support channel for help.

    Where can I find builds that are not yet available on spigot?
    To ensure that you always have access to the latest stable builds and to fix bugs in a more efficient way we have a build server for everyone to use https://ci.akpmakes.tech/job/BattleKits/

    The config keeps resetting back to default. What can I do?
    This question is answered here.

    Every time the server reloads/restarts, the config is saved. This overwrites any changes you have made and is intentional to ensure that kit tracking/lives are not lost on restart. It's very easy to fix, so next time you want to modify the config follow these steps:

    • Edit the file and make any changes
    • Run /bk reload in-game or from the console
    • At this point the new config is in memory and the default should not overwrite your changes
    If you ever make changes, simply remember to use /bk reload to tell BattleKits to take your changes into account. It also has the advantage of not requiring any other plugins to restart.

    How do I add potion effects to a kit?
    BattleKits does not natively support adding potion effects with a kit, but we do have a very flexible commands entry in the config, which allows an unlimited number of console commands to be executed when a kit is given to the player. To get this sort of functionality, you need to make use of the built-in effect command. Follow the steps below:

    1. Open up the BattleKits config file. A quick reference is available here, but we only need to go to the section of the desired kit and add something like the following:
    kits:
    archer:
    commands:
    - 'effect <player> 1 60 1'
    - 'effect <player> 5 60 1'

    The above code will give the player 1 minute of speed and strength, both with an intensity of 1. See http://minecraft.gamepedia.com/Potion_Effects for more info.

    1. Save the configuration file and run the in-game command /bk reload
    2. Test your kit and make sure everything is working. Then you're done!
    Where's the source code?
    Here: https://github.com/AwesomePowered/BattleKits

    How do I report a bug/suggestion?
    Please join our discord support channel for help.
  • Loading...
  • Loading...