Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/georgh93/badrabbit
- Owner: GeorgH93
- License: mit
- Created: 2019-06-01T13:37:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-11T17:12:30.000Z (11 months ago)
- Last Synced: 2024-12-25T02:04:17.654Z (17 days ago)
- Language: Java
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)