2024-12-07 14:33:28 +01:00
|
|
|
### Instructions
|
|
|
|
In `pom.xml`:
|
|
|
|
```xml
|
|
|
|
<dependency>
|
|
|
|
<groupId>eu.m724</groupId>
|
|
|
|
<artifactId>mstats-spigot</artifactId>
|
2024-12-07 18:08:10 +01:00
|
|
|
<version>0.1.0</version>
|
2024-12-07 14:33:28 +01:00
|
|
|
</dependency>
|
|
|
|
```
|
|
|
|
|
|
|
|
In `plugin.yml`:
|
|
|
|
```yaml
|
|
|
|
libraries:
|
2024-12-07 18:08:10 +01:00
|
|
|
- eu.m724:mstats-spigot:0.1.0
|
2024-12-07 14:33:28 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
In main class:
|
|
|
|
|
|
|
|
```java
|
2024-12-07 18:08:10 +01:00
|
|
|
import eu.m724.mstats.MStatsPlugin;
|
2024-12-07 14:33:28 +01:00
|
|
|
|
2024-12-07 18:08:10 +01:00
|
|
|
public class MyPlugin extends MStatsPlugin {
|
2024-12-07 14:33:28 +01:00
|
|
|
@Override
|
|
|
|
public void onEnable() {
|
2024-12-07 18:08:10 +01:00
|
|
|
// It's recommended that this is the last line of onEnable
|
|
|
|
mStats(1); // Replace 1 of course with your plugin ID
|
2024-12-07 14:33:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|