Plugin category: Admin Minecraft version: 1. 8 Suggested name: AutoArmorTest What I want: It would be awesome if I get a plugin where if a staff member types /strip [player] it removes their armour and puts it in their inventory. It would be a simple way to test for AutoArmor. Ideas for commands: /strip Ideas for permissions: aat.strip When I'd like it by: ASAP
I will make this plugin for you I cannot make the command to do /strip [player] but I can make it to do /strip for only the player. Is that ok with you??
Yes but ill try my best to get it Here is the link to download the plugin https://www.dropbox.com/s/fuwx5vwmvaf6mxp/AutoArmorTest.jar?dl=0 EDIT by Moderator: merged posts, please use the edit button instead of double posting.
@DarkSteve25 That is bad package name. The official standard is "domain name backwards". This will result in "org.bukkit", "com.java", "com.google" and so on. Seems familiar, right? However, as most users here have no domain, the perferred format is "me.<user name>.<project name>", i.e. "me.ialistannen.autoarmor". This ensures that no name conflicts occur with other plugins. Code: this.getLogger().info(this.getName() + " enabled"); This is uneeded, bukkit logs it for you. Code: public void RemoveArmor(final Player player) { Follow naming conventions. In your onCommand consider returning if the condition is not met, which avoids deep nesting. @ACA30 @DarkSteve25 Now make it check if the player but the armor back on in less than x seconds (or less). If yes, he probably used auto armor, if not, maybe put his armor back.
Ok. I understand i-al-istannen. I will make another version to fix up some of the errors and am going to make it check if the player puts the armor back on in less than 1 second
@DarkSteve25 The checking was just a suggestion, as I think it could be useful @ACA30 Thank @DarkSteve25 Have a nice day, you two!
@ACA30 i dont know if is that you want but : Commands: /strip [player] /return [palyer] Permissions: aat.strip https://drive.google.com/drive/folders/0B8Er8qHZwk-SRklnTjZZQWY5Qkk?usp=sharing
Just wondering, what exactly would /return do, @xelatercero ... Also, does it place the armor that it stripped into the user's inventory, or does it keep it somewhere else (or the data void xD)
@ACA30 yes is stored in the void and the return command return the armor to the target of command /strip [Player] an improved version that checks if armor slots are null, and avoid to get error in console: https://drive.google.com/drive/folders/0B8Er8qHZwk-SRklnTjZZQWY5Qkk?usp=sharing
alright. thanks! hmmm... that's weird: the plugin doesn't strip me when i type strip ACA30 from the console. it just tells me the usage... Here is my log: http://pastebin.com/8GUFMcVw
I have finished this plugin for you @ACA30 and it doesn't do any errors or anything (tested). Here it is! Everything is like you want it (command and permission and the name of it in the folder is ArmorStrip (there are multiple files in the link I posted because those are where all of my free plugins go)).