Fixes name apply w/ pom changes

This commit is contained in:
Sotr
2018-05-25 22:50:53 +08:00
parent 55d0416c5d
commit a8acd29e76
5 changed files with 11 additions and 11 deletions

View File

@@ -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";
}
}

View File

@@ -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);