Custom Join Items

Cover

This plugin allows to give customized items on join, each one execute a command. This is useful for lobby servers, for example. You can set a permission to receive the item, and you can add infinite items. At the moment is really small, but I'm planning to add more features. Note that the user will receive the item on join, no matter if he was new, or if he stored the item.

You can use this plugin with Chest Commands GUI that allows you to create menus made of items, and each one executes a command.

Features

  • Give items on join, to people with correct permission.
  • If a player already owns the item, it does not give a duplicate.
  • Give items on respawn (configurable)
  • Prevent items from being dropped, even on death.

Commands and permissions

/cji reload - reloads the plugin
/cji update - updates the plugin

The permission is "customjoinitems.admin".

Configuration

In the plugin's folder you find a file named items.yml:

# This is just an internal name, must not be the same of another.
first-item:
    
    id: 352
    # (REQUIRED) The ID of the material.
    
    
    name: '&aTest item'
    # (REQUIRED) The custom name of the item (with formatting codes).
    
    
    data-value: 0
    # This is optional. Can be used for colored wool, and other items
    # with data values.
    
    cooldown-seconds: 5
    # This prevents command spam.
    
    command: 'say Hello world'
    # The command bound to this item. It will be executed when the item
    # is right clicked.
    # There are some prefixes that can give extra functionalities to
    # commands:
    # 
    # 'console: ' (execute the command as console)
    # 'op: ' (execute the command as op)
    # 'server: ' (for BungeeCord)
    # 'tell: ' (sends a message to the player)
    #
    # You can use symbols and the placeholders %player% and %world%.
    #
    # Use multiple commands like this: 'command; command2; command3'
    
    lore:
      - 'Line 1'
      - 'Line 2'
      - '...'
    # The lore of the item (with formatting codes and symbols support).
    
    block-movement: false
    # This prevents players from moving the item at all.
    
    slot: 9
    # If omitted, the item will be placed in the first empty slot.
    # If set, the item will attempt to place in that hotbar's slot,
    # and it will move any existing item that is in that slot,
    # if there's enough space in the inventory.
    
    
    permission: 'customjoinitems.test'
    # The item required to obtain the item on join. If not set,
    # everyone will get the item.
    
    
    first-join-only: false
    # (default = false)
    # If true, the player will get the item only when they join
    # the server the first time.
    # NOTE: give-at-respawn will automatically be set to false,
    # if this node is true.
    
    
    give-at-respawn: true
    # (default = true)
    # If set to true, the player will receive the item when he dies
    # and respawn.
    
    
    allow-drop: false
    # (default = false)
    # Allows players to drop the item.


    give-on-world-change: false
    # (default = false)
    # The plugin will eventually give the item to the players when they
    # change world.
    # Useful if you have Multiverse or similar plugins.
    
    
    disabled-worlds: world_nether, world_the_end
    # a list of disabled worlds separated by commas. If you don't want to
    # disable an item in some worlds, remove this node or set it to ''.


Videos

Spanish - German - Portuguese



Metrics

This plugin uses Metrics-Lite, to track anonymous data about servers using this plugin. It will help the future developement, and has no impact on your server's performance. If you really want to disable it, go to the folder /plugins/PluginMetrics and set opt-out: true.

Updater

You can use "/cji update" in-game to automatically update the plugin. You can disable the update checking at startup by setting update-notifications: false in config.yml.

Future features

  • Restrict crafting and storing items
  • Add right or left click options
  • Add cooldown bypass for admins, through a permisison
  • Add enchantments
  • Add books
  • Add per-world config
  • Command to get an item

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of kbalor kbalor Jun 26, 2015 at 17:10 UTC - 0 likes

    is it possible to use id like this? 397:1 anyway to bypass?

  • Avatar of ABugsTheater ABugsTheater Jun 22, 2015 at 02:35 UTC - 1 like

    I understand and respect that you have a lot on your hands when it comes to all of the plugins that you are working on good sir, but if you would be so kind as to update/fix this plugin's %player% variable it would be most beneficial for my server, and most likely for many others...

  • Avatar of kbalor kbalor Jun 18, 2015 at 04:18 UTC - 1 like

    I ccan still move the items help!!!

  • Avatar of TheIntelloBox TheIntelloBox Jun 03, 2015 at 11:09 UTC - 1 like

    Update to 1.8.6 please

  • Avatar of JugadorNinja JugadorNinja May 28, 2015 at 17:27 UTC - 1 like

    update the %player% variable!! doesnt work properly, it only reads the first person that joined the server

  • Avatar of AtracadorThe AtracadorThe May 20, 2015 at 18:07 UTC - 1 like

    The disable-worlds doesnt work with world names with spaces in it :( is there any way to add that feature?

  • Avatar of tonemon tonemon May 20, 2015 at 13:22 UTC - 0 likes

    @21stmc: Go

    in the items.yml file (or something simular) you have the item: 'First-item'. This says that this is an item and you can name it what you want. If you want to add another items, you will first need to make a name. So you can call the second item 'server' (something) and then you can type your item settings. If you cwant to add more items just repeat (above) BUT you will need another name (so for now you cannot use the name: 'server'. and so one........

    (I find it out by testing this whole plugin :) )

  • Avatar of 21stmc 21stmc May 09, 2015 at 00:12 UTC - 0 likes

    How do you add multiple items? When I edit the second item, it doesn't show, plus, there's no slot option for it. And WTF do all-the-possible-nodes mean?

  • Avatar of File14 File14 May 03, 2015 at 00:14 UTC - 0 likes

    Hello!

    Is it possible to set an enchantment for items?

    Thanks!

  • Avatar of TheRealPluginMaster TheRealPluginMaster May 01, 2015 at 06:42 UTC - 0 likes

    @filoghost

    This is a great plugin but it's not working at the moment, the plugin doesn't show as red in the /plugins area, however, it just doesn't seem to function after I even change the name of the items. You said you would recode it? Please do! I really need this plugin it's a great plugin to have, thank you!

    Last edited May 01, 2015 by TheRealPluginMaster

Facts

Date created
Sep 03, 2013
Categories
Last update
Feb 12, 2014
Development stage
Release
Language
  • enUS
License
All Rights Reserved
Curse link
Custom Join Items
Downloads
86,610
Recent files

Authors