Add more messages for (un/re)load actions
This commit is contained in:
parent
58a8e9304c
commit
9e8ac2d4fe
5 changed files with 61 additions and 49 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue