Classloader doesnt like multithreading... #146
@ -19,10 +19,8 @@
|
|||||||
|
|
||||||
package de.steamwar.bausystem.world;
|
package de.steamwar.bausystem.world;
|
||||||
|
|
||||||
import de.steamwar.bausystem.BauSystem;
|
|
||||||
import de.steamwar.sql.Schematic;
|
import de.steamwar.sql.Schematic;
|
||||||
import de.steamwar.sql.SchematicType;
|
import de.steamwar.sql.SchematicType;
|
||||||
import org.bukkit.Bukkit;
|
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.player.PlayerJoinEvent;
|
import org.bukkit.event.player.PlayerJoinEvent;
|
||||||
@ -36,7 +34,6 @@ public class ClipboardListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onLogin(PlayerJoinEvent e){
|
public void onLogin(PlayerJoinEvent e){
|
||||||
Bukkit.getScheduler().runTaskAsynchronously(BauSystem.getPlugin(), () -> {
|
|
||||||
try {
|
try {
|
||||||
Schematic schematic = Schematic.getSchemFromDB(CLIPBOARD_SCHEMNAME, e.getPlayer().getUniqueId());
|
Schematic schematic = Schematic.getSchemFromDB(CLIPBOARD_SCHEMNAME, e.getPlayer().getUniqueId());
|
||||||
if(schematic != null){
|
if(schematic != null){
|
||||||
@ -45,7 +42,6 @@ public class ClipboardListener implements Listener {
|
|||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
//ignore cause players do all kind of stuff with schematics.... like massively oversized schems
|
//ignore cause players do all kind of stuff with schematics.... like massively oversized schems
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren