mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-25 11:46:50 +01:00
SubServers v2.11.2l
This commit is contained in:
parent
2b1f355a6c
commit
e238add62c
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
|
||||
Main-Class: net.ME1312.SubServers.Bungee.Launch
|
||||
Implementation-Version: 2.11.2l
|
||||
Specification-Version: 2
|
||||
Specification-Version: 0
|
||||
|
@ -254,9 +254,9 @@ public class InternalSubCreator extends SubCreator {
|
||||
|
||||
private void generateClient(File dir, String name, ServerType type) throws IOException {
|
||||
if (type == ServerType.SPIGOT) {
|
||||
new UniversalFile(dir, "plugins:SubServers-Client-Bukkit").mkdirs();
|
||||
new UniversalFile(dir, "plugins:SubServers-Client").mkdirs();
|
||||
Util.copyFromJar(SubPlugin.class.getClassLoader(), "net/ME1312/SubServers/Bungee/Library/Files/bukkit.jar", new UniversalFile(dir, "plugins:SubServers.Client.jar").getPath());
|
||||
YAMLConfig config = new YAMLConfig(new UniversalFile(dir, "plugins:Subservers-Client-Bukkit:config.yml"));
|
||||
YAMLConfig config = new YAMLConfig(new UniversalFile(dir, "plugins:Subservers-Client:config.yml"));
|
||||
YAMLSection settings = new YAMLSection();
|
||||
settings.set("Version", "2.11.2a+");
|
||||
settings.set("Ingame-Access", true);
|
||||
|
Binary file not shown.
@ -29,7 +29,7 @@ public final class SubCommand extends Command implements TabExecutor {
|
||||
protected SubCommand(SubPlugin plugin, String command) {
|
||||
super(command);
|
||||
this.plugin = plugin;
|
||||
this.label = "/" + command;
|
||||
this.label = '/' + command;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -14,6 +14,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||
import java.io.*;
|
||||
import java.net.InetAddress;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
|
||||
/**
|
||||
* SubServers Client Plugin Class
|
||||
@ -25,7 +26,7 @@ public final class SubPlugin extends JavaPlugin {
|
||||
|
||||
public UIHandler gui = null;
|
||||
public final Version version;
|
||||
public final Version bversion = new Version(2);
|
||||
public final Version bversion = null;
|
||||
public final SubAPI api = new SubAPI(this);
|
||||
|
||||
public SubPlugin() {
|
||||
@ -41,6 +42,10 @@ public final class SubPlugin extends JavaPlugin {
|
||||
try {
|
||||
Bukkit.getLogger().info("SubServers > Loading SubServers v" + version.toString() + " Libraries... ");
|
||||
getDataFolder().mkdirs();
|
||||
if (new UniversalFile(getDataFolder().getParentFile(), "SubServers-Client:config.yml").exists()) {
|
||||
Files.move(new UniversalFile(getDataFolder().getParentFile(), "SubServers-Client:config.yml").toPath(), new UniversalFile(getDataFolder(), "config.yml").toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
Util.deleteDirectory(new UniversalFile(getDataFolder().getParentFile(), "SubServers-Client"));
|
||||
}
|
||||
if (!(new UniversalFile(getDataFolder(), "config.yml").exists())) {
|
||||
Util.copyFromJar(SubPlugin.class.getClassLoader(), "config.yml", new UniversalFile(getDataFolder(), "config.yml").getPath());
|
||||
Bukkit.getLogger().info("SubServers > Created ~/plugins/SubServers/config.yml");
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: SubServers-Console
|
||||
main: net.ME1312.SubServers.Console.ConsolePlugin
|
||||
version: 2.11.2a
|
||||
version: 2.11.2b
|
||||
author: ME1312
|
@ -35,7 +35,16 @@ public final class ConsoleWindow implements SubLogFilter {
|
||||
private int findI = 0;
|
||||
private boolean open = false;
|
||||
private SubLogger logger;
|
||||
private boolean[] kpressed = new boolean[65535];
|
||||
private KeyEventDispatcher keys = event -> {
|
||||
switch (event.getID()) {
|
||||
case KeyEvent.KEY_PRESSED:
|
||||
kpressed[event.getKeyCode()] = true;
|
||||
break;
|
||||
case KeyEvent.KEY_RELEASED:
|
||||
kpressed[event.getKeyCode()] = false;
|
||||
break;
|
||||
}
|
||||
if (window.isVisible() && window.isFocused()) {
|
||||
if (event.getID() == KeyEvent.KEY_PRESSED) switch (event.getKeyCode()) {
|
||||
case KeyEvent.VK_UP:
|
||||
@ -55,7 +64,7 @@ public final class ConsoleWindow implements SubLogFilter {
|
||||
break;
|
||||
case KeyEvent.VK_ENTER:
|
||||
if (find.isVisible() && !ifocus)
|
||||
find(true);
|
||||
find(kpressed[KeyEvent.VK_SHIFT] != Boolean.TRUE);
|
||||
break;
|
||||
case KeyEvent.VK_TAB:
|
||||
if (!ifocus) input.requestFocusInWindow();
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user