forked from Upstream/CommandPanels
Adds the command tags broadcast=
and broadcast-perm=
This commit is contained in:
parent
6ae6851174
commit
fb774cefef
@ -76,7 +76,7 @@ public class BasicTags implements Listener {
|
||||
}
|
||||
if(e.name.equalsIgnoreCase("broadcast=")) {
|
||||
e.commandTagUsed();
|
||||
plugin.tex.broadcastString(e.panel,e.pos,e.p,String.join(" ",e.args));
|
||||
Bukkit.broadcastMessage(plugin.tex.placeholders(e.panel, e.pos, e.p,String.join(" ",message).trim());
|
||||
return;
|
||||
}
|
||||
if(e.name.equalsIgnoreCase("broadcast-perm=")) {
|
||||
@ -89,7 +89,7 @@ public class BasicTags implements Listener {
|
||||
for(int i = 1; i < e.args.length; i++){
|
||||
message.append(e.args[i]).append(" ");
|
||||
}
|
||||
Bukkit.broadcastMessage(e.panel,String.join(" ",plugin.tex.placeholders(e.panel, e.pos, e.p,message.trim()));
|
||||
Bukkit.broadcastMessage(plugin.tex.placeholders(e.panel, e.pos, e.p,String.join(" ",message).trim());
|
||||
} else {
|
||||
plugin.tex.sendMessage(e.p, plugin.config.getString("config.format.error") + " " + "commands: " + e.args[0]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user