Add more messages for (un/re)load actions

This commit is contained in:
Frank van der Heijden 2020-06-07 17:10:35 +02:00
parent 58a8e9304c
commit 9e8ac2d4fe
No known key found for this signature in database
GPG key ID: 26DA56488D314D11
5 changed files with 61 additions and 49 deletions

View file

@ -0,0 +1,19 @@
package net.frankheijden.serverutils.managers;
import net.frankheijden.serverutils.config.Messenger;
import org.bukkit.command.CommandSender;
public enum Result {
NOT_EXISTS,
NOT_ENABLED,
ALREADY_ENABLED,
FILE_CHANGED,
ERROR,
SUCCESS;
public void sendTo(CommandSender sender, String action, String what) {
Messenger.sendMessage(sender, "serverutils." + this.name().toLowerCase(),
"%action%", action,
"%what%", what);
}
}