@Command(
     aliases = {"chest"},
     usage = "<nom_coffre>",
     desc = "Information sur un coffre.",
     min = 1,
     max = 1)
 @CommandPermissions({"mho.donjon.admin"})
 public void chest(CommandContext args, CommandSender sender) {
   Player player = null;
   if (sender instanceof Player) {
     player = (Player) sender;
   } else {
     return;
   }
   String donjon = Manager.getDonjon().getDonjon(player.getName());
   String chest = args.getString(0).toLowerCase();
   if (Manager.getDonjon().existDonjon(donjon)) {
     if (Manager.getDonjon().existChest(donjon, chest)) {
       player.sendMessage("Information du Coffre: " + ChatColor.GREEN + chest + ChatColor.RESET);
       player.sendMessage(Manager.getDonjon().infoLocationChest(donjon, chest));
       String[] items = Manager.getDonjon().infoItemsChest(donjon, chest);
       for (String item : items) {
         player.sendMessage("Item: " + item);
       }
     } else {
       player.sendMessage(ChatColor.RED + "Le coffre n'existe pas." + ChatColor.RESET);
     }
   } else {
     player.sendMessage(ChatColor.RED + "Le donjon n'existe pas." + ChatColor.RESET);
   }
 }
 @Command(
     aliases = {"dispenser"},
     usage = "<nom_distributeur>",
     desc = "Information sur un distributeur.",
     min = 1,
     max = 1)
 @CommandPermissions({"mho.donjon.admin"})
 public void dispenser(CommandContext args, CommandSender sender) {
   Player player = null;
   if (sender instanceof Player) {
     player = (Player) sender;
   } else {
     return;
   }
   String donjon = Manager.getDonjon().getDonjon(player.getName());
   String dispenser = args.getString(0).toLowerCase();
   if (Manager.getDonjon().existDonjon(donjon)) {
     if (Manager.getDonjon().existDispenser(donjon, dispenser)) {
       player.sendMessage(
           "Information du Distributeur: " + ChatColor.GREEN + dispenser + ChatColor.RESET);
       player.sendMessage(Manager.getDonjon().infoLocationDispenser(donjon, dispenser));
       String[] items = Manager.getDonjon().infoItemsDispenser(donjon, dispenser);
       for (String item : items) {
         player.sendMessage("Item: " + item);
       }
     } else {
       player.sendMessage(ChatColor.RED + "Le distributeur n'existe pas." + ChatColor.RESET);
     }
   } else {
     player.sendMessage(ChatColor.RED + "Le donjon n'existe pas." + ChatColor.RESET);
   }
 }
 @Command(
     aliases = {"donjon"},
     usage = "[nom_donjon]",
     desc = "Information sur un Donjon.",
     min = 0,
     max = 1)
 @CommandPermissions({"mho.donjon.admin"})
 public void donjon(CommandContext args, CommandSender sender) {
   Player player = null;
   if (sender instanceof Player) {
     player = (Player) sender;
   } else {
     return;
   }
   String donjon = args.getString(0, Manager.getDonjon().getDonjon(player.getName()));
   if (Manager.getDonjon().existDonjon(donjon)) {
     player.sendMessage("Information du Donjon: " + ChatColor.GREEN + donjon + ChatColor.RESET);
     player.sendMessage(
         "Reset: "
             + ChatColor.RED
             + Manager.getDonjon().infoResetDonjon(donjon)
             + ChatColor.RESET);
     player.sendMessage(
         "Groupe(s): "
             + ChatColor.YELLOW
             + Manager.getDonjon().infoGroupsDonjon(donjon)
             + ChatColor.RESET);
     player.sendMessage(
         "Coffre(s): "
             + ChatColor.BLUE
             + Manager.getDonjon().infoChestsDonjon(donjon)
             + ChatColor.RESET);
     player.sendMessage(
         "Distributeur(s): "
             + ChatColor.DARK_PURPLE
             + Manager.getDonjon().infoDispensersDonjon(donjon)
             + ChatColor.RESET);
   } else {
     player.sendMessage(ChatColor.RED + "Le donjon n'existe pas." + ChatColor.RESET);
   }
 }
 @Command(
     aliases = {"group"},
     usage = "[nom_groupe]",
     desc = "Information sur un groupe.",
     min = 0,
     max = 1)
 @CommandPermissions({"mho.donjon.admin"})
 public void group(CommandContext args, CommandSender sender) {
   Player player = null;
   if (sender instanceof Player) {
     player = (Player) sender;
   } else {
     return;
   }
   String donjon = Manager.getDonjon().getDonjon(player.getName());
   if (Manager.getDonjon().existDonjon(donjon)) {
     String group =
         args.getString(0, Manager.getDonjon().getGroup(player.getName())).toLowerCase();
     if (Manager.getDonjon().existGroup(donjon, group)) {
       player.sendMessage("Information du Groupe: " + ChatColor.GREEN + group + ChatColor.RESET);
       player.sendMessage(
           "Pourcentage d'apparition: "
               + ChatColor.RED
               + Manager.getDonjon().infoPourcentageGroup(donjon, group)
               + ChatColor.RESET);
       player.sendMessage(
           "Nombre de Bloc(s): "
               + ChatColor.YELLOW
               + Manager.getDonjon().infoBlocksGroup(donjon, group)
               + ChatColor.RESET);
     } else {
       player.sendMessage(ChatColor.RED + "Le groupe n'existe pas." + ChatColor.RESET);
     }
   } else {
     player.sendMessage(ChatColor.RED + "Le donjon n'existe pas." + ChatColor.RESET);
   }
 }