Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. package me.kgaz.bronie.smith;
  2.  
  3. public enum SmithType {
  4.  
  5. WILLIAM(3);
  6.  
  7. private final Integer maxUpgrade;
  8.  
  9. private SmithType(Integer maxUpgrade) {
  10. this.maxUpgrade = maxUpgrade;
  11. }
  12.  
  13. public Integer getMaxUpgrade() {
  14. return maxUpgrade;
  15. }
  16.  
  17. public static SmithType getFromString(String name) {
  18. if(name.equals("§eKowal William")) {
  19. return WILLIAM;
  20. }
  21. return null;
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement