[Free & Open SRC] KothScheduler - An open source plugin to schedule your

Status
This thread has been locked.

sergivb01

sergivb01
Premium
Feedback score
3
Posts
62
Reactions
69
Resources
0
Just linking my open-src plugin for Event Scheduling I coded 1 month ago.
Features:
  • Config file for registering events.
  • Rich command argument.
  • Easy and intuitive public API.
Command:
/kothscheduler - Permission: kothscheduler.command.kothscheduler

Source: https://github.com/sergivb01/KothScheduler/
JAR: https://void.cat/#d1a069d1bf8bf0cfecf355032c869d47bb44a83c

Code snippet for registering your HCF koths:
Code:
private void registerFromFactions(){
        koths.clear();
        for(Faction faction  : getFactionManager().getFactions()){
            if(faction instanceof EventFaction){
                if(faction instanceof KothFaction) {
                    koths.add(faction.getName());
                    this.getLogger().info("Registered " + faction.getName() + " in eventGames list.");
                }
            }
        }
    }

Enjoy!
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Trackgg

Feedback score
9
Posts
152
Reactions
65
Resources
0
*spoiler open me*

Open ur legs bb

Nah cringe, y u put the tag selling and title free dumbo?
 

damagepots

Feedback score
14
Posts
162
Reactions
26
Resources
0

sergivb01

sergivb01
Premium
Feedback score
3
Posts
62
Reactions
69
Resources
0
For anyone that uses this since I noticed that none of these events are not triggered by itself you must add method on 'onEnable' or where you want.

recommend you using this:

startNewKoth((int) (JavaUtils.parse("30min") / 1000));

And you should add this, if you are using an iHCF fork, in: events/game/kothgame.EventsTimer on handleWinner.
 
Status
This thread has been locked.
Top