Added the server variable
This commit is contained in:
@@ -33,7 +33,7 @@ public class CommandMonitor implements Listener {
|
||||
if (commandLine.toLowerCase().startsWith("/" + keyword.toLowerCase())) {
|
||||
String[] parts = commandLine.split("\\s+");
|
||||
String target = parts.length > 1 ? parts[1] : null;
|
||||
String title = messageManager.getMessage(keyword + ".title");
|
||||
String title = messageManager.formatMessage(keyword + ".title", (sender instanceof Player) ? (Player) sender : null, target);
|
||||
String message = messageManager.formatMessage(keyword + ".message", (sender instanceof Player) ? (Player) sender : null, target);
|
||||
notifier.sendNotification(title, message);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user