From d0ef9a02677a053462459160aab4bfa7e760b40c Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Wed, 18 Feb 2015 13:08:49 -0500 Subject: [PATCH] =?UTF-8?q?Correction=20d'une=20Exception=20non=20g=C3=A9r?= =?UTF-8?q?=C3=A9e=20+=20Correction=20d'un=20oubli=20dans=20le=20ConfigMan?= =?UTF-8?q?ager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/plugin/pandacraftutils/config/ConfigManager.java | 4 ---- .../plugin/pandacraftutils/modules/CalculatorManager.java | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) 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"); + } }