Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/georgh93/badrabbit

BadRabbit allows to switch the main Plugin class at load time
https://github.com/georgh93/badrabbit

Last synced: 10 days ago
JSON representation

BadRabbit allows to switch the main Plugin class at load time

Awesome Lists containing this project

README

        

[ci]: https://ci.pcgamingfreaks.at/job/BadRabbit/
[ciImg]: https://ci.pcgamingfreaks.at/job/BadRabbit/badge/icon
[versionImg]: https://img.shields.io/maven-metadata/v?color=blue&label=version&metadataUrl=https%3A%2F%2Frepo.pcgamingfreaks.at%2Frepository%2Fmaven-releases%2Fat%2Fpcgamingfreaks%2FBadRabbit%2Fmaven-metadata.xml
[license]: https://github.com/GeorgH93/BadRabbit/blob/master/LICENSE
[licenseImg]: https://img.shields.io/github/license/GeorgH93/BadRabbit.svg

# BadRabbit
BadRabbit allows to switch the main Plugin class at plugin load time.

[![Build Status][ciImg]][ci] ![Version][versionImg] [![licenseImg]][license]

## Example
```java
public class MyPluginBadRabbit extends BadRabbit {
@Override
protected @NotNull JavaPlugin createInstance() throws Exception {
return (myCondition()) ? new MyPluginMain1() : new MyPluginMain2();
}
}
```

If you are looking for a real usage example, you can have a look at the Minepacks plugin [here](https://github.com/GeorgH93/Minepacks/blob/master/src/at/pcgamingfreaks/Minepacks/Bukkit/MinepacksBadRabbit.java).

## Maven
### Repository
```

pcgf-repo
https://repo.pcgamingfreaks.at/repository/maven-everything

```
### Dependency Bukkit
```

at.pcgamingfreaks
BadRabbit-Bukkit
1.11

```
### Dependency BungeeCord
```

at.pcgamingfreaks
BadRabbit-Bungee
1.11

```

## Build
### Requirements
* Java >= 7
* Maven >= 3.5

### Build it
```
mvn clean install
```

## Links
[Javadoc](https://ci.pcgamingfreaks.at/job/BadRabbit/javadoc/)