Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/demkom58/velevents
Velocity eventbus adjusted to be reused
https://github.com/demkom58/velevents
event eventbus velocity
Last synced: 25 days ago
JSON representation
Velocity eventbus adjusted to be reused
- Host: GitHub
- URL: https://github.com/demkom58/velevents
- Owner: demkom58
- License: gpl-3.0
- Created: 2024-07-08T00:00:46.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-07-08T00:10:22.000Z (4 months ago)
- Last Synced: 2024-07-08T01:25:07.970Z (4 months ago)
- Topics: event, eventbus, velocity
- Language: Java
- Homepage:
- Size: 90.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VelEvents
This repository contains adjusted source code of Velocity Events to be reused in other projects.
The original source code can be found [here](https://github.com/PaperMC/Velocity).## Changes
Made adjustments includes:
- removed Guava dependency;
- Checker Framework annotations replaced with jspecify;
- plugin type made generic;
- unbounded from Velocity API;
- changed package name.## Dependency
Dependency can be added using JitPack.Gradle:
```gradle
repositories {
maven { url = 'https://jitpack.io' }
}dependencies {
implementation 'com.github.demkom58.velevents:impl:1.0.0'
}
```Maven:
```xml
jitpack.io
https://jitpack.io
com.github.demkom58.velevents
impl
1.0.0```
## Usage
There is no difference in usage between the original and adjusted source code, so
the [original documentation](https://docs.papermc.io/velocity/dev/event-api) can be used.To start using VelEvents, you need to create a new `VelEventManager` and call
`shutdown` on it for graceful shutdown. `EventManager` interface is meant
to be used by plugins to register and unregister event listeners.## License
Velocity Events api is licensed under the MIT License,
but implementation is licensed under the GNU General Public License v3.0.