mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2025-01-31 22:51:22 +01:00
parent
68ecd55d8c
commit
c675d34296
@ -202,22 +202,8 @@ public abstract class AbstractFabricPlatform implements ViaPlatform<UUID> {
|
||||
return platformSpecific;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final Collection<UnsupportedSoftware> getUnsupportedSoftwareClasses() {
|
||||
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());
|
||||
return Collections.unmodifiableList(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public final boolean hasPlugin(String name) {
|
||||
return FabricLoader.getInstance().isModLoaded(name);
|
||||
}
|
||||
|
||||
private static final class UnsupportedSoftwareReasons {
|
||||
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.";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user