34 lines
998 B
Java
34 lines
998 B
Java
package net.knarcraft.timeismoney.command;
|
|
|
|
import net.knarcraft.timeismoney.TimeIsMoney;
|
|
import org.bukkit.command.Command;
|
|
import org.bukkit.command.CommandSender;
|
|
import org.bukkit.command.TabExecutor;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* The command for reloading this plugin's configuration
|
|
*/
|
|
public class ReloadCommand implements TabExecutor {
|
|
|
|
@Override
|
|
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label,
|
|
@NotNull String[] args) {
|
|
TimeIsMoney.reload();
|
|
sender.sendMessage("Plugin reloaded!");
|
|
return true;
|
|
}
|
|
|
|
@Nullable
|
|
@Override
|
|
public List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label,
|
|
@NotNull String[] args) {
|
|
return new ArrayList<>();
|
|
}
|
|
|
|
}
|