Plugin category: [Help] Suggested name: CheckID. A bit about me: Im just a normal server hoster messing with plugins. What i want: a plugin that will tell me the id of the item i hold Ideas for commands: /checkID Ideas for permissions: CheckID.check When i'd like it by: As fast as possible Similar plugin request: None Devs who might be interested in this: No idea. http://dl.dropbox.com/u/58518437/CheckID.jar CheckID by = CRAZYxMUNK3Y - The 1 i use! https://github.com/tyzoid/CheckID/downloads CheckID by = tyzoid Thanks guys for making this!
Please format your request according to: http://forums.bukkit.org/threads/example-plugin-request-formatting-formatted.46919/
Sounds great just take your time =) EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I'll take this one I already started it You can take it over from me once I write it though... EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I started too (As i have some time) Will let you do it though. tyzoid Done(Basic version) Code:java package me.ben.CheckID; import org.bukkit.ChatColor;import org.bukkit.Material;import org.bukkit.command.Command;import org.bukkit.command.CommandSender;import org.bukkit.entity.Player;import org.bukkit.plugin.java.JavaPlugin; public class CheckID extends JavaPlugin{ public void onEnable(){ } public void onDisable(){ } @Overridepublic boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] arg) {if (commandLabel.equalsIgnoreCase("CheckID") && sender.hasPermission("CheckID.check")){Player player = ((Player)sender);Material item = player.getItemInHand().getType();int itemID = player.getItemInHand().getTypeId();player.sendMessage(ChatColor.GREEN + "You have a " + item + " which has the ID of " + itemID); }return true;} } Trust518 Item in hand and /checkid = You have a (Item) which has the ID of (ItemID), can only be done if player has permission CheckID.check, or is OP Want more? Link if you want it: http://dl.dropbox.com/u/58518437/CheckID.jar EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Trust518 If you wanted a more extensible version: https://github.com/tyzoid/CheckID/blob/master/Builds/CheckID_1.0.jar CRAZYxMUNK3Y You can fork my code... maybe learn a thing or two from my code... (you can change the command in the configs)
One last thing before I leave this thread... I used my template (https://github.com/tyzoid/Template) to make this plugin... I find it pretty useful.
If you don't mind, i might also use it. Also, im assuming onPlayerCommandPreprocess() is same a onCommand(), just a bit easier to work with, and only limites the command use to players?
Basically. If you noticed, I have it licensed under the WTHPL (Exactly like the WTFPL, but with heck instead of f***) ya know, cause there are kids here...