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 Tai1er Tai1er Jul 22, 2014 at 09:15 UTC - 0 likes

    @Bobbinkin: Go

    Yes, it's work perfectly =)

  • Avatar of Bobbinkin Bobbinkin Jul 21, 2014 at 23:32 UTC - 0 likes

    Does this work with 1.7.9?

  • Avatar of RagdeMC RagdeMC Jul 17, 2014 at 18:48 UTC - 0 likes

    I made a video of this plugin is Spanish you could put it on your page? https://www.youtube.com/watch?v=MRi90zJhOUg&list=UU-g-NdWLTcg1ilVeprwM14Q

  • Avatar of Tai1er Tai1er Jul 17, 2014 at 13:20 UTC - 1 like

    I have tested ALL the plugin can give books and any can be use with CJI. Please, can you add books in your plugin? :(

    And your plugin is awsome. =D

    Last edited Jul 17, 2014 by Tai1er
  • Avatar of PluginBox PluginBox Jul 11, 2014 at 15:46 UTC - 0 likes

    THANK YOU! You added per world config!

  • Avatar of nicknickxd7 nicknickxd7 Jul 11, 2014 at 00:27 UTC - 0 likes

    oh yea and the players can still move the items if it sais block-movement: false

  • Avatar of nicknickxd7 nicknickxd7 Jul 11, 2014 at 00:26 UTC - 0 likes

    @CaptainSpooncer: Go

    having the same problem

  • Avatar of nicknickxd7 nicknickxd7 Jul 11, 2014 at 00:23 UTC - 0 likes

    i have a problem with custom join items. If i could get some help that would be fantastic. Every time i change worlds and come back to the hub the items dont work anymore (adds text in front of item) or they duplicate. is there any way of fixing this please help!

  • Avatar of ZytheisCraft ZytheisCraft Jul 08, 2014 at 23:24 UTC - 0 likes

    @EpicN1nja11111: Go

    i agree this is a feature that would deff be interesting

    Cryntix Owner and Community Director of MineSlice Networks

  • Avatar of TheCakeMaster1 TheCakeMaster1 Jul 03, 2014 at 07:16 UTC - 0 likes

    A little problem. Have set block-movement to false (block-movement: false), yet I can still move items? Also another problem, when a person first joins the sever, items appear in the first slots of inventory (NOT hotbar) even though I have set the slot number. And help would be most appreciated!

    Last edited Jul 03, 2014 by TheCakeMaster1

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
38,046
Recent files

Authors