Inactive [RPG]DayJobs v2.2 - A plugin to enforce and enhance Role Playing [1337]

Discussion in 'Inactive/Unsupported Plugins' started by LartTyler, Sep 4, 2011.

  1. Offline

    LartTyler

    DayJobs
    A plugin to enforce and enhance role playing




    We're on BukkitDev! Please direct all comments to the project page on BukkitDev, thanks!​


    After hosting an RP server for several months, I became tired of having to settle disputes between players, and having to monitor who's doing what. Most of my time went into ensuring player's kept true to RPing, rather then shaping the server as I had wanted to.

    Which is why I designed DayJobs. DayJobs is a plugin that takes some of the load off the shoulders of admins and moderators by restricting how players interact with the world. At the moment, that simply means the tools the players can use, and the blocks they can place. In the future, we at Daybreak Studios plan to add many features that will turn this simple plugin into a full suite to manage role playing in the Minecraft world.

    Current features:
    • Limit block placement and tool usage based on a players job class
    • Completely configurable classes
    • Job change request and ticketing system
    • Restrict armor usage by class
    • Configurable zones! Create guild halls, private mines, and various other locations accessible to only select classes!
    • New configuration option "can-break" allows even further fine-tuned control over what a player can and can't destroy!
    • Configurable damage types! Let some jobs survive harsher conditions longer then others, or fall prey to select environments in the blink of an eye!
    • Set respawn locations and first spawn location (with configurable messages to display to the player being spawned).
    • Restrict items from being crafted on a per job class basis.
    • Support for Permissions, PermissionsBukkit, PermissionsEx.
    • Restrict crafting, smelting, and many more elements of Minecraft's game mechanics on a per class basis.
    Coming soon!

    • Starter kits! Allow players to receive special Starter Kits when the first pick a job, or even on each subsequent job change
    • Support for custom items added via Spout using item ID's
    • Other features on request. Please PM me or leave a message in this thread if you have any feature requests.
    Downloads:

    Requirements:

    This plugin now requires the server-side version of Spout.​

    Configuration:
    Setting up DayJobs is simple. Simply drop the jar into your plugins folder and go. The plugin will function without Permissions and will use Op status for moderators. However, for a more personalized experience, we do suggest installing Permissions. Yes, it's inactive and outdated, but it still works very well, and we use it on our personal servers.​

    Once Permissions has been added, you can use the following permission nodes to control command access:​
    Code:
    dbstudios.dayjobs.admin.reload
        Can reload configuration files
    dbstudios.dayjobs.admin.change
        Can change a players class
    dbstudios.dayjobs.admin.tickets
        Can access/close tickets
    dbstudios.dayjobs.admin.debug
        Can toggle debug mode
    dbstudios.dayjobs.admin.zones
        Can create and delete zones
    dbstudios.dayjobs.admin.exempt
        Allow usage of the admin "exempt" command
    dbstudios.dayjobs.admin.spawn.set.deathspawn
        Allows setting of the death spawn location
    dbstudios.dayjobs.admin.spawn.set.newspawn
        Allows setting of the new spawn location (for first time players)
    dbstudios.dayjobs.admin.spawn.tp.deathspawn
        Allows teleporting to the death spawn
    dbstudios.dayjobs.admin.spawn.tp.newspawn
        Allows teleporting to the new player spawn
    
    dbstudios.dayjobs.player.list
        Can list available jobs
    dbstudios.dayjobs.player.whois
        Can 'whois' other players
    dbstudios.dayjobs.player.change
        Can request a job change
    dbstudios.dayjobs.player.info
        Can view job descriptions
    
    Example configuration files can be found on our GitHub page.​

    Commands:
    Code:
    /job list
        List available jobs
    /job info [<job>]
        Display your job info, or <job> if given
    /job whois <player>
        Display basic info for <player>
    /job change <job>
        Request to be changed to <job>
    /job admin reload
        Reload configuration files
    /job admin change <player> <job>
        Change <player>'s job to <job>
    /job admin tickets [close <player>]
        Display open tickets, or close ticket by <player>
    /job admin debug
        Toggle debug mode
    /job admin exempt <player>
        Toggle exempt status for <player> (they wont be affected by job limitatons).
        Run again on the same player to remove exempt status.
    /job admin spawn set death
        Set the respawn location to your current location
    /job admin spawn set new
        Set the new player spawn to your current location
    /job admin spawn tp death
        Teleport to the current respawn location
    /job admin spawn tp new
        Teleport to the current new player spawn location
    
    
    /job zone create <zone>
        Begin creation of <zone>
    /job zone set (upper/lower)
        Set the upper-left or lower-right coordinate of the zone
    /job zone order ("allow,deny"/"deny,allow")
        Set the access order (allow first, then deny, or deny first, then allow)
    /job zone (allow/deny) <access_list>
        Allow or deny for <access_list>
    /job zone commit (yes/no)
        Commit zone changes ("yes"), or delete them and start over ("no")
    
    Using the zoning system:
    The zone system in DayJobs is simple. In order to create a new zone, begin by ensuring that you have the correct permission node (dbstudios.dayjobs.admin.zones). Next, initialize zone creation by typing:
    Code:
    /job zone create MyZone
    Next, you need to set the upper-left and lower-right coordinate points that define the bounding box the zone takes up. Keep in mind that the zone does not have to encompass an entire structure; often, it's enough to simple place a zone across the door or entry way that will deny players access.
    To define a coordinate, look at the upper-left or lower-right block you want to use, and type:
    Code:
    /job zone set upper
    or​
    Code:
    /job zone set lower
    Now, you will need to define an order type. For those familiar with the Apache web server, you may recognize the syntax.
    The zone system uses an allow or deny system (ADS) to determine if a player is allowed in a given zone. Valid order types are: "allow,deny", meaning allow all job classes first, then deny those on the given list, or "deny,allow", meaning deny all job classes, and only allow those implicitly allowed. Notice the lack of space between the two access types. To set the order type, enter:
    Code:
    /job zone order allow,deny
    or​
    Code:
    /job zone order deny,allow
    The final step before committing a zone is to set the access list. The syntax of this command will change depending on your order type. For example, the order type "allow,deny" would replace <access_type> in the following command with "deny", and "deny,allow" would replace <access_type> with "allow":
    Code:
    /job zone <access_type> <access_list>
    <access_list> is a comma separated list of job classes to deny or allow. Be sure, just as in the order type, not to use spaces between the comma and the different job classes.
    The final step is to commit the zone. To do this, type:
    Code:
    /job zone commit yes
    This will write all changes to your zone file. However, if you are not satisfied with the changes, or decide midway through creation that you don't want the zone, type:
    Code:
    /job zone commit no
    You must commit or discard a zone before attempting to create another.

    You can also delete zones from in-game. Simply type:
    Code:
    /job zone delete MyZone

    Let's say I wanted to create a zone named "MinersGuild", and only allow the two jobs, "Miner" and "Blacksmith" inside. I would type the following:
    Code:
    /job zone create MinersGuild
    *Looking at the block above and to the left of the entry way, I would type:*
    /job zone set upper
    *Looking at the block below and to the right of the entry way, I would type:*
    /job zone set lower
    /job zone order deny,allow
    /job zone allow Miner,Blacksmith
    /job zone commit yes
    
    Special Characters
    In config.yml, there are many options you can use to change what text is displayed to a player on certain events. Each option allows for certain special characters, denoted by a percent sign ("%"). Currently, the only supported special characters are:
    • %p - The player's name
    • %j - The player's job
    As more and more features are added, there will be more special characters to choose from.


    As an example, in config.yml, you can set the message to display to a user the first time they connect to the server (new-player-msg). If I wanted to make it welcome the new player using their name, I would use:
    Code:
    new-player-msg: Welcome, %p, to The Four Kingdoms. You have joined with the default job class, %j.
    Changelog:
    Version 2.2
    • Fixed a bug that caused errors for servers using PermissionsBukkit.
    • Added 'init.yml'. Allows individual features to be enabled/disabled.
    • Small code tweaks in the interest of performance.
    Version 2.1
    • The item value "NOTHING" can now be either "NOTHING" or "NONE", it will evaluate to the same thing.
    • Placing a "-" in front of a block or item will except it from any previous allow statements. For example:
      Code:
      can-place:
                - ALL
                - -OBSIDIAN
                - -TNT
      Would allow all blocks, except for obsidian and TNT to be placed.
    • Placing a "+" in front of a block or item will add it to the list of allowed items/blocks, regardless of previous statements. For example:
      Code:
      can-place:
                - NOTHING
                - +COBBLESTONE
                - +DIRT
      Would disallow all blocks, but will allow Cobblestone and dirt to still be placed.
    • Item usage on mobs and other entities now denies correctly. Restricted weapons/blocks/items no longer work on mobs.
    • Changed some output text colors, and re-worded the more "awkward" phrases.
    • New configuration option, "can-smelt" allows you to restrict what a player is capable of smelting in a furnace.
    • Configurable message structure in config.yml has been changed. Please see the provided example config.yml for an example of the new structure.
    Version 2.0

    • Configuration files renamed: "player.yml" is now "players.yml", "ticket.yml" is not "tickets.yml"
    • New configuration options: place-deny-msg, break-deny-msg, use-deny-msg, wear-deny-msg, wear-deny-inv-full-msg
    • New option: Set new player join message by changing new-player-msg in config.yml. Supports the following tokens:
      • %p - The player's name
      • %j - The player's job
    • Various text changes and optimization
    • Corrected a bug where damage done could be increased, but not set to a value below the default.
    • Corrected a bug where players could still use a restricted item to attack an entity.
    • NOTHING or ALL in a jobs permit node now correctly overrides those present in "all".
    • Cleaned up output for verbose logging servers.
    • Corrected DayJobs attempting to initialize Spout, Permissions, or other dependencies before the dependencies were initialized on the server.
    • Added support for PermissionsBukkit.
    • Corrected zones occasionally killing players when permission was denied.
    • Set death spawn locations and new player spawn locations
    • Restrictable, per-job crafting
    Version 1.3

    • Corrected a bug that prevented normal players from using commands if Permissions was not present.
    • Player names are no longer case sensitive in commands.
    • An admin job change now notifies the target player of the change.
    • New command "/job admin exempt <player>" will toggle exempt status on target <player> and disable job limitations on them until the command is run again.
    • Exempt is no longer a permission node. See above.
    • New usage options. Enter "NOTHING" under a usage node (such as "can-use" or "can-break") to remove ALL usages from that category for that job. Enter "ALL" to allow usage of everything for that category.
    • Prettier job information output :3
    Version 1.2

    • Added configurable zones
    • Added the new configuration option "can-break"
    • Fixed a bug that could return null for certain configuration options if not set
    Version 1.1

    • Added configurable armor limitations
    • Changed message colors to a more standard motif
    • Fixed a bug that prevented help output from being displayed
    • Fixed a bug that could cause a debugging console to be spammed with NullPointerExceptions
    • DayJobs now requires the server-side version of Spout
    Version 1.0

    • Initial release
    Bug reporting:

    If you encounter any bugs or errors while using this plugin, please report it ASAP. If at all possible, it is preferable that you use the issue tracker provided by GitHub. Just follow this link to open the issue tracker for DayJobs. Please be as detailed as possible about your issue, and use a service such as Pastie for including stack traces and debug output.​

    Any bugs reported on the forum will most likely be addressed, eventually. But I will guarentee a quick response time for anything submitted to the issue tracker on GitHub.​

    Donating

    Like this plugin? Then consider donating! Not only will donations help keep this plugin active and alive, but for every $100 in donations I receive, I will guarantee a new release packed full of awesome new features. That's not to say I won't do releases otherwise, you don't have to worry about that. But for every $100 I'll drop whatever I'm doing and pump out a new version as fast as I possibly can! Interested? Click here to donate.

    Follow Daybreak Studios on Twitter! See updates, news, and other information related to Daybreak Studios as it happens. Also, I tend to get a bit bored while I'm working, so you can always feel free to watch me talk to myself as I work :p
     
    Fengi, Retaks, Parideis and 1 other person like this.
  2. Offline

    thedark54

    Hello, you recognize me;) I had some concern now pex <3 how to limit it as peuveut more change after thefirst job?
     
  3. Offline

    PDemon

    @LartTyler how am i to fix it? if only till you updated ;-)
     
  4. Offline

    LartTyler

    @PDemon
    A quick fix would be to add a fake permission for each class. In your config.yml, do something like this:
    Code:
    config:
        jobs:
            Jobless:
                permissions:
                    - this.permission.is.not.real
    That should take care of any issues. I'll have a quick fix out by tonight to disable that particular feature so something like that isn't necessary.

    @thedark54
    Just to clarify, are you asking how to prevent a player from changing jobs again after the first change?
     
  5. Offline

    PDemon

  6. Offline

    LartTyler

    @PDemon
    Not a problem, let me know if you have any more questions or issues :)

    Version 2.2 is out. It's main purpose was to fix a bug introduced in 2.1 that caused errors under certain conditions for servers using PermissionsBukkit. In addition, I threw in a small feature so this release had a bit more purpose. Contained in the current release's archive is a new configuration file, called init.yml. If you look at it, it's pretty self explanatory. It will allow you to enable/disable specific features of DayJobs, allowing you to tailor your usage to better fit your server's needs.

    As always, feel free to contact me with any requests, comments, or issues you might have! :)

    Edit:
    Also, I have a request for @BioRage, and any other user who uses any of the Spout provided custom blocks. I believe the plugin should already be able to handle custom blocks, so long as you use the correct name assigned to the block or item. If anyone could test that theory for me and let me know what happens, I would greatly appreciate it :) If I can find the time, I'll do it myself, but I'm not sure when I'll be able to. Thanks in advance!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  7. Offline

    BioRage

    Hm for some reason you didn't get to tag me, because you added a "," at the end? not sure :p

    @LartTyler

    Hehe no worries!~

    OT:

    Alright I'll go ahead and try the custom block when I can, and what not, just busy with some RL stuff atm.

    I'm glad you did my request!

    PS Would it work with custom items in general too?
     
  8. Offline

    LartTyler

    @BioRage
    It should work with anything in game. I realized while I was sitting through a (boring) class the other day that I never verify the name of the block or item against Bukkit's Material Enum, those are just the names I use. Every item and block and mob, really anything in MC should have a name associated with it and should follow the same format as the default items in order to maintain compatibility with the original game. It was just a theory, and I hope I'm right cause it'd save me a bit of work :p Thanks for your help, you're doing me a huge favor! :)
     
  9. Offline

    Mrshadow183

    [Removed large block of just profanity. - FernFerret]
     
  10. Offline

    LartTyler

    @Mrshadow183
    And the purpose of posting that was...?
     
  11. Offline

    PDemon

    @LartTyler here is an idea , use sign to allow job change with iconomy or other economy support to charge players for using sign / changing job





    EDIT: I am full of ideas but very few are any good ;-)
     
  12. Offline

    LartTyler

    @PDemon
    That's a fantastic idea, I'll see what I can do :) if you have any others let me know! Even if you think they're not too good, perhaps theyll give me an idea for a feature that can improve on your idea
     
  13. Offline

    Sich

    Yes ! Thanks :D
     
  14. Offline

    PDemon

    @LartTyler sorry to bother you once more ..but it seems to me that your awesome plugin is upper/lower case sensitive
    :)

    EDIT: so far i only see it when i need to use the player names and jobs ,,"Miner" will work but "miner" will not

    EDIT: it seems all Swords and the bow are useable even tho the job says "- NOTHING"
     
  15. Offline

    LartTyler

    @PDemon
    The case sensitivity should only affect jobs, but if you're finding it with player names too, that just means there was a section of code I forgot to update with the name matching methods. In it's original release, my plugin was case sensitive, but I've been trying to fix that, for player names at least, and I must have missed something. Could you tell me what commands you were using that required case sensitive player names? Job names will be case insensitive in the next release, so you won't have to put up with it for much longer :p

    As for right clicking, I'm working on fixing that right now, I can't believe I missed that lol

    Edit:
    @Sich
    You're very welcome :) If you have any issues or if the smelting restrictions don't work like you had expected, let me know and I'll see what I can do about fixing it
     
  16. Offline

    PDemon

    @LartTyler my ingame name is PDemon, when i use the /job admin change pdemon Miner, it just says "player 'pdemon' does not exist" it where i found the upper case sensitivity
    man i feel like i am annoing you with all thing minor crap :)

    EDIT: having a Job as warrior doesn't mean i can use swords it just means i can't use other tools ;-), other way being a Baker is weird when killing with swords , hehe

    EDIT:EDIT: I am having a spot of trouble disallowing the planting of seeds
    Miner:
    friendly-name: Miner
    bio: A miner, skilled at extracting ore and minerals from the earth.
    can-use:
    - -diamond_sword
    - -SEEDS
    - WOOD_SPADE
    - WOOD_PICKAXE
    - STONE_SPADE
    - STONE_PICKAXE
    - IRON_SPADE
    - IRON_PICKAXE
    - GOLD_SPADE
    - GOLD_PICKAXE
    - DIAMOND_SPADE
    - DIAMOND_PICKAXE
    can-place:
    - ALL
    - -SEEDS
    - -WHEAT
    - -SAPLING
    can-wear:
    - -SEEDS
    - LEATHER_HELMET
    - LEATHER_CHESTPLATE
    - LEATHER_LEGGINGS
    - LEATHER_BOOTS
    can-break:
    - ALL
    - -SEEDS
    can-craft:
    - -SEEDS
    - WOOD_PICKAXE
    - WOOD_SPADE
    - STONE_PICKAXE
    - STONE_SPADE
    - IRON_PICKAXE
    - IRON_SPADE
    can-smelt:
    - -SEEDS
    - IRON_ORE
    - GOLD_ORE
    - coal
    - iron_ingot
    - gold_ingot
    damages:
    FALL: 1
    starter-kit:
    STONE_PICKAXE: 1
    STONE_SPADE: 1
    TORCH: 12

    Sometimes i need to look more before opening my mouth :) the wording would be crops not seeds and bing it works ;-)
     
  17. Offline

    LartTyler

    @PDemon
    Don't worry about the "minor" stuff, it's the little changes and tweaks I like the most, they're easy to fix xD
    I'll look into it, I musta missed updating that command lol
     
  18. Offline

    PDemon

    @LartTyler sorry LartTyler i must have made some error along the way, now the sword disallowment works and from here i have gone into beta with this setup
    Show Spoiler
    config:
    enabled: true
    debug: false
    default-job: Jobless
    override-bed-spawn: false
    instant-first-job-change: true
    starter-kit:
    give-kit-on-first-change: true
    give-kit-on-all-change: false
    messages:
    place-deny-msg: This object is too heavy for you to place...
    break-deny-msg: You're not sure how to go about taking this apart...
    use-deny-msg: You're not sure what to do with this...
    wear-deny-msg: This is too heavy for you to put on...
    wear-deny-inv-full-msg: You cannot hold any more items, your armor was dropped.
    new-player-msg: Welcome, %p, to The Four Kingdoms! Your current job is %j.
    craft-deny-msg: The purpose of the materials in front of you evades you...
    respawn-msg: A mysterious voice whispers, "Welcome back, %p... We've been expecting you."
    smelt-deny-msg: You feel like you'd burn this if you tried cooking it...
    all:
    can-use:
    - BUCKET
    can-place:
    - ALL
    can-wear:
    - ALL
    can-break:
    - ALL
    can-craft:
    - ALL
    can-smelt:
    - ALL
    jobs:
    Jobless:
    friendly-name: Jobless
    bio: I'll go look for a job tomorrow mom, I promise!
    can-use:
    - NOTHING
    can-place:
    - NOTHING
    can-wear:
    - NOTHING
    can-break:
    - NOTHING
    can-craft:
    - NOTHING
    can-smelt:
    - NOTHING
    Miner:
    friendly-name: Miner
    bio: A miner, skilled at extracting ore and minerals from the earth.
    can-use:
    - WOOD_SPADE
    - WOOD_PICKAXE
    - STONE_SPADE
    - STONE_PICKAXE
    - IRON_SPADE
    - IRON_PICKAXE
    - GOLD_SPADE
    - GOLD_PICKAXE
    - DIAMOND_SPADE
    - DIAMOND_PICKAXE
    - BUCKET
    can-place:
    - ALL
    can-wear:
    - LEATHER_HELMET
    - LEATHER_CHESTPLATE
    - LEATHER_LEGGINGS
    - LEATHER_BOOTS
    can-break:
    - ALL
    can-craft:
    - TORCH
    - WOOD_PICKAXE
    - WOOD_SPADE
    - STONE_PICKAXE
    - STONE_SPADE
    can-smelt:
    - IRON_ORE
    - GOLD_ORE
    - +coal
    - iron_ingot
    - gold_ingot
    - STICK
    damages:
    FALL: 1
    starter-kit:
    STONE_PICKAXE: 1
    STONE_SPADE: 1
    TORCH: 12
    Farmer:
    friendly-name: Farmer
    bio: Feeding the masses is what he does.
    can-use:
    - SHEARS
    - BUCKET
    - WOOD_HOE
    - STONE_HOE
    - IRON_HOE
    - GOLD_HOE
    - DIAMOND_HOE
    - WOOD_SPADE
    - STONE_SPADE
    - WOOD_PICKAXE
    can-place:
    - ALL
    can-wear:
    - LEATHER_HELMET
    - LEATHER_CHESTPLATE
    - LEATHER_LEGGINGS
    - LEATHER_BOOTS
    can-break:
    - ALL
    can-craft:
    - TORCH
    - BREAD
    - CAKE
    - MUSHROOM_SOUP
    - SUGAR
    - COOKIE
    - GOLDEN_APPLE
    - MELON_BLOCK
    - MELON_SEEDS
    can-smelt:
    - STICK
    - COAL
    - PORK
    - RAW_FISH
    - RAW_BEEF
    - RAW_CHICKEN
    starter-kit:
    REDSTONE: 16
    REDSTONE_TORCH_ON: 4
    STONE_BUTTON: 1
    WOOD_PLATE: 3
    Craftman:
    friendly-name: Crafter
    bio: A master of construction and design.
    can-use:
    - WOOD_AXE
    - WOOD_SPADE
    - WOOD_PICKAXE
    - STONE_AXE
    - STONE_SPADE
    - BUCKET
    - IRON_AXE
    - IRON_SPADE
    - GOLD_AXE
    - DIAMOND_AXE
    - GOLD_SPADE
    - DIAMOND_SPADE
    can-place:
    - ALL
    can-wear:
    - LEATHER_HELMET
    - LEATHER_CHESTPLATE
    - LEATHER_LEGGINGS
    - LEATHER_BOOTS
    can-break:
    - ALL
    can-craft:
    - ALL
    - But Food Tools and Armour
    - -BREAD
    - -CAKE
    - -MUSHROOM_SOUP
    - -SUGAR
    - -COOKIE
    - -GOLDEN_APPLE
    - -MELON_BLOCK
    - -MELON_SEEDS
    - -WOOD_SPADE
    - -WOOD_PICKAXE
    - -STONE_SPADE
    - -STONE_PICKAXE
    - -IRON_SPADE
    - -IRON_PICKAXE
    - -GOLD_SPADE
    - -GOLD_PICKAXE
    - -DIAMOND_SPADE
    - -DIAMOND_PICKAXE
    - -WOOD_HOE
    - -STONE_HOE
    - -IRON_HOE
    - -GOLD_HOE
    - -DIAMOND_HOE
    - -WOOD_AXE
    - -STONE_AXE
    - -IRON_AXE
    - -DIAMOND_AXE
    - -LEATHER_HELMET
    - -LEATHER_CHESTPLATE
    - -LEATHER_LEGGINGS
    - -LEATHER_BOOTS
    - -IRON_HELMET
    - -IRON_CHESTPLATE
    - -IRON_LEGGINGS
    - -IRON_BOOTS
    - -GOLD_HELMET
    - -GOLD_CHESTPLATE
    - -GOLD_LEGGINGS
    - -GOLD_BOOTS
    - -DIAMOND_HELMET
    - -DIAMOND_CHESTPLATE
    - -DIAMOND_LEGGINGS
    - -DIAMOND_BOOTS
    can-smelt:
    - STICK
    - COAL
    - LOG
    starter-kit:
    COBBLESTONE: 32
    WOOD_PLANK: 16
    WOOD_STAIR: 8
    WOOL: 16
    Smith:
    friendly-name: Smith
    bio: An artisan skilled in smelting and toolmaking and has a fair understanding of armours
    can-use:
    - WOOD_PICKAXE
    - WOOD_SPADE
    - STONE_SPADE
    - IRON_SPADE
    - GOLD_SPADE
    - DIAMOND_SPADE
    - BUCKET
    can-place:
    - ALL
    can-wear:
    - LEATHER_HELMET
    - LEATHER_CHESTPLATE
    - LEATHER_LEGGINGS
    - LEATHER_BOOTS
    can-break:
    - ALL
    can-craft:
    - TORCH
    - WOOD_SPADE
    - WOOD_PICKAXE
    - STONE_SPADE
    - STONE_PICKAXE
    - IRON_SPADE
    - IRON_PICKAXE
    - GOLD_SPADE
    - GOLD_PICKAXE
    - DIAMOND_SPADE
    - DIAMOND_PICKAXE
    - WOOD_HOE
    - STONE_HOE
    - IRON_HOE
    - GOLD_HOE
    - DIAMOND_HOE
    - WOOD_AXE
    - STONE_AXE
    - IRON_AXE
    - DIAMOND_AXE
    - LEATHER_HELMET
    - LEATHER_CHESTPLATE
    - LEATHER_LEGGINGS
    - LEATHER_BOOTS
    - IRON_HELMET
    - IRON_CHESTPLATE
    - IRON_LEGGINGS
    - IRON_BOOTS
    - GOLD_HELMET
    - GOLD_CHESTPLATE
    - GOLD_LEGGINGS
    - GOLD_BOOTS
    - DIAMOND_HELMET
    - DIAMOND_CHESTPLATE
    - DIAMOND_LEGGINGS
    - DIAMOND_BOOTS
    can-smelt:
    - ALL
    - but food
    - -PORK
    - -RAW_FISH
    - -RAW_BEEF
    - -RAW_CHICKEN
    - -LOG
    Idea:
    friendly-name: IDEA
    bio: Ideas?.
    can-use:
    - NOTHING
    can-place:
    - NOTHING
    can-wear:
    - NOTHING
    can-break:
    - NOTHING
    can-craft:
    - NOTHING
    can-smelt:
    - NONE
    Guardman:
    friendly-name: Warrior
    bio: Master of sword and armour.
    can-use:
    - WOOD_PICKAXE
    - WOOD_SPADE
    - WOOD_SWORD
    - STONE_SWORD
    - IRON_SWORD
    - GOLD_SWORD
    - DIAMOND_SWORD
    can-place:
    - ALL
    can-wear:
    - ALL
    can-break:
    - ALL
    can-craft:
    - TORCH
    can-smelt:
    - NOTHING
    PDemon:
    friendly-name: Admin
    bio: ADMIN! FTW.
    can-use:
    - ALL
    can-place:
    - ALL
    can-wear:
    - ALL
    can-break:
    - ALL
    can-craft:
    - ALL
    can-smelt:
    - ALL
     
  19. Offline

    LartTyler

    @PDemon
    Nice looking configuration ^_^ Hahah feels pretty good to see how my work is being used :)
     
  20. Offline

    NeonJ

    This supports item ID numbers too, right?
     
  21. Offline

    LartTyler

    @NeonJ
    It does not, they shouldn't be necessary. Is there a reason that you'd prefer to use item ID's instead of the item name? I can add it if it's necessary. What would be the reasoning behind using ID's?
     
  22. Offline

    NeonJ

    @LartTyler: I often forget the way each item is named. [I always call glowstone "lightstone", for instance.] so I would prefer there was either a list of all the Bukkit item names, or the ability to put item IDs in instead.

    If you can get me a list though, much appreciated :D
     
  23. Offline

    LartTyler

    @NeonJ
    You can find a list of the Bukkit names for every item in Minecraft here.
     
  24. Offline

    Sich

  25. Offline

    NeonJ

    Thanks! xD
    I did notice Sich's post first though o,o I scrolled up from the bottom. xD

    Okay, my "all" category isn't affecting any of the classes, I wonder why :/

    Code:
    # A quick note from the developer:
    #   Though it is listed, starter kits are not currently enabled in game. I was working on
    #   adding them for version 2.1, but since it's been taking me so long to simply add the few
    #   features that have been requested and fix a few bugs, I figured it would be better to
    #   put out 2.1, then add starter kits, as well as a few more requested features, in 2.2, which
    #   I plan to release a few days after 2.1.
    #
    #   Thanks for all your support and interest,
    #       Tyler
    #
    config:
        enabled: true
        debug: false
        default-job: Peasant
        override-bed-spawn: false
        instant-first-job-change: true
        starter-kit:
            give-kit-on-first-change: true
            give-kit-on-all-change: false
        messages:
            place-deny-msg: This object is too heavy for you to place.
            break-deny-msg: You do not know how you would go about lifting this.
            use-deny-msg: You're not sure what to do with this...
            wear-deny-msg: The armour is too heavy for you to wear.
            wear-deny-inv-full-msg: You cannot hold any more items, your armor was dropped.
            new-player-msg: Welcome, %p, to TakendaQuest! Your current job is %j.
            craft-deny-msg: You know something's made with these materials, but you don't know how to make it.
            respawn-msg: Your become resurrected.
            smelt-deny-msg: You look at the furnace, puzzled. You do not know how to use it like that.
        all:
            can-use:
            - AIR
            - WOOD_SWORD
            - STONE_SWORD
            - WOOD_SHOVEL
            can-place:
            - SAND
            - SANDSTONE
            - YELLOW_FLOWER
            - RED_ROSE
            - WOOL
            - WOOD_STAIRS
            - CHEST
            - WORKBENCH
            - LADDER
            - PUMPKIN
            - JACK_O_LANTERN
            - BOOKSHELF
            - TORCH
            - TRAP_DOOR
            - BED
            can-wear:
            - LEATHER_HELMET
            - LEATHER_CHESTPLATE
            - LEATHER_LEGGINGS
            - LEATHER_BOOTS
            can-break:
            - LEAVES
            - LOG
            - SAND
            - SANDSTONE
            - YELLOW_FLOWER
            - RED_ROSE
            - WOOL
            - WOOD_STAIRS
            - CHEST
            - WORKBENCH
            - LADDER
            - PUMPKIN
            - JACK_O_LANTERN
            - BOOKSHELF
            - TORCH
            - TRAP_DOOR
            - BED
            - SAPLING
            - LONG_GRASS
            can-craft:
            - SNOW_BLOCK
            - CLAY_BLOCK
            - SANDSTONE
            - JACK_O_LANTERN
            - PAINTING
            - SIGN
            - BOWL
            - LADDER
            - STICK
            - TORCH
            can-smelt:
            - NOTHING
        jobs:
            Peasant:
                friendly-name: Peasant
                bio: The Peasant is the basic villager. He has no job, and lives an ordinary life.
                can-use:
                - FISHING_ROD
                can-place:
                can-wear:
                can-break:
                can-craft:
                can-smelt:
            Lumberjack:
                friendly-name: Lumberjack
                bio: The Lumberjack is skilled with his axe, and can fell trees with one hit. He can also craft items out of wood.
                can-use:
                - WOOD_AXE
                - STONE_AXE
                - IRON_AXE
                - DIAMOND_AXE
                can-place:
                - LOG
                - TRAP_DOOR
                can-wear:
                can-break:
                - LOG
                - WOOD
                - WOOD_DOOR
                - TRAP_DOOR
                - FENCE
                - FENCE_GATE
                - WOOD_DOOR
                can-craft:
                - WORKBENCH
                - CHEST
                - BOOKSHELF
                - WOOD_SWORD
                - WOOD_AXE
                - WOOD_HOE
                - WOOD_SHOVEL
                - WOOD_PICKAXE
                - BOW
                - ARROW
                - BOAT
                - WOOD_DOOR
                - TRAP_DOOR
                - FENCE
                - FENCE_GATE
                - BED
                can-smelt:
                - LOG
            Miner:
                friendly-name: Miner
                bio: The Miner knows the underground well, and is prepared to venture into the darkness for the village.
                can-use:
                - STONE_SHOVEL
                - IRON_SHOVEL
                - DIAMOND_SHOVEL
                - WOOD_PICKAXE
                - STONE_PICKAXE
                - IRON_PICKAXE
                - DIAMOND_PICKAXE
                can-place:
                - GOLD_ORE
                - IRON_ORE
                - REDSTONE_ORE
                - COAL_ORE
                - DIAMOND_ORE
                - LAPIS_ORE
                - COBBLESTONE
                - RAILS
                - POWERED_RAIL
                - DETECTOR_RAIL
                can-wear:
                - IRON_HELMET
                - IRON_CHESTPLATE
                - IRON_LEGGINGS
                - IRON_BOOTS
                can-break:
                - STONE
                - COBBLESTONE
                - GRAVEL
                - GOLD_ORE
                - IRON_ORE
                - REDSTONE_ORE
                - COAL_ORE
                - DIAMOND_ORE
                - LAPIS_ORE
                - DISPENSER
                - COBBLESTONE_STAIRS
                - RAILS
                - POWERED_RAIL
                - DETECTOR_RAIL
                - BRICK
                - GLOWSTONE
                - SMOOTH_BRICK
                can-craft:
                - STONE_PICKAXE
                can-smelt:
            Farmer:
                friendly-name: Farmer
                bio: The Farmer's skill in plant life allows him to farm quickly and efficiently. He's also a good cook.
                can-use:
                - FISHING_ROD
                - BOW
                - SHEARS
                can-place:
                - SEEDS
                - CROPS
                - PUMPKIN_SEEDS
                - MELON_SEEDS
                - CACTUS
                - SUGAR_CANE
                can-wear:
                can-break:
                - CROPS
                - WHEAT
                - MELON
                - CACTUS
                - MELON_STEM
                - PUMPKIN_STEM
                - SUGAR_CANE
                - SUGAR_CANE_BLOCK
                can-craft:
                - BOOK
                - BOOKSHELF
                - BREAD
                - MUSHROOM_SOUP
                - GOLDEN_APPLE
                - SUGAR
                - CAKE
                - COOKIE
                - MELON
                - MELON_SEEDS
                - FISHING_ROD
                - INK_SACK
                can-smelt:
                - RAW_FISH
                - RAW_CHICKEN
                - RAW_BEEF
                - PORK
                permissions:
                    - appleseed.plant.*
                    - appleseed.wand
                    - appleseed.sign.place
            Knight:
                friendly-name: Knight
                bio: The Knight works hard to defend the village. His strong equipment and use of the bow make him a hard one to kill.
                can-use:
                - BOW
                - IRON_SWORD
                - DIAMOND_SWORD
                can-place:
                can-wear:
                - IRON_HELMET
                - IRON_CHESTPLATE
                - IRON_LEGGINGS
                - IRON_BOOTS
                - DIAMOND_HELMET
                - DIAMOND_CHESTPLATE
                - DIAMOND_LEGGINGS
                - DIAMOND_BOOTS
                can-break:
                can-craft:
                can-smelt:
            Blacksmith:
                friendly-name: Smith
                bio: The Blacksmith knows how to make almost any item. He also knows how redstone works, and can use Redstone Chips.
                can-use:
                can-place:
                - REDSTONE
                - REDSTONE_TORCH_ON
                - REDSTONE_WIRE
                - PISTON_BASE
                - PISTON_STICKY_BASE
                - DIODE
                - LEVER
                - STONE_BUTTON
                - STONE_PLATE
                - WOOD_PLATE
                - DISPENSER
                can-wear:
                can-break:
                - REDSTONE_TORCH_ON
                - REDSTONE_TORCH_OFF
                - REDSTONE_WIRE
                - PISTON_BASE
                - PISTON_STICKY_BASE
                - DIODE
                - DIODE_BLOCK_ON
                - DIODE_BLOCK_OFF
                - LEVER
                - STONE_BUTTON
                - STONE_PLATE
                - WOOD_PLATE
                - DISPENSER
                can-craft:
                - ALL
                - -BREAD
                - -MUSHROOM_SOUP
                - -GOLDEN_APPLE
                - -SUGAR
                - -CAKE
                - -COOKIE
                - -MELON
                - -MELON_SEEDS
                - -FISHING_ROD
                can-smelt:
                - ALL
                - -RAW_FISH
                - -RAW_CHICKEN
                - -RAW_BEEF
                - -PORK
            Builder:
                friendly-name: Builder
                bio: The Builder's knowledge of construction allows him to build houses with materials other people dare not touch.
                can-use:
                can-place:
                - ALL
                - -BROWN_MUSHROOM
                - -RED_MUSHROOM
                - -SEEDS
                - -CROPS
                - -PUMPKIN_SEEDS
                - -MELON_SEEDS
                - -CACTUS
                - -SUGAR_CANE
                - -GOLD_ORE
                - -IRON_ORE
                - -REDSTONE_ORE
                - -COAL_ORE
                - -DIAMOND_ORE
                - -LAPIS_ORE
                can-wear:
                can-break:
                can-craft:
                can-smelt:
    I made myself a lumberjack, yet I cannot destroy tall grass or leaves. Neither can I craft wood planks.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  26. Offline

    LartTyler

    @NeonJ
    Well, it seems to me like you don't have any can-craft's that say you could craft wood planks. For your lumberjack, try adding:
    Code:
    can-craft:
        - WOOD
    To your lumberjack configuration. As for the grass and leaves, be sure you're not within the spawn protected area of your world. I had the same problem when I was developing and testing, it took me a while to figure that out :p
     
  27. Hi,
    Could you add the function what you can limit the amount off the braked blocks per day ?
    For Example:

    Code:
                can-break:
                - STONE:64
    
     
  28. Offline

    PDemon

    Would be very nice to have a buy function for that "punch a sign" buy the to use one pickaxe and when it has been used up you are unable to use pickaxe again
     
  29. Offline

    NeonJ

    I'm definitely out of the spawn protection area. It's telling me the "You do not know how to dig this" message :3

    I forgot about the "crafting wood" thing though. That I admit. But destroying grass/dirt/tall grass? Not working.

    EDIT: Turned debug on and verbosity high. It appears to be completely ignoring the "all" part, and is checking the Lumberjack's part TWICE. This may be me reading it wrong.
     
  30. Offline

    PDemon

    @NeonJ , i had a problem when trying to fing out what i could use and found out that is you don't have the
    "can-use:
    Dirt"
    then it doesn't matter if you can break the block you simplly can use the dirt to do it

    EDIT: just sharing :)
     
  31. Offline

    LartTyler

    @NeonJ
    PDemon is right. Unless you list things such as DIRT in can use, you won't be able to use it to break a block. Also, an empty hand counts as AIR. The double check you were seeing is DayJobs checking once for can-use on the item in your hand, and the can-break on the item you were trying to break.

    @PDemon
    Thanks for pointing that out, I hadnt even thought about that when NeonJ first mentioned his issue :p
     

Share This Page