Maxqia / PoreRT

[Abandoned] Run Bukkit plugins on Sponge natively! (Batteries now included)
Other
32 stars 23 forks source link

[WIP] Skript Compatibility #20

Open skmedix opened 7 years ago

skmedix commented 7 years ago

I'll keep this issue up to date, and I'll add more features to the list in next coming days.

Tested with: Skript - dev23 skAliases - 2.0.5 PoreRT - 1.11 build 112 SpongeForge - 1.11-2195-6.0.0-BETA-2004 Forge - 1.11-13.19.1.2199


How to reproduce:

  1. Install server with Forge, SpongeForge and PoreRT
  2. Download and place latest Skript in folder plugins
  3. (Optional) Make folder Skript in plugins if it doesn't exist
  4. Download and place aliases-english.sk in created folder
  5. (Optional) Create folder scripts in Skript folder if it doesn't exist
  6. Download problematic skript and place it in folder plugins/Skript/scripts/
  7. Run server.

    Tested features:

    • [x] Enabling skripts
    • [ ] Disabling skripts - Error (Problem with guava)
    • [ ] Reloading skripts - Error (Problem with guava)

Effects:

Events:

Types: TODO

I'll add more features to the list later, most of them are causing error with MaterialConverter like above.

Maxqia commented 7 years ago

No such field def error probably caused by not updated Sponge version. ItemTypes.AIR was added "recently". And for setOp see here : https://github.com/Maxqia/PoreRT/blob/ed10cae51e66a51fcc46de0d1b03e7d911ac970f/src/main/java/blue/lapis/pore/impl/permissions/PorePermissible.java#L64

skmedix commented 7 years ago

Not implementing setOp makes sense, I think that option is not necessary. Also I've made a small update of the issue. (Most of events doesn't fire any error or message)

Edit: Because most of them are not registered or even implemented, I get it.

Maxqia commented 7 years ago

Implementing events are a royal pain in the butt, so I'd be fine if you just took them from Craftbukkit and turned them into mixins (e.g https://github.com/Maxqia/PoreRT/blob/master/src/main/java/blue/lapis/pore/mixin/network/MixinNetHandlerPlayServer.java), also apparently SpongeForge didn't update the SpongeAPI for the ItemTypes.AIR update until 1.11.2 :P

skmedix commented 7 years ago

I'll look into that.

bensku commented 7 years ago

Is there anything which I (as Skript maintainer) could do to improve Pore compatibility?

Maxqia commented 7 years ago

Probably not from the Skript side of things :P