Correction d'un NullPointerException
This commit is contained in:
parent
4f51118a8a
commit
b82b4a2e4b
@ -53,6 +53,7 @@ public class CommandStaff extends AbstractCommandExecutor {
|
|||||||
String message = getLastParam(args, 1);
|
String message = getLastParam(args, 1);
|
||||||
|
|
||||||
staffManager.addWaitingPlayer(player, message);
|
staffManager.addWaitingPlayer(player, message);
|
||||||
|
wp = staffManager.getWaitingPlayer(player);
|
||||||
sender.sendMessage(ChatColor.GREEN+"Votre ticket a été envoyé :)");
|
sender.sendMessage(ChatColor.GREEN+"Votre ticket a été envoyé :)");
|
||||||
displayTicket(sender, wp, false);
|
displayTicket(sender, wp, false);
|
||||||
sender.sendMessage(ChatColor.RED+"Faites "+ChatColor.GRAY+"/"+alias+ChatColor.RED+" pour voir les commandes disponibles");
|
sender.sendMessage(ChatColor.RED+"Faites "+ChatColor.GRAY+"/"+alias+ChatColor.RED+" pour voir les commandes disponibles");
|
||||||
|
Loading…
Reference in New Issue
Block a user