Exemplo n.º 1
0
 private String getRandomName(WeaponType type, boolean useTitle, boolean isAscented) {
   String prefix = ChatColor.WHITE + "";
   String name = "";
   if (isAscented) {
     prefix = ChatColor.GOLD + "";
   }
   if (type.isBow()) {
     name += prefix + bowNames.get(rand.nextInt(bowNames.size())).getName();
     if (useTitle) {
       name += ", ";
       name += bowTitles.get((rand.nextInt(bowTitles.size()))).getName();
     }
     return name;
   }
   name += prefix + swordNames.get(rand.nextInt(swordNames.size())).getName();
   if (useTitle) {
     name += ", ";
     name += swordTitles.get(rand.nextInt(swordTitles.size())).getName();
   }
   return name;
 }