BukkitPermissions, nodes: thieves.thief, thieves.immune Player with the thief node can rightclick on another player who doesn't have the immune node while not holding anything and sneaking, then he will steal a random item at a 50% chance. Success: Thief gets the item Failure: Player gets the message "You feel someone rummaging through your pockets". Either way the steal ability goes on cooldown. Each attempt to steal something costs 1/2 energy (hunger). config.yml Code: failmessage: 'You feel someone rummaging through your pockets.' stealcost: 1 #in half-hunger stealcooldown: 10 #in seconds sneakrequired: 'true' items.yml Code: 263:stack #as much as the player has 264:1 #only one per attempt 331:0 #this item will never be stolen Offering 10$. We're low on donations (only got like 50$), so I'm spending them carefully
Should be madeable, tough i wont make it for you yet. I first want a stable 1.8 recommended build :3 Very good idea btw!
Maybe. (random item, okay) EDIT: Yes, if it's not taken tyet. EDIT2: I dont understand your items.yml example EDIT3: undersatand now, are your players intelligent enough to not abuse the system and stop the cooldown by rejoining
Don't know about that but since you can clearly see them relogging it can be screenshotted and the player will be banned.
I cant find any API to withdraw hunger bar health... I will try to make a start on the plugin soon, if @iffa isnt going to do it? @iffa Send me to it please, so i will take a look. Are you going to make this plugin btw? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I've got most of this done, and no need to tag me, I'm watching this thread. also: player.getFoodLevel() and player.setFoodLevel(int value)
I've finished this plugin now. (kind of) Making a file for items etc is kind of gay so right now the thief gets a random item(stack) from the target's inventory.
Alright, I'll test it out and donate you the 10$ if everything's in order. For now, the generated config says Code: # Configuration file for ServerGoblins # Please see https://github.com/Pandarr/ServerGoblins/wiki for configuration details. and puts all the default config in one line. I'll test the plugin itself when I get home. Luckily a player joined the server and I was able to test it. He didn't get the message, stealing had no cooldown, cost no hunger, didn't require sneaking and you could steal "nothing", as it didn't check if the slot you were stealing from had any items in it or not. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Config in one line -> shitty notepad If nothing actually happens, then it's not making it to the stealing part. Testingg. EDIT: Confirmed working. I went sneaking, right clicked a player and the player was greeted with the failmessage. After the cooldown (which actually works), I tried again and I was successful. I received some flowers from the player.
Damn, I'll test again now that a mod is online. I was using notepad++ btw. EDIT: or not, how could I have used regular notepad without realizing it O_O Okay, fixed the config, did more testing. Everything is working except the item just dupes instead of being stolen. Sorry for the testing fail on my part. Once you get that fixed I'll gladly send you the 10$ Okay, more testing, it only dupes when the person has the 'thieves.immune' node EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Duping? Hmm... as in the target doesn't lose the item? EDIT: Fixed. The target should now lose the stolen item. Updated the original link.