1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-26 18:10:29 +00:00
CC-Tweaked/buildSrc/src/main/kotlin
Jonathan Coates b3738a7a63
Use permission APIs for the /computercraft command
- Add a generic PermissionRegistry interface. This behaves similarly to
   our ShaderMod interface, searching all providers until it finds a
   compatible one.

   We could just make this part of the platform code instead, but this
   allows us to support multiple systems on Fabric, where things are
   less standardised.

   This interface behaves like a registry, rather than a straight
   `getPermission(node, player)` method, as Forge requires us to list
   our nodes up-front.

 - Add Forge (using the built-in system) and Fabric (using
   fabric-permissions-api) implementations of the above interface.

 - Register permission nodes for our commands, and use those
   instead. This does mean that the permissions check for the root
   /computercraft command now requires enumerating all child
   commands (and so potential does 7 permission lookups), but hopefully
   this isn't too bad in practice.

 - Remove UserLevel.OWNER - we never used this anywhere, and I can't
   imagine we'll want to in the future.
2023-08-27 12:22:40 +01:00
..
cc/tweaked/gradle Fix client tests not running on Forge 2023-07-22 19:40:50 +01:00
net/minecraftforge/gradle/common/util/runs Bump FG and Loom 2023-07-05 20:58:15 +01:00
cc-tweaked.fabric.gradle.kts License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00
cc-tweaked.forge.gradle.kts Use exclusiveContent for our maven 2023-07-02 12:21:03 +01:00
cc-tweaked.gametest.gradle.kts License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00
cc-tweaked.java-convention.gradle.kts Use permission APIs for the /computercraft command 2023-08-27 12:22:40 +01:00
cc-tweaked.kotlin-convention.gradle.kts License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00
cc-tweaked.mod-publishing.gradle.kts Bump CC:T to 1.104.0 2023-06-10 08:55:07 +01:00
cc-tweaked.publishing.gradle.kts Bump CC:T to 1.104.0 2023-06-10 08:55:07 +01:00
cc-tweaked.vanilla.gradle.kts License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00