Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
FPlayer: add null player check for setStreamer method
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Aug 6, 2023
1 parent 7194984 commit 9f4754e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/flectone/misc/entity/FPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public boolean isOnline() {
}

public void setStreamer() {
if(player == null) return;
this.isStreamer = player.hasPermission("flectonechat.stream");
if (isStreamer) setStreaming(false);
else this.streamPrefix = "";
Expand Down

0 comments on commit 9f4754e

Please sign in to comment.