Merge pull request #545 from CocoTheOwner/noGradientNullSender

Remove the gradient if an error occurs with sender.send
This commit is contained in:
Dan 2021-08-15 06:39:32 -08:00 committed by GitHub
commit d43932a9d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -484,7 +484,7 @@ public class Iris extends VolmitPlugin implements Listener {
sender.sendMessage(string);
} catch (Throwable e) {
try {
System.out.println(string);
System.out.println(instance.getTag() + string.replaceAll("(<([^>]+)>)", ""));
} catch (Throwable ignored1) {
}

View File

@ -71,7 +71,7 @@ public class ResourceLoader<T extends IrisRegistrant> {
this.root = root;
this.folderName = folderName;
loadCache = new KMap<>();
Iris.debug("Loader<" + C.GREEN + resourceTypeName + C.LIGHT_PURPLE + "> created in " + C.RED + "IDM/" + manager.getId() + C.LIGHT_PURPLE + " on " + C.WHITE + manager.getDataFolder().getPath());
Iris.debug("Loader<" + C.GREEN + resourceTypeName + C.LIGHT_PURPLE + "> created in " + C.RED + "IDM/" + manager.getId() + C.LIGHT_PURPLE + " on " + C.GRAY + manager.getDataFolder().getPath());
}
public JSONObject buildSchema() {