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 altrisi altrisi Jul 05, 2016 at 11:39 UTC - 0 likes

    @Jeskai_Master: Go

    The command "/cji update" is not to reload the config and search any change/new item. To do that, use "/cji reload", or restart your server. If doing that you already have the old items, check you are not usin Multiverse-Inventories, MultiInv or other per world inventory separator. If you have one of them, remove the items file for that world (s). If not, try doing "/clear" and "/kill". Check if you have "give-at-respawn" and "give-on-world-change" set to true. If it is set to "false", you don't allow the new items to appear.

  • Avatar of altrisi altrisi Jul 05, 2016 at 11:27 UTC - 0 likes

    @NeonLP: Go

    NeonLP, if you want to use that characters, with the file opened in Notepad+ + (is the best editor for config/other YML files) click in the "Encoding" (or something like this, i'm from Spain) menu button (in the upside of the window) and click the button "Convert to ANSI". That encoding is compatible with that special chars (I know it because I use á é í o ú ü).

  • Avatar of NeonLP NeonLP Jun 30, 2016 at 12:20 UTC - 0 likes

    Hey, i am german and i can´t do ä, ö, ü in the items Please add this. And what must i do, that items from another plugins go?

  • Avatar of SlimeDog SlimeDog Jun 28, 2016 at 01:43 UTC - 0 likes

    @heckabecca: Go

    filoghost is still around, so he must be working on something more important. :(

  • 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!

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
180,334
Recent files

Authors