Skip to content

Commit

Permalink
Remove leftover code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed May 19, 2024
1 parent 25f7ad7 commit b374256
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@
import com.mrbysco.dailydadserver.platform.Services;
import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component;
import net.minecraft.network.chat.MutableComponent;
import net.minecraft.world.entity.player.Player;
import org.jetbrains.annotations.Nullable;


public class JokeHandler {
private static MutableComponent joke = null;

public static void onLoggedIn(@Nullable Player player) {
if (player != null) {
Services.PLATFORM.getJokeAsync((joke, component) -> {
player.sendSystemMessage(Component.literal("<DailyDad> ").withStyle(ChatFormatting.GOLD).append(component));
});
//Reset
joke = null;
}
}

Expand All @@ -26,8 +21,6 @@ public static void onPlayerRespawn(Player player, boolean endConquered) {
Services.PLATFORM.getJokeAsync((joke, component) -> {
player.sendSystemMessage(Component.literal("<DailyDad> ").withStyle(ChatFormatting.GOLD).append(component));
});
//Reset
joke = null;
}
}
}

0 comments on commit b374256

Please sign in to comment.