mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-25 13:30:08 +00:00
Updated Docs, and Cortections
This commit is contained in:
1 parent
c40e1cf152
commit
506787f51a
70 files changed
+9485
-3050
No files matched your search
@@ -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()
|
||||
|
||||
+21
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user