mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 09:17:36 +01:00
Whoops, testing code
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
80cdeac288
commit
e2327f48c3
@ -185,7 +185,6 @@ public class VersionCommand extends BukkitCommand {
|
|||||||
private void obtainVersion() {
|
private void obtainVersion() {
|
||||||
String version = Bukkit.getVersion();
|
String version = Bukkit.getVersion();
|
||||||
if (version == null) version = "Custom";
|
if (version == null) version = "Custom";
|
||||||
version = "git-Spigot-5ffe41c-89ebcc2";
|
|
||||||
if (version.startsWith("git-Spigot-")) {
|
if (version.startsWith("git-Spigot-")) {
|
||||||
String[] parts = version.substring("git-Spigot-".length()).split("-");
|
String[] parts = version.substring("git-Spigot-".length()).split("-");
|
||||||
int cbVersions = getDistance("craftbukkit", parts[1]);
|
int cbVersions = getDistance("craftbukkit", parts[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user