Fix null pointer in the tutorial when using /tutorial finish
This commit is contained in:
parent
159a5403ac
commit
e014f4fff9
@ -277,6 +277,11 @@ public abstract class Objective<Plugin extends Tutorial, Data extends ObjectiveD
|
|||||||
|
|
||||||
public void displayChatMessages(Player player)
|
public void displayChatMessages(Player player)
|
||||||
{
|
{
|
||||||
|
if (getPlugin().getTutorialSession(player) == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (int i = 0; i < 1; i++)
|
for (int i = 0; i < 1; i++)
|
||||||
{
|
{
|
||||||
UtilPlayer.message(player, "");
|
UtilPlayer.message(player, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user