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 SlimeDog SlimeDog Jun 22, 2016 at 06:28 UTC - 0 likes

    Spigot 1.10 latest, CJI 1.5.2 drops CJI-specified item from inventory slot 9 visually. The item is actually still there. Q will display it again (and not drop it, if drops are configured false). May be true for other slots as well I did not test that.

    This is not the only plugin with this sort of problem. The item needs to be forcefully made visible.

    Please release a working 1.10 version.

    Last edited Jun 22, 2016 by SlimeDog
  • Avatar of heckabecca heckabecca Jun 20, 2016 at 03:38 UTC - 0 likes

    @Randegast: Go

    Uh....has filoghost abandoned this plugin?

    DoomQuest

    Minecraft is better here!
    http://doomquest.enjin.com/

    Server IP:
    s12.minespan.com:26918

  • Avatar of Randegast Randegast Jun 14, 2016 at 13:18 UTC - 0 likes

    @iReeskenz: Go

    I have made a CustomJoinItems for 1.10: http://dev.bukkit.org/bukkit-plugins/customjoinitems

  • Avatar of Ubique1964 Ubique1964 Jun 13, 2016 at 07:06 UTC - 0 likes

    Yes please 1.10

    Check out our Minecraft server at: mineoz.net ........... GET PAID: We require Admins and Moderators Apply at ClanRekt

  • Avatar of iReeskenz iReeskenz Jun 12, 2016 at 13:31 UTC - 0 likes

    Hi, could you update for 1.10 please? :)

  • Avatar of Mikaoy Mikaoy May 25, 2016 at 18:25 UTC - 0 likes

    Great plugin! A great addition would be - as mentioned in the 'Future features' - books. Also, the compass has some weird jump command or something for me that I can't get rid off, and it's only for the compass id :/. However, as I said, great plugin!

  • Avatar of Jeskai_Master Jeskai_Master May 23, 2016 at 18:57 UTC - 0 likes

    For some reason it won't update, even after I have done the /cji update command! When I join, it only gives me the old items and not the new ones. Can anyone fix this?

  • Avatar of kyle201YT kyle201YT May 01, 2016 at 23:10 UTC - 0 likes

    1.8 please!

  • Avatar of U1T1MATE U1T1MATE May 01, 2016 at 03:01 UTC - 0 likes

    @JackAndMC: Go

    I'm having the exact same issue - really do need a fix, thanks!

  • Avatar of JackAndMC JackAndMC Apr 25, 2016 at 01:46 UTC - 0 likes

    I can't get the plugin to give me the item on joining the server. I have to switch worlds in order for it to give it to me. Is there a known fix or update coming?

Facts

Date created
Sep 03, 2013
Categories
Last update
Mar 08, 2016
Development stage
Release
Language
  • enUS
License
All Rights Reserved
Curse link
Custom Join Items
Downloads
169,723
Recent files

Authors