Added the server variable
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
/target
|
/target
|
||||||
|
/.vscode
|
||||||
|
2
pom.xml
2
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.minster586</groupId>
|
<groupId>com.minster586</groupId>
|
||||||
<artifactId>NTFYNotifier</artifactId>
|
<artifactId>NTFYNotifier</artifactId>
|
||||||
<version>1.0.1</version>
|
<version>1.0.2</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>NTFYNotifier</name>
|
<name>NTFYNotifier</name>
|
||||||
|
|
||||||
|
@@ -33,7 +33,7 @@ public class CommandMonitor implements Listener {
|
|||||||
if (commandLine.toLowerCase().startsWith("/" + keyword.toLowerCase())) {
|
if (commandLine.toLowerCase().startsWith("/" + keyword.toLowerCase())) {
|
||||||
String[] parts = commandLine.split("\\s+");
|
String[] parts = commandLine.split("\\s+");
|
||||||
String target = parts.length > 1 ? parts[1] : null;
|
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);
|
String message = messageManager.formatMessage(keyword + ".message", (sender instanceof Player) ? (Player) sender : null, target);
|
||||||
notifier.sendNotification(title, message);
|
notifier.sendNotification(title, message);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user