Correction d'un NullPointerException

This commit is contained in:
Marc Baloup 2015-06-29 15:46:43 +02:00
parent 4f51118a8a
commit b82b4a2e4b

View File

@ -53,6 +53,7 @@ public class CommandStaff extends AbstractCommandExecutor {
String message = getLastParam(args, 1);
staffManager.addWaitingPlayer(player, message);
wp = staffManager.getWaitingPlayer(player);
sender.sendMessage(ChatColor.GREEN+"Votre ticket a été envoyé :)");
displayTicket(sender, wp, false);
sender.sendMessage(ChatColor.RED+"Faites "+ChatColor.GRAY+"/"+alias+ChatColor.RED+" pour voir les commandes disponibles");