Print stack trace when we fail to register entity

This commit is contained in:
SeanOMik 2020-09-09 22:24:14 -05:00
parent 582a675185
commit e25c515d64
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
4 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,7 @@ public class NMSInterface_1_14_R1 implements NMSInterface {
Bukkit.getServer().getConsoleSender().sendMessage(Utils.getPrefix() + ChatColor.GREEN + LanguageConfig.getSuccessReplaced());
} catch (Exception e) {
Bukkit.getServer().getConsoleSender().sendMessage(Utils.getPrefix() + ChatColor.RED + LanguageConfig.getFailureReplace());
e.printStackTrace();
}
}

View File

@ -37,6 +37,7 @@ public class NMSInterface_1_15_R1 implements NMSInterface {
Bukkit.getServer().getConsoleSender().sendMessage(Utils.getPrefix() + ChatColor.GREEN + LanguageConfig.getSuccessReplaced());
} catch (Exception e) {
Bukkit.getServer().getConsoleSender().sendMessage(Utils.getPrefix() + ChatColor.RED + LanguageConfig.getFailureReplace());
e.printStackTrace();
}
}

View File

@ -38,6 +38,7 @@ public class NMSInterface_1_16_R1 implements NMSInterface {
Bukkit.getServer().getConsoleSender().sendMessage(Utils.getPrefix() + ChatColor.GREEN + LanguageConfig.getSuccessReplaced());
} catch (Exception e) {
Bukkit.getServer().getConsoleSender().sendMessage(Utils.getPrefix() + ChatColor.RED + LanguageConfig.getFailureReplace());
e.printStackTrace();
}
}

View File

@ -37,6 +37,7 @@ public class NMSInterface_1_16_R2 implements NMSInterface {
Bukkit.getServer().getConsoleSender().sendMessage(Utils.getPrefix() + ChatColor.GREEN + LanguageConfig.getSuccessReplaced());
} catch (Exception e) {
Bukkit.getServer().getConsoleSender().sendMessage(Utils.getPrefix() + ChatColor.RED + LanguageConfig.getFailureReplace());
e.printStackTrace();
}
}