Refactor for "better" error handling
Dieser Commit ist enthalten in:
Ursprung
607ff10250
Commit
f5c34db39e
@ -34,13 +34,13 @@ public class ClipboardListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onLogin(PlayerJoinEvent e){
|
public void onLogin(PlayerJoinEvent e){
|
||||||
|
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){
|
||||||
try {
|
|
||||||
schematic.loadToPlayer(e.getPlayer());
|
schematic.loadToPlayer(e.getPlayer());
|
||||||
} catch (Exception ex) {
|
|
||||||
//ignore
|
|
||||||
}
|
}
|
||||||
|
} catch (Exception ex) {
|
||||||
|
//ignore cause players do all kind of stuff with schematics.... like massively oversized schems
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren