2016-03-27 21:28:55 +02:00
|
|
|
/*
|
2023-09-28 19:16:23 +02:00
|
|
|
* Copyright (C) 2012-2023 Frank Baumann
|
2016-03-27 21:28:55 +02:00
|
|
|
*
|
|
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2018-08-18 16:52:51 +02:00
|
|
|
package de.erethon.dungeonsxl.command;
|
2016-03-27 21:28:55 +02:00
|
|
|
|
2018-08-18 16:52:51 +02:00
|
|
|
import de.erethon.dungeonsxl.DungeonsXL;
|
2020-03-09 21:19:27 +01:00
|
|
|
import de.erethon.dungeonsxl.api.player.PlayerCache;
|
2018-08-18 16:52:51 +02:00
|
|
|
import de.erethon.dungeonsxl.config.MainConfig;
|
2022-04-03 18:09:12 +02:00
|
|
|
import de.erethon.bedrock.command.ECommand;
|
2016-03-27 21:28:55 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Daniel Saukel
|
|
|
|
*/
|
2022-04-03 18:09:12 +02:00
|
|
|
public abstract class DCommand extends ECommand {
|
2018-08-18 16:52:51 +02:00
|
|
|
|
|
|
|
protected DungeonsXL plugin;
|
|
|
|
protected MainConfig config;
|
2020-03-09 21:19:27 +01:00
|
|
|
protected PlayerCache dPlayers;
|
2018-08-18 16:52:51 +02:00
|
|
|
|
|
|
|
protected DCommand(DungeonsXL plugin) {
|
|
|
|
this.plugin = plugin;
|
|
|
|
config = plugin.getMainConfig();
|
2020-03-09 21:19:27 +01:00
|
|
|
dPlayers = plugin.getPlayerCache();
|
2016-03-27 21:28:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|