eu.kennytv.maintenance.velocity.util.VelocityTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maintenance-velocity
Show all versions of maintenance-velocity
Paper plugin to enable maintenance mode on your Minecraft server.
The newest version!
/*
* This file is part of Maintenance - https://github.com/kennytv/Maintenance
* Copyright (C) 2018-2024 kennytv (https://github.com/kennytv)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package eu.kennytv.maintenance.velocity.util;
import com.velocitypowered.api.scheduler.ScheduledTask;
import eu.kennytv.maintenance.core.util.Task;
public final class VelocityTask implements Task {
private final ScheduledTask task;
public VelocityTask(final ScheduledTask task) {
this.task = task;
}
@Override
public void cancel() {
task.cancel();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy