Fix null pointer in the tutorial when using /tutorial finish

This commit is contained in:
Ben 2016-04-10 16:51:12 +01:00
parent 159a5403ac
commit e014f4fff9
1 changed files with 5 additions and 0 deletions

View File

@ -277,6 +277,11 @@ public abstract class Objective<Plugin extends Tutorial, Data extends ObjectiveD
public void displayChatMessages(Player player)
{
if (getPlugin().getTutorialSession(player) == null)
{
return;
}
for (int i = 0; i < 1; i++)
{
UtilPlayer.message(player, "");