Remove ncr warn (#206)

* Remove warning for NoChatReports, fix typo
The warning is due to an old vulnerability of NCR

* fix some space issue
This commit is contained in:
creeper123123321 2022-10-21 06:11:18 -03:00 committed by GitHub
parent 8e61509140
commit 7622f73a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 154 additions and 154 deletions

4
.editorconfig Normal file
View File

@ -0,0 +1,4 @@
root = true
[*.java]
indent_style = space

View File

@ -204,8 +204,6 @@ public abstract class AbstractFabricPlatform implements ViaPlatform<UUID> {
List<UnsupportedSoftware> list = new ArrayList<>(ViaPlatform.super.getUnsupportedSoftwareClasses());
list.add(new UnsupportedPlugin.Builder().name("gaslight/guardian").reason(UnsupportedSoftwareReasons.SELF_INCRIMINATION)
.addPlugin("guardian").addPlugin("gaslight").build());
list.add(new UnsupportedPlugin.Builder().name("NoChatReports").reason(UnsupportedSoftwareReasons.NCR)
.addPlugin("nochatreports").build());
return Collections.unmodifiableList(list);
}
@ -215,10 +213,8 @@ public abstract class AbstractFabricPlatform implements ViaPlatform<UUID> {
}
private static final class UnsupportedSoftwareReasons {
private static final String SELF_INCRIMINATION = "By using these kind of mods, at best you create fishy context or silly reports, " +
"at worst you end up incrimating yourself when writing messages or reporting another player.";
private static final String NCR = "Due to a history of breaking message formatting and creating other issues related to chat handling " +
"(some still present), we suggest you find alternatives to this mod.";
private static final String SELF_INCRIMINATION = "By using these proof-of-concept TESTING mods, " +
"at best you create fishy context or silly reports, " +
"at worst you end up incriminating yourself when writing messages or reporting another player.";
}
}