mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-05-30 13:46:24 +02:00
Add server brand to debugpaste (#4640)
Signed-off-by: Alexander Brandes <mc.cache@web.de>
This commit is contained in:
parent
058983cdd5
commit
b84599b4b3
@ -252,6 +252,11 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl
|
||||
return Bukkit.getVersion();
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NonNull String serverBrand() {
|
||||
return Bukkit.getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation") // Paper deprecation
|
||||
public void onEnable() {
|
||||
|
@ -120,6 +120,14 @@ public interface PlotPlatform<P> extends LocaleHolder {
|
||||
*/
|
||||
@NonNull String serverImplementation();
|
||||
|
||||
/**
|
||||
* Gets the server brand name
|
||||
*
|
||||
* @return server brand
|
||||
* @since TODO
|
||||
*/
|
||||
@NonNull String serverBrand();
|
||||
|
||||
/**
|
||||
* Gets the native server code package prefix.
|
||||
*
|
||||
|
@ -86,7 +86,8 @@ public class DebugPaste extends SubCommand {
|
||||
b.append("# WorldEdit implementation:\n");
|
||||
b.append(PlotSquared.platform().worldEditImplementations()).append("\n\n");
|
||||
b.append("# Server Information\n");
|
||||
b.append("Server Version: ").append(PlotSquared.platform().serverImplementation())
|
||||
b.append("Server Version: ").append(PlotSquared.platform().serverBrand()).append(": ")
|
||||
.append(PlotSquared.platform().serverImplementation()).append("\n")
|
||||
.append("\n");
|
||||
b.append("online_mode: ").append(!Settings.UUID.OFFLINE).append(';')
|
||||
.append(!Settings.UUID.OFFLINE).append('\n');
|
||||
|
Loading…
x
Reference in New Issue
Block a user