mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-22 02:08:27 +01:00
Finalize Pre-Release 4
This commit is contained in:
parent
35c2e43192
commit
c1a35ff266
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -2,4 +2,4 @@ Manifest-Version: 1.0
|
||||
Class-Path: BungeeCord.jar Waterfall.jar
|
||||
Main-Class: net.ME1312.SubServers.Bungee.Launch
|
||||
Implementation-Title: SubServers.Bungee
|
||||
Specification-Title: 18w27a
|
||||
Specification-Title: 18w29j
|
||||
|
@ -41,9 +41,9 @@ public final class SubCommand extends CommandX {
|
||||
protected static NamedContainer<SubCommand, CommandX> newInstance(SubPlugin plugin, String command) {
|
||||
NamedContainer<SubCommand, CommandX> cmd = new NamedContainer<>(new SubCommand(plugin, command), null);
|
||||
CommandX now = cmd.name();
|
||||
if (plugin.api.getGameVersion()[plugin.api.getGameVersion().length - 1].compareTo(new Version("1.13")) >= 0) {
|
||||
now = new net.ME1312.SubServers.Bungee.Library.Compatibility.v1_13.CommandX(cmd.name());
|
||||
}
|
||||
//if (plugin.api.getGameVersion()[plugin.api.getGameVersion().length - 1].compareTo(new Version("1.13")) >= 0) { // TODO Future Command Validator API?
|
||||
// now = new net.ME1312.SubServers.Bungee.Library.Compatibility.v1_13.CommandX(cmd.name());
|
||||
//}
|
||||
cmd.set(now);
|
||||
return cmd;
|
||||
}
|
||||
@ -542,9 +542,9 @@ public final class SubCommand extends CommandX {
|
||||
protected static NamedContainer<BungeeServer, CommandX> newInstance(SubPlugin plugin, String command) {
|
||||
NamedContainer<BungeeServer, CommandX> cmd = new NamedContainer<>(new BungeeServer(plugin, command), null);
|
||||
CommandX now = cmd.name();
|
||||
if (plugin.api.getGameVersion()[plugin.api.getGameVersion().length - 1].compareTo(new Version("1.13")) >= 0) {
|
||||
now = new net.ME1312.SubServers.Bungee.Library.Compatibility.v1_13.CommandX(cmd.name());
|
||||
}
|
||||
//if (plugin.api.getGameVersion()[plugin.api.getGameVersion().length - 1].compareTo(new Version("1.13")) >= 0) { // TODO Future Command Validator API?
|
||||
// now = new net.ME1312.SubServers.Bungee.Library.Compatibility.v1_13.CommandX(cmd.name());
|
||||
//}
|
||||
cmd.set(now);
|
||||
return cmd;
|
||||
}
|
||||
|
@ -58,8 +58,8 @@ public final class SubPlugin extends BungeeCord implements Listener {
|
||||
public final SubAPI api = new SubAPI(this);
|
||||
public SubDataServer subdata = null;
|
||||
public SubServer sudo = null;
|
||||
//public static final Version version = Version.fromString("2.13a/pr4");
|
||||
public static final Version version = new Version(Version.fromString("2.13a/pr4"), VersionType.SNAPSHOT, (SubPlugin.class.getPackage().getSpecificationTitle() == null)?"?":SubPlugin.class.getPackage().getSpecificationTitle()); // TODO Snapshot Version
|
||||
public static final Version version = Version.fromString("2.13a/pr4");
|
||||
//public static final Version version = new Version(Version.fromString("2.13a/pr5"), VersionType.SNAPSHOT, (SubPlugin.class.getPackage().getSpecificationTitle() == null)?"?":SubPlugin.class.getPackage().getSpecificationTitle()); // TODO Snapshot Version
|
||||
|
||||
public boolean redis = false;
|
||||
public boolean canSudo = true;
|
||||
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Implementation-Title: SubServers.Client.Bukkit
|
||||
Specification-Title: 18w27a
|
||||
Specification-Title: 18w29j
|
||||
|
@ -275,7 +275,7 @@ public class InternalUIHandler implements UIHandler, Listener {
|
||||
} else if (item.equals(plugin.api.getLang("SubServers", "Interface.Generic.Back"))) {
|
||||
player.closeInventory();
|
||||
gui.back();
|
||||
} else if (!item.equals(ChatColor.RESET.toString()) && event.getCurrentItem().getDurability() != 0 && event.getCurrentItem().getDurability() != 8 && !item.equals(plugin.api.getLang("SubServers", "Interface.Server-Menu.No-Servers"))) {
|
||||
} else if (!item.equals(ChatColor.RESET.toString()) && !item.equals(plugin.api.getLang("SubServers", "Interface.Server-Menu.No-Servers"))) {
|
||||
player.closeInventory();
|
||||
String obj;
|
||||
if (event.getCurrentItem().getItemMeta().getLore() != null && event.getCurrentItem().getItemMeta().getLore().size() > 0 && event.getCurrentItem().getItemMeta().getLore().get(0).startsWith(ChatColor.GRAY.toString())) {
|
||||
|
@ -68,9 +68,10 @@ public class InternalUIRenderer extends UIRenderer {
|
||||
if (plugin.api.getGameVersion().compareTo(new Version("1.13")) < 0) {
|
||||
return ItemStack.class.getConstructor(Material.class, int.class, short.class).newInstance(Material.valueOf(material), 1, damage);
|
||||
} else {
|
||||
return new ItemStack(Material.valueOf(name), 1);
|
||||
return new ItemStack((Material) Material.class.getMethod("getMaterial", String.class, boolean.class).invoke(null, name, false), 1);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return new ItemStack(Material.AIR);
|
||||
}
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ import java.util.zip.GZIPOutputStream;
|
||||
*
|
||||
* Check out https://bStats.org/ to learn more about bStats!
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public class Metrics {
|
||||
|
||||
static {
|
||||
|
@ -46,8 +46,8 @@ public final class SubPlugin extends JavaPlugin {
|
||||
|
||||
public SubPlugin() {
|
||||
super();
|
||||
//version = Version.fromString(getDescription().getVersion());
|
||||
version = new Version(Version.fromString(getDescription().getVersion()), VersionType.SNAPSHOT, (SubPlugin.class.getPackage().getSpecificationTitle() == null)?"?":SubPlugin.class.getPackage().getSpecificationTitle()); // TODO Snapshot Version
|
||||
version = Version.fromString(getDescription().getVersion());
|
||||
//version = new Version(Version.fromString(getDescription().getVersion()), VersionType.SNAPSHOT, (SubPlugin.class.getPackage().getSpecificationTitle() == null)?"?":SubPlugin.class.getPackage().getSpecificationTitle()); // TODO Snapshot Version
|
||||
}
|
||||
|
||||
/**
|
||||
|
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: net.ME1312.SubServers.Host.ExHost
|
||||
Implementation-Title: SubServers.Host
|
||||
Specification-Title: 18w27a
|
||||
Specification-Title: 18w29j
|
||||
|
@ -54,8 +54,8 @@ public final class ExHost {
|
||||
public SubDataClient subdata = null;
|
||||
|
||||
public final SubAPI api = new SubAPI(this);
|
||||
//public static final Version version = Version.fromString("2.13a/pr4");
|
||||
public static final Version version = new Version(Version.fromString("2.13a/pr4"), VersionType.SNAPSHOT, (ExHost.class.getPackage().getSpecificationTitle() == null)?"?":ExHost.class.getPackage().getSpecificationTitle()); // TODO Snapshot Version
|
||||
public static final Version version = Version.fromString("2.13a/pr4");
|
||||
//public static final Version version = new Version(Version.fromString("2.13a/pr5"), VersionType.SNAPSHOT, (ExHost.class.getPackage().getSpecificationTitle() == null)?"?":ExHost.class.getPackage().getSpecificationTitle()); // TODO Snapshot Version
|
||||
|
||||
private ConsoleReader jline;
|
||||
private boolean running = false;
|
||||
|
Binary file not shown.
@ -2,4 +2,4 @@ Manifest-Version: 1.0
|
||||
Class-Path: BungeeCord.jar Waterfall.jar
|
||||
Main-Class: net.ME1312.SubServers.Sync.Launch
|
||||
Implementation-Title: SubServers.Sync
|
||||
Specification-Title: 18w27a
|
||||
Specification-Title: 18w29j
|
||||
|
@ -41,9 +41,9 @@ public final class SubCommand extends CommandX {
|
||||
protected static NamedContainer<SubCommand, CommandX> newInstance(SubPlugin plugin, String command) {
|
||||
NamedContainer<SubCommand, CommandX> cmd = new NamedContainer<>(new SubCommand(plugin, command), null);
|
||||
CommandX now = cmd.name();
|
||||
if (plugin.api.getGameVersion()[plugin.api.getGameVersion().length - 1].compareTo(new Version("1.13")) >= 0) {
|
||||
now = new net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.CommandX(cmd.name());
|
||||
}
|
||||
//if (plugin.api.getGameVersion()[plugin.api.getGameVersion().length - 1].compareTo(new Version("1.13")) >= 0) { // TODO Future Command Validator API?
|
||||
// now = new net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.CommandX(cmd.name());
|
||||
//}
|
||||
cmd.set(now);
|
||||
return cmd;
|
||||
}
|
||||
@ -535,9 +535,9 @@ public final class SubCommand extends CommandX {
|
||||
protected static NamedContainer<BungeeServer, CommandX> newInstance(SubPlugin plugin, String command) {
|
||||
NamedContainer<BungeeServer, CommandX> cmd = new NamedContainer<>(new BungeeServer(plugin, command), null);
|
||||
CommandX now = cmd.name();
|
||||
if (plugin.api.getGameVersion()[plugin.api.getGameVersion().length - 1].compareTo(new Version("1.13")) >= 0) {
|
||||
now = new net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.CommandX(cmd.name());
|
||||
}
|
||||
//if (plugin.api.getGameVersion()[plugin.api.getGameVersion().length - 1].compareTo(new Version("1.13")) >= 0) { // TODO Future Command Validator API?
|
||||
// now = new net.ME1312.SubServers.Sync.Library.Compatibility.v1_13.CommandX(cmd.name());
|
||||
//}
|
||||
cmd.set(now);
|
||||
return cmd;
|
||||
}
|
||||
|
@ -48,8 +48,8 @@ public final class SubPlugin extends BungeeCord implements Listener {
|
||||
public boolean redis = false;
|
||||
public final SubAPI api = new SubAPI(this);
|
||||
public SubDataClient subdata = null;
|
||||
//public static final Version version = Version.fromString("2.13a/pr4");
|
||||
public static final Version version = new Version(Version.fromString("2.13a/pr4"), VersionType.SNAPSHOT, (SubPlugin.class.getPackage().getSpecificationTitle() == null)?"?":SubPlugin.class.getPackage().getSpecificationTitle()); // TODO Snapshot Version
|
||||
public static final Version version = Version.fromString("2.13a/pr4");
|
||||
//public static final Version version = new Version(Version.fromString("2.13a/pr5"), VersionType.SNAPSHOT, (SubPlugin.class.getPackage().getSpecificationTitle() == null)?"?":SubPlugin.class.getPackage().getSpecificationTitle()); // TODO Snapshot Version
|
||||
|
||||
public final boolean isPatched;
|
||||
public long lastReload = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user