Skip to content

Commit a3655c5

Browse files
Remove references to defunct TARDIS Jenkins
1 parent 122603f commit a3655c5

File tree

6 files changed

+1
-139
lines changed

6 files changed

+1
-139
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ body:
5555
[TARDIS] CoreProtect version: 20.3
5656
[TARDIS] Essentials version: 2.19.3-dev+1-05ce11f
5757
[TARDIS] floodgate version: 2.1.0-SNAPSHOT
58-
[TARDIS] Checking for new TARDIS builds...
59-
[TARDIS] You are 5 builds behind! Type /tadmin update_plugins to update!
6058
```
6159
6260
</details>

src/main/java/me/eccentric_nz/TARDIS/commands/admin/TARDISAdminCommands.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import me.eccentric_nz.TARDIS.enumeration.TardisModule;
2525
import me.eccentric_nz.TARDIS.maze.TARDISMazeBuilder;
2626
import me.eccentric_nz.TARDIS.maze.TARDISMazeGenerator;
27-
import me.eccentric_nz.TARDIS.utility.UpdateTARDISPlugins;
2827
import org.bukkit.Location;
2928
import org.bukkit.block.BlockFace;
3029
import org.bukkit.command.Command;
@@ -86,7 +85,6 @@ public TARDISAdminCommands(TARDIS plugin) {
8685
firstsStr.add("set_size");
8786
firstsStr.add("spawn_abandoned");
8887
firstsStr.add("undisguise");
89-
firstsStr.add("update_plugins");
9088
}
9189

9290
@Override
@@ -123,13 +121,6 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
123121
return true;
124122
}
125123
}
126-
case "update_plugins" -> {
127-
if (!sender.isOp()) {
128-
plugin.getMessenger().message(sender, "You must be a server operator to run this command!");
129-
return true;
130-
}
131-
return new UpdateTARDISPlugins(plugin).fetchFromJenkins(sender);
132-
}
133124
case "maze" -> {
134125
if (sender instanceof Player p) {
135126
Location l = p.getTargetBlock(plugin.getGeneralKeeper().getTransparent(), 16).getRelative(BlockFace.UP).getLocation();

src/main/java/me/eccentric_nz/TARDIS/commands/admin/TARDISAdminTabComplete.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
*/
4040
public class TARDISAdminTabComplete extends TARDISCompleter implements TabCompleter {
4141

42-
private final ImmutableList<String> ROOT_SUBS = ImmutableList.of("add_regions", "arch", "assemble", "clean", "condenser", "config", "convert_database", "create", "decharge", "delete", "disguise", "dispersed", "enter", "find", "list", "make_preset", "maze", "mvimport", "playercount", "prune", "prunelist", "purge", "purge_portals", "recharger", "region_flag", "reload", "repair", "revoke", "set_size", "spawn_abandoned", "undisguise", "update_plugins");
42+
private final ImmutableList<String> ROOT_SUBS = ImmutableList.of("add_regions", "arch", "assemble", "clean", "condenser", "config", "convert_database", "create", "decharge", "delete", "disguise", "dispersed", "enter", "find", "list", "make_preset", "maze", "mvimport", "playercount", "prune", "prunelist", "purge", "purge_portals", "recharger", "region_flag", "reload", "repair", "revoke", "set_size", "spawn_abandoned", "undisguise");
4343
private final ImmutableList<String> ASS_SUBS = ImmutableList.of("clear", "list");
4444
private final ImmutableList<String> COMPASS_SUBS = ImmutableList.of("NORTH", "EAST", "SOUTH", "WEST");
4545
private final ImmutableList<String> ENTITY_SUBS;

src/main/java/me/eccentric_nz/TARDIS/messaging/AdventureComponents.java

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -53,39 +53,6 @@ public static TextComponent getModule(TardisModule module) {
5353
.build();
5454
}
5555

56-
public static TextComponent getJenkinsUpdateReady(int current, int latest) {
57-
return Component.text("There is a new TARDIS build! You are using ", NamedTextColor.RED)
58-
.append(Component.text("#" + current, NamedTextColor.GOLD))
59-
.append(Component.text(", the latest build is ", NamedTextColor.RED))
60-
.append(Component.text("#" + latest, NamedTextColor.GOLD))
61-
.append(Component.text("!", NamedTextColor.RED));
62-
}
63-
64-
public static TextComponent getUpdateCommand() {
65-
return Component.text("Visit ", NamedTextColor.GOLD)
66-
.append(Component.text("http://tardisjenkins.duckdns.org:8080/job/TARDIS/")
67-
.clickEvent(ClickEvent.openUrl("http://tardisjenkins.duckdns.org:8080/job/TARDIS/"))
68-
)
69-
.append(Component.text(" or run the "))
70-
.append(Component.text("'/tardisadmin update_plugins'")
71-
.color(NamedTextColor.AQUA)
72-
.clickEvent(ClickEvent.suggestCommand("/tardisadmin update_plugins"))
73-
)
74-
.append(Component.text(" command"));
75-
}
76-
77-
public static TextComponent getBuildsBehind(int behind) {
78-
return getModule(TardisModule.TARDIS)
79-
.color(NamedTextColor.WHITE)
80-
.append(Component.text("You are "))
81-
.append(Component.text(behind))
82-
.append(Component.text(" builds behind! Type "))
83-
.append(Component.text("/tadmin update_plugins", NamedTextColor.AQUA)
84-
.clickEvent(ClickEvent.suggestCommand("/tadmin update_plugins"))
85-
)
86-
.append(Component.text(" to update!"));
87-
}
88-
8956
public static TextComponent getRequestComehereAccept(String key, String command) {
9057
return Component.text(key, NamedTextColor.AQUA)
9158
.hoverEvent(HoverEvent.showText(Component.text("Click me!")))

src/main/java/me/eccentric_nz/TARDIS/utility/UpdateTARDISPlugins.java

Lines changed: 0 additions & 91 deletions
This file was deleted.

src/main/resources/plugin.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,9 +1199,6 @@ commands:
11991199
undisguise:
12001200
description: Remove a disguise from a player.
12011201
usage: /<command> undisguise [player]
1202-
update_plugins:
1203-
description: Download the latest TARDIS plugin from the Jenkins server. Restart the server to update the plugin.
1204-
usage: /<command> update_plugins
12051202
tardisconfig:
12061203
aliases: tconfig
12071204
description: Set TARDIS configuration options and world inclusion.

0 commit comments

Comments
 (0)