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 Jayman000 Jayman000 Apr 16, 2015 at 23:14 UTC - 0 likes

    @mxy97: Go

    You need to set firsit-join-only: false

    and give-at-respawn: true

  • Avatar of DerekZil DerekZil Apr 16, 2015 at 02:15 UTC - 0 likes
        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.
    

    Can you play make it so give-at-respawn can be ture still?

    Also buggy in 1.8.3. :(

    Insanity Realms Website

  • Avatar of mxy97 mxy97 Apr 13, 2015 at 01:43 UTC - 0 likes

    @mxy97: Go

    they dont get the items on the first join

  • Avatar of mxy97 mxy97 Apr 12, 2015 at 23:13 UTC - 0 likes

    help every new player needs to reconnect to get the items im running spigot1.8.3

  • Avatar of Xdddk Xdddk Apr 06, 2015 at 14:19 UTC - 0 likes

    I want translated into Traditional Chinese can do?

    If you can, please reply to me.

    Thank you.

  • Avatar of DerekZil DerekZil Apr 05, 2015 at 19:50 UTC - 0 likes

    I only want them to get items when they respawn, why are they getting items when the logout and back in?

  • Avatar of Maxamilion126 Maxamilion126 Apr 02, 2015 at 20:19 UTC - 0 likes

    But is was talking about the costumjoinitems plugins :P

    Join mine MC server: rx.mcsrv.eu [24/7] Store

  • Avatar of NoHoPeLess NoHoPeLess Apr 02, 2015 at 12:05 UTC - 0 likes

    @Maxamilion126: Go

    this is no option, we use HomeSpawnPlus and this plugin has no option for clear the inv.

    Because this is a bug and i hope he fix that :D

    BalayaCraft! Der etwas andere Server!

    BalayaCraft! Server-IP server.balayacraft.de | BalayaCraft-Website | Facebook | Twitter | Youtube |

  • Avatar of Maxamilion126 Maxamilion126 Apr 02, 2015 at 05:35 UTC - 0 likes

    @NickGamerGR use the awesome plugin Chestcommands there you can configure a selector

  • Avatar of Maxamilion126 Maxamilion126 Apr 02, 2015 at 05:28 UTC - 0 likes

    NoHoPoLess you can zet in the config: clear-inventory-on-join: true Then every time they join their inventory clears and you get only 1 but download then SpawnJoin because otherwise your inventory will be cleard e.g in survival. You also need to give the staff the permission SpawnJoin.bypass

    Last edited Apr 02, 2015 by Maxamilion126

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
75,016
Recent files

Authors