mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-25 19:56:24 +01:00
Fix '/Sub Delete' for internally hosted servers
This commit is contained in:
parent
98187137c4
commit
21dbe876d4
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.2j
|
||||
Specification-Version: 1
|
||||
Specification-Version: 0
|
||||
|
@ -139,11 +139,11 @@ public class InternalHost extends Host {
|
||||
public boolean deleteSubServer(UUID player, String name) throws InterruptedException {
|
||||
if (Util.isNull(name)) throw new NullPointerException();
|
||||
|
||||
File from = new File(getDirectory(), servers.get(name.toLowerCase()).getDirectory());
|
||||
if (removeSubServer(player, name)) {
|
||||
new Thread(() -> {
|
||||
UniversalFile to = new UniversalFile(plugin.dir, "SubServers:Recently Deleted:" + name.toLowerCase());
|
||||
try {
|
||||
File from = new File(getDirectory(), servers.get(name.toLowerCase()).getDirectory());
|
||||
if (from.exists()) {
|
||||
System.out.println("SubServers > Removing Files...");
|
||||
if (to.exists()) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: 'SubServers-Client-Bukkit'
|
||||
main: 'net.ME1312.SubServers.Client.Bukkit.SubPlugin'
|
||||
version: '2.11.2e'
|
||||
version: '2.11.2f'
|
||||
authors: [ME1312]
|
||||
softdepend: [TitleManager]
|
||||
website: 'http://www.ME1312.net/'
|
||||
|
Loading…
Reference in New Issue
Block a user