runecraft: Merge nested if statements

This commit is contained in:
sdburns1998
2019-07-07 18:27:15 +02:00
parent 34fad662dc
commit 8f3435efd3

View File

@@ -206,12 +206,9 @@ public class RunecraftPlugin extends Plugin
return; return;
} }
if (this.degradingNotification) if (this.degradingNotification && event.getMessage().contains(POUCH_DECAYED_MESSAGE))
{ {
if (event.getMessage().contains(POUCH_DECAYED_MESSAGE)) notifier.notify(POUCH_DECAYED_NOTIFICATION_MESSAGE);
{
notifier.notify(POUCH_DECAYED_NOTIFICATION_MESSAGE);
}
} }
} }