diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/config/ConfigManager.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/config/ConfigManager.java index fd00025..0780e8e 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/config/ConfigManager.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/config/ConfigManager.java @@ -71,10 +71,6 @@ public class ConfigManager { autoMessagesConfig = new AutoMessagesConfig(); - - // dossier qui doit contenir les messages automatiques - File autoMessagesDir = new File(configDir, "automessages"); - autoMessagesDir.mkdir(); // dossier qui doit contenir les alias de commandes File commandAliasDir = new File(configDir, "commandalias"); diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/CalculatorManager.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/CalculatorManager.java index 08d28e1..ebf011a 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/CalculatorManager.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/modules/CalculatorManager.java @@ -80,6 +80,10 @@ public class CalculatorManager implements Listener { event.getPlayer().sendMessage(ChatColor.RED+e.getMessage()); event.getPlayer().sendMessage(ChatColor.RED+"Utilisez le symbole "+ChatColor.GRAY+"="+ChatColor.RED+" dans le chat pour faire un calcul mathématique"); } + catch (NullPointerException e) { + event.getPlayer().sendMessage(ChatColor.RED+e.getMessage()); + event.getPlayer().sendMessage(ChatColor.RED+"Utilisez le symbole "+ChatColor.GRAY+"="+ChatColor.RED+" dans le chat pour faire un calcul mathématique"); + } }