Actually send error message and break sign on unknown player error

This commit is contained in:
Phoenix616 2019-05-08 00:11:47 +01:00
parent a8c57bc0ab
commit 2907706399
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ public class ErrorMessageSender implements Listener {
String message = null;
switch (event.getOutcome()) {
case UNKNOWN_PLAYER:
message = Messages.PLAYER_NOT_FOUND;
break;
case INVALID_ITEM:
message = Messages.INCORRECT_ITEM_ID;
break;