File tree Expand file tree Collapse file tree
doublejump-plugin/src/main/java/com/github/imdmk/doublejump/infrastructure/update Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212import org .bukkit .event .EventPriority ;
1313import org .bukkit .event .Listener ;
1414import org .bukkit .event .player .PlayerJoinEvent ;
15+ import org .jetbrains .annotations .NotNull ;
1516import org .panda_lang .utilities .inject .annotations .Inject ;
1617
1718import java .util .logging .Level ;
@@ -55,7 +56,7 @@ void onPlayerJoin(PlayerJoinEvent event) {
5556 }
5657 }
5758
58- private void checkForUpdate (Player player ) {
59+ private void checkForUpdate (@ NotNull Player player ) {
5960 try {
6061 GitCheckResult result = this .updateService .check ();
6162 if (result .isUpToDate ()) {
@@ -70,7 +71,7 @@ private void checkForUpdate(Player player) {
7071 }
7172 }
7273
73- private void sendNotice (Player player , Notice notice ) {
74+ private void sendNotice (@ NotNull Player player , @ NotNull Notice notice ) {
7475 this .messageService .create ()
7576 .notice (notice )
7677 .placeholder ("{UPDATE_CHECK_INTERVAL}" , DurationUtil .format (this .pluginConfiguration .updateInterval ))
You can’t perform that action at this time.
0 commit comments