Skip to content

Commit

Permalink
More command tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Nov 6, 2020
1 parent 0e613fb commit 1a774b9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class BukkitCommand implements CommandExecutor, TabExecutor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public void onEnable() {
}

log.info(ChatColor.AQUA + "Registering commands");
Objects.requireNonNull(getServer().getPluginCommand("pistonmotdbukkit")).setTabCompleter(new BukkitCommand(this));
Objects.requireNonNull(getServer().getPluginCommand("pistonmotdbukkit")).setExecutor(new BukkitCommand(this));
Objects.requireNonNull(getServer().getPluginCommand("pistonmotd")).setTabCompleter(new BukkitCommand(this));
Objects.requireNonNull(getServer().getPluginCommand("pistonmotd")).setExecutor(new BukkitCommand(this));

log.info(ChatColor.AQUA + "Checking for a newer version");
new UpdateChecker(getLogger()).getVersion(version -> new UpdateParser(getDescription().getVersion(), version).parseUpdate(updateType -> {
Expand All @@ -71,7 +71,7 @@ public void onEnable() {
}

log.info(ChatColor.RED + "Current version: " + this.getDescription().getVersion() + " New version: " + version);
log.info(ChatColor.RED + "Download it at: https://www.spigotmc.org/resources/80567");
log.info(ChatColor.RED + "Download it at: https://www.spigotmc.org/resources/80567/updates");
}
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import org.bukkit.util.StringUtil;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class BungeeCommand extends Command implements TabExecutor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void onEnable() {
}

log.info(ChatColor.RED + "Current version: " + this.getDescription().getVersion() + " New version: " + version);
log.info(ChatColor.RED + "Download it at: https://www.spigotmc.org/resources/80567");
log.info(ChatColor.RED + "Download it at: https://www.spigotmc.org/resources/80567/updates");
}
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void onServerStart(GameStartedServerEvent event) {
}

log.info(ChatColor.RED + "Current version: " + container.getVersion().get() + " New version: " + version);
log.info(ChatColor.RED + "Download it at: https://www.spigotmc.org/resources/80567");
log.info(ChatColor.RED + "Download it at: https://ore.spongepowered.org/AlexProgrammerDE/PistonMOTD/versions");
}
}));
}
Expand Down

0 comments on commit 1a774b9

Please sign in to comment.