Hello Everyone,i would need a Plugin for my MC Server: Plugin category: Commands Suggested name: PHC(PlayerHeadCommands) What I want: A Plugin that gives your Player his own Head each time he joins,and when a Player Uses it,it executes a Command.And the commands could be editable PER WORLD. The Head should not be moveable or deletable in the Player Inventory,and it should be given in specified worlds only.It should be able do execute diffrent commands when Left-Clicked,Right-Clicked,Shift-left and shift-right.Plus,with a Custom Item NameAlso,a Config file,where you can define the Item Settings like: Inventory_moveable = false/true Worlds = - world [ Head_Custom_Name: {player}'s Inventory - The custom name-where {player} is the players name. Head_Inventory_Location: Slot 1/2/3... - The slot where the Head is given. Command_on_RClick = As_User_OP_Console = OP/User/Console - Who will execute the Command,As an normal-non-OP player,as an OP or as the Console Command = "example command" - The command to be executed when clicked. Command_on_LClick = As_User_OP_Console = OP/User/Console Command = "example command" Command_on_RClickShift = As_User_OP_Console = OP/User/Console Command = "example command" Command_on_LClickShift = As_User_OP_Console = OP/User/Console Command = "example command" ] - you see what i mean Ideas for commands: For the User: /headgive - Gives the user the Head with the Commands. For OP: /headgive <playername> - Same as up there,but for a specific player.It gives every player their own head. Ideas for permissions: phc.opgive - Allow the player to use the OP Command When I'd like it by: Sometime, i dont cayer , but i would like to see it. Thanks in future. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I think you can detect clicking and shift clicking, but I'm not so sure about left and right, if anyone knows how to do it, I can make the plugin I think
@Corndogoz : really easy to do! I left this here for you : https://hub.spigotmc.org/javadocs/b...inventory/InventoryClickEvent.html#getClick()
Do you want the commands to be executed while in the inventory menu or when having the head in hand? You cannot crouch when your EQ is open, so PlayerInteractEvent would be better. @Corndogoz make it open-source and I will contribute.
When in hand and clicked i think i wasnt clear enough,by invenotry i was meaning Hotbar.It would be given in the Hotbar,where you cannot move,delete or drop it,and when you left-right-shiftleft-shiftright-click it,it executes diffrent commands. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
um that still doesnt answer his question, do you want the player to open their inventory, then click on the head, from in the inventory? Or do you want the players inventory to be closed, and the player just like punches or uses the item?
im going to try, although ive never used github so im not really sure how to make it open source EDIT: may i ask what version of minecraft to make it for?