Fixes name apply w/ pom changes
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.destroystokyo.paper</groupId>
|
||||
<artifactId>paper</artifactId>
|
||||
<artifactId>akarin</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.12.2-R0.1-SNAPSHOT</version>
|
||||
<name>Paper</name>
|
||||
<url>https://github.com/PaperMC/Paper</url>
|
||||
<name>Akarin</name>
|
||||
<url>https://github.com/Akarin-project/Akarin</url>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
@@ -2,12 +2,13 @@ package io.akarin.server.mixin.core;
|
||||
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Mutable;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
|
||||
@Mixin(value = CraftServer.class, remap = false)
|
||||
public class MixinCraftServer {
|
||||
@Shadow @Mutable @Final private final String serverName = "Akarin"; // Paper -> Akarin
|
||||
@Overwrite
|
||||
public String getName() {
|
||||
return "Akarin";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ import com.destroystokyo.paper.Metrics.CustomChart;
|
||||
@Mixin(value = Metrics.class, remap = false)
|
||||
public class MixinMetrics {
|
||||
// The url to which the data is sent - bukkit/Torch (keep our old name)
|
||||
@Shadow @Mutable @Final public static String URL = "https://bStats.org/submitData/bukkit";
|
||||
@Shadow @Mutable @Final public final static String URL = "https://bStats.org/submitData/bukkit";
|
||||
|
||||
// The name of the server software
|
||||
@Shadow @Final private String name;
|
||||
@@ -57,7 +57,6 @@ public class MixinMetrics {
|
||||
int onlineMode = Bukkit.getOnlineMode() ? 1 : 0;
|
||||
String bukkitVersion = org.bukkit.Bukkit.getVersion();
|
||||
bukkitVersion = bukkitVersion.substring(bukkitVersion.indexOf("MC: ") + 4, bukkitVersion.length() - 1);
|
||||
LogWrapper.logger.warn("Akarin debug: " + URL);
|
||||
|
||||
JSONObject data = new JSONObject();
|
||||
data.put("playerAmount", playerAmount);
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
"MixinMetrics",
|
||||
"MixinPaperConfig",
|
||||
"MixinCraftServer",
|
||||
"MixinVersionCommand",
|
||||
"MixinMinecraftServer"
|
||||
]
|
||||
|
||||
Submodule work/Paper updated: caedc8f278...e59eb37e0e
Reference in New Issue
Block a user