Updated Docs, and Cortections

This commit is contained in:
Brian Neumann-Fopiano
2026-08-08 00:29:48 -06:00
parent c40e1cf152
commit 506787f51a
70 changed files with 9485 additions and 3050 deletions
@@ -46,7 +46,10 @@ import org.bukkit.plugin.messaging.PluginMessageListener;
import java.util.UUID;
public class IrisProtocolService implements IrisService, PluginMessageListener, IrisServerTransport {
private static final long SERVER_CAPABILITIES = IrisProtocol.CAPABILITY_PREGEN | IrisProtocol.CAPABILITY_VISION | IrisProtocol.CAPABILITY_CURSOR;
private static final long SERVER_CAPABILITIES = IrisProtocol.CAPABILITY_PREGEN
| IrisProtocol.CAPABILITY_VISION
| IrisProtocol.CAPABILITY_CURSOR
| IrisProtocol.CAPABILITY_STUDIO;
private static final int DIMENSION_SYNC_RETRY_TICKS = 20;
private static final int DIMENSION_SYNC_MAX_ATTEMPTS = 15;
@@ -9,6 +9,9 @@ authors: [ cyberpwn, NextdoorPsycho, Vatuu ]
website: VolmitSoftware.com
description: More than a Dimension!
permissions:
iris.all:
description: Allows use of the full /iris command tree (worlds, studio, pregen, packs, developer tools).
default: op
iris.treefeller:
description: Allows survival players to fell Iris-managed trees with an axe.
default: op
@@ -20,12 +20,15 @@ softdepend:
- WorldEdit
loadbefore: [ Multiverse-Core ]
authors: [ cyberpwn, NextdoorPsycho, Vatuu ]
website: VolmitSoftware.com
description: More than a Dimension!
website: VolmitSoftware.com
description: More than a Dimension!
commands:
iris:
aliases: [ ir, irs ]
permissions:
iris.all:
description: Allows use of the full /iris command tree (worlds, studio, pregen, packs, developer tools).
default: op
iris.treefeller:
description: Allows survival players to fell Iris-managed trees with an axe.
default: op
@@ -56,7 +56,10 @@ public class PaperPluginMetadataTest {
assertTrue(metadata.contains("folia-supported: true"));
assertTrue(metadata.contains("load: STARTUP"));
assertFalse(metadata.contains("commands:"));
assertTrue(metadata.contains("permissions:\n iris.treefeller:\n"
assertTrue(metadata.contains("permissions:\n iris.all:\n"
+ " description: Allows use of the full /iris command tree (worlds, studio, pregen, packs, developer tools).\n"
+ " default: op\n"
+ " iris.treefeller:\n"
+ " description: Allows survival players to fell Iris-managed trees with an axe.\n"
+ " default: op"));
for (String pluginId : JOINED_PLUGIN_IDS) {
@@ -81,6 +84,15 @@ public class PaperPluginMetadataTest {
assertEquals(List.of("ir", "irs"), commands.get("iris").get("aliases"));
assertEquals(BUKKIT_SOFT_DEPEND_IDS, metadata.getSoftDepend());
assertEquals(List.of("Multiverse-Core"), metadata.getLoadBeforePlugins());
Permission all = metadata.getPermissions().stream()
.filter(permission -> "iris.all".equals(permission.getName()))
.findFirst()
.orElse(null);
assertNotNull(all);
assertEquals(
"Allows use of the full /iris command tree (worlds, studio, pregen, packs, developer tools).",
all.getDescription());
assertEquals(PermissionDefault.OP, all.getDefault());
Permission treeFeller = metadata.getPermissions().stream()
.filter(permission -> "iris.treefeller".equals(permission.getName()))
.findFirst()
@@ -0,0 +1,21 @@
package art.arcane.iris.core.service;
import art.arcane.iris.spi.protocol.IrisProtocol;
import org.junit.Test;
import java.lang.reflect.Field;
import static org.junit.Assert.assertEquals;
public class IrisProtocolServiceCapabilitiesTest {
@Test
public void advertisesEveryServerFeatureThatSendsProtocolFrames() throws Exception {
Field field = IrisProtocolService.class.getDeclaredField("SERVER_CAPABILITIES");
field.setAccessible(true);
assertEquals(IrisProtocol.CAPABILITY_PREGEN
| IrisProtocol.CAPABILITY_VISION
| IrisProtocol.CAPABILITY_CURSOR
| IrisProtocol.CAPABILITY_STUDIO, field.getLong(null));
}
}