Skip to content

Commit

Permalink
add server name to version field
Browse files Browse the repository at this point in the history
  • Loading branch information
powercasgamer committed Jul 7, 2024
1 parent 6fa6cd1 commit 0835745
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import me.lucko.spark.common.platform.PlatformInfo;

import org.bukkit.Bukkit;
import org.bukkit.Server;

import java.lang.reflect.Field;
Expand All @@ -41,12 +42,12 @@ public Type getType() {

@Override
public String getName() {
return this.server.getName();
return "Bukkit";
}

@Override
public String getVersion() {
return this.server.getVersion();
return Bukkit.getName() + " " + this.server.getVersion();
}

@Override
Expand Down

0 comments on commit 0835745

Please sign in to comment.