mstats-spigot/README.md

30 lines
548 B
Markdown
Raw Normal View History

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
```
2025-01-05 11:10:55 +01:00
In `JavaPlugin` class:
2024-12-07 14:33:28 +01:00
```java
2024-12-07 18:08:10 +01:00
import eu.m724.mstats.MStatsPlugin;
2024-12-07 14:33:28 +01:00
2025-01-05 11:10:55 +01:00
public class MyPlugin extends MStatsPlugin { // instead of JavaPlugin
2024-12-07 14:33:28 +01:00
@Override
public void onEnable() {
2025-01-05 11:10:55 +01:00
// ... your onEnable code ...
2024-12-07 18:08:10 +01:00
mStats(1); // Replace 1 of course with your plugin ID
2024-12-07 14:33:28 +01:00
}
}
```