mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-12-18 15:47:46 +01:00
Update unsupported software reasons, fix spaces
This commit is contained in:
parent
0ba0736b68
commit
dccbefbea0
@ -199,22 +199,26 @@ public abstract class AbstractFabricPlatform implements ViaPlatform<UUID> {
|
|||||||
return platformSpecific;
|
return platformSpecific;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final Collection<UnsupportedSoftware> getUnsupportedSoftwareClasses() {
|
public final Collection<UnsupportedSoftware> getUnsupportedSoftwareClasses() {
|
||||||
List<UnsupportedSoftware> list = new ArrayList<>(ViaPlatform.super.getUnsupportedSoftwareClasses());
|
List<UnsupportedSoftware> list = new ArrayList<>(ViaPlatform.super.getUnsupportedSoftwareClasses());
|
||||||
list.add(new UnsupportedPlugin.Builder().name("software to mess with message signing").reason(UnsupportedSoftwareReasons.SECURE_CHAT_BYPASS_EXPLOITABLE)
|
list.add(new UnsupportedPlugin.Builder().name("gaslight/guardian").reason(UnsupportedSoftwareReasons.SELF_INCRIMINATION)
|
||||||
.addPlugin("guardian").addPlugin("gaslight").addPlugin("nochatreports").build());
|
.addPlugin("guardian").addPlugin("gaslight").build());
|
||||||
return Collections.unmodifiableList(list);
|
list.add(new UnsupportedPlugin.Builder().name("NoChatReports").reason(UnsupportedSoftwareReasons.NCR)
|
||||||
}
|
.addPlugin("nochatreports").build());
|
||||||
|
return Collections.unmodifiableList(list);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final boolean hasPlugin(String name) {
|
public final boolean hasPlugin(String name) {
|
||||||
return FabricLoader.getInstance().isModLoaded(name);
|
return FabricLoader.getInstance().isModLoaded(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final class UnsupportedSoftwareReasons {
|
private static final class UnsupportedSoftwareReasons {
|
||||||
|
|
||||||
private static final String SECURE_CHAT_BYPASS_EXPLOITABLE = "By using these kind of mods, at best you mess up chat formatting, " +
|
private static final String SELF_INCRIMINATION = "By using these kind of mods, at best you create fishy context or silly reports, " +
|
||||||
"at worst you open yourself up to be incriminated or end up incrimating yourself when writing messages or reporting another player.";
|
"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.";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user