SRVCron (1.8-1.20) [Scheduler | Events | Jobs | Conditions | Spigot/Bungee]
Claim this plugin
This plugin was imported from Spiget and is currently unclaimed.
Plugin Information
Description
SRV-Cron
Scheduler, jobs, events for your server. Schedule anything that your server needs.
Commands & Permissions
| Command | Permission | Usage & Description |
|---|---|---|
| /srvcron reload | srvcron.command.reload | Reload jobs & configuration. |
| /srvcron run | srvcron.command.run | /srvcron run <job-name> [event <event-name] - run a job manually. |
| /srvcron suspend | srvcron.command.suspend | /srvcron suspend <job-name> - suspend job execution. The commands will not be executed on job dispatch. |
| /srvcron resume | srvcron.command.resume | /srvcron resume <job-name> - resume a job. Allow the job to execute commands on the next dispatch. |
| /srvcron jobinfo | srvcron.command.jobinfo | /srvcron jobinfo <job-name> - information about a Cron-Job. |
| /srvcron list | srvcron.command.list | /srvcron list [events] - this will list all Cron or, if provided required argument, Event jobs. |
| /timer | srvcron.command.timer | /timer <seconds> <command> - this will execute a command after specified delay. (Max time is 30 min.) |
<> neccessary; [] optional.
Development
Building is really simple.
To build SRV-Cron, you need JDK 21 and Gradle installed on your system.
The Bukkit implementation targets Paper API 1.21.11-R0.1-SNAPSHOT.
git clone https://github.com/M0diis/SRV-Cron.git
cd SRV-Cron
gradlew shadowjar
The jar will be generated in /build/libs/ folder.
Dev-builds
All the development builds can be found on actions page. These builds will have the latest features but may include some bugs and other unwanted issues. Use at your own risk.
Open the latest workflow and get the artifact from there:
https://github.com/M0diis/SRV-Cron/actions
API
SRV-Cron comes with an API that allows developers to interact with the plugin. If you think there is something missing in the API - feel free to create a feature or pull request.
Before you can actually make use of SRV-Cron API, you first have to import it into your project.
You can get the access to the API simply by depending on the plugin itself.
Replace {VERSION} with the latest build release.
Import with Gradle
compileOnly 'com.github.m0diis:srv-cron:{VERSION}'
Import with Maven
<dependency>
<groupId>com.github.m0diis</groupId>
<artifactId>srv-cron</artifactId>
<version>{VERSION}</version>
<scope>provided</scope>
</dependency>
Get the API:
public static void myMethod()
{
SRVCronAPI api = SRVCron.getInstance().getAPI();
}
Read more about the API usage on the wiki page:
https://github.com/M0diis/SRV-Cron/wiki/API
Links
FAQ
I have a feature suggestion | I found a bug
Please open a Github issue or reach out to me via SpigotMC or, preferably, discord.
Where can I download the plugin from?
You can get it from:
- Spigot Page
- Releases here on Github.
- Compile it yourself.
Can I modify your plugin?
Yes, you can, as long as you comply with the license.
How can I collaborate on the project?
- You can find bugs or issues and notify me about them;
- You can add features or fix issues by forking the project, editing it and creating a Pull Request;
- You can translate language files and open a Pull Request or send them directly to me.
Minecraft Plugin Badges
Use these badge images in docs, README files, or forum posts.