Make sure that player has McMMOPlayer object before calling API

This commit is contained in:
TfT_02
2014-08-22 13:27:05 -07:00
parent b61c65636b
commit 48d3280e5e
2 changed files with 40 additions and 19 deletions

View File

@@ -0,0 +1,11 @@
package com.gmail.nossr50.api.exceptions;
import org.bukkit.entity.Player;
public class McMMOPlayerNotFoundException extends RuntimeException {
private static final long serialVersionUID = 761917904993202836L;
public McMMOPlayerNotFoundException(Player player) {
super("McMMOPlayer object was not found for: " + player.getName() + " " + player.getUniqueId());
}
}