Filled AutoArmor Test

Discussion in 'Plugin Requests' started by ACA30, Oct 27, 2016.

Thread Status:
Not open for further replies.
  1. Offline


    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
    Last edited: Oct 27, 2016
  2. Offline


    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??
    Last edited by a moderator: Oct 27, 2016
  3. Offline


    Doesn't that defeat the purpose
  4. Offline


    Last edited by a moderator: Oct 28, 2016
  5. Offline

    I Al Istannen

    That is bad package name. The official standard is "domain name backwards". This will result in "org.bukkit", "", "" 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.

    this.getLogger().info(this.getName() + " enabled");
    This is uneeded, bukkit logs it for you.

    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.
  6. Offline


    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
  7. Offline


    Alright. thanks guys! :)
  8. Offline

    I Al Istannen

  9. Offline


  10. Offline


    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)
  11. Offline


  12. Offline


    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:
  13. Offline


    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)).
  14. Offline


Thread Status:
Not open for further replies.

Share This Page