fuck, wrong upload
This commit is contained in:
parent
9e32b406da
commit
8b4de8327f
1 changed files with 0 additions and 28 deletions
|
|
@ -1,28 +0,0 @@
|
|||
package one.eim.gravitycontrol;
|
||||
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
public class ReloadCommand implements CommandExecutor {
|
||||
private static final Component prefix = Component.text("[", NamedTextColor.GRAY)
|
||||
.append(Component.text("GravityControl", NamedTextColor.DARK_GRAY))
|
||||
.append(Component.text("]", NamedTextColor.GRAY))
|
||||
.append(Component.space());
|
||||
private final GravityControl plugin;
|
||||
|
||||
public ReloadCommand(GravityControl plugin) {
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
sender.sendMessage(prefix.append(Component.text("Attempting to reload configuration...", NamedTextColor.WHITE)));
|
||||
this.plugin.reloadConfig();
|
||||
this.plugin.config = new Configuration(this.plugin, this.plugin.getConfig());
|
||||
sender.sendMessage(prefix.append(Component.text("Successfully reloaded configuration!", NamedTextColor.GREEN)));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue