Itemdb Command (Essentials Remake)


Author: OzOwnz
Created: 2014-07-15T21:13:04-0400
Edited: 2014-07-22T23:24:50-0400
Denizen Version: 0.9.4-SNAPSHOT
Views: 15
Downloads: 853
Likes: 1


WGET
Description: Simple Denizen script to add back in Essentials' itemdb command.

Command: "/itemdb"

It shows the item in your hand's name according to Bukkit/Spigot, the data value, and how to use it in a typical give command.

Only ops can use it.

Itemdb Command: 
  type: world
  events: 
    on itemdb command:
    - ^if !<player.is_op> {
      - ^narrate "<&f>You must be op to use this command."
      - determine fulfilled
      - queue clear
      }
    - ^narrate "Item<&co> <&e><player.item_in_hand.material.bukkit_enum.to_lowercase><&r> Itemid<&co> <&e><player.item_in_hand.material.id><&co><player.item_in_hand.material.data> <&7>(/give <&lt>player<&gt> <player.item_in_hand.material.id> <&lt>#<&gt> <player.item_in_hand.material.data>))"
    - ^narrate "<&f>Raw data<&co> <player.item_in_hand>"
    - determine fulfilled




Comments
No one has posted a comment! Post one below: