Is there a way to "fake" armor level?

Discussion in 'Plugin Development' started by TigerHix, Jul 24, 2014.

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

    TigerHix

    For example, I am wearing a whole set of diamond armors, and it gives me full protection. I can see there are 10 shields icon on my HUD.

    So, is that a way to add/reduce the amount of these shield icons without changing armor? In opposite, is that a way to generate armors that do no protection at all?

    Thank you.
     
  2. Offline

    Freelix2000

    This is not possible, sorry.
     
  3. Offline

    JBoss925

    Error in your sig is the System.out() part? Isn't it just System.out.print() without the parenthesis after out?
     
  4. Offline

    _Filip

    JBoss925 Also the return statement at the end of the void method.
     
  5. Offline

    izarooni

    TheSpherret
    I think it's also missing a closing bracket for the method. Unless it's being cut off since I'm on mobile
     
  6. Offline

    _Filip

    izarooni It's being cut off since you're on mobile :p
     
  7. Offline

    JBoss925

    Please with this, it's 100% ok. It's for control flow.

    In java:
    http://docs.oracle.com/javase/tutorial/java/javaOO/returnvalue.html
    ^Oracle literally shows how it's used in their return value page

    And C(Java is C-based):
    http://stackoverflow.com/a/1283334
    ^Literally says if there's no return statement at the end of the void statement the compiler automatically generates one to stop the code.

    And a literal whole yahoo answer that says that void methods can have return statements:
    https://answers.yahoo.com/question/index?qid=20090526220822AApjUQ5

    Also, as far as I know, it's possible I think. Look into Packet5EntityEquipment.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  8. Offline

    Freelix2000

    JBoss925
    Yep, that's it! "out" is a static variable, not a method.
    @TheSpherret
    That is not actually an error, it is unnecessary, but it works.
     
    JBoss925 likes this.
  9. Offline

    dsouzamatt

    This thread is going off topic fast :p
     
  10. Offline

    JBoss925

    Tell me about it:p
     
Thread Status:
Not open for further replies.

Share This Page