Skip to content

Commit

Permalink
doc: add spigot to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
radstevee committed Oct 31, 2024
1 parent b2b697c commit 3a574b9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ public class MyPlugin extends JavaPlugin {
}
```

For Spigot, use the `InjectSpigot` class:
```java
public class MyPlugin extends JavaPlugin {
@Override
public void onEnable() {
InjectSpigot.INSTANCE.registerInjector(new MyEpicHttpInjector());
}
}
```

This will register an HTTP injector which will respond with `Hello, from Minecraft!`
to any HTTP request to the Minecraft port.

Expand All @@ -61,9 +71,12 @@ dependencies {

// Fabric:
include(modImplementation("net.mcbrawls.inject:fabric:VERSION")!!)

// Paper:
implementation("net.mcbrawls.inject:paper:VERSION")

// Spigot:
implementation("net.mcbrawls.inject:spigot:VERSION")
}
```

Expand Down

0 comments on commit 3a574b9

Please sign in to comment.