Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c57fb7223a | ||
|
|
9e8278d439
|
||
|
|
9abaf55532
|
||
|
|
1136b7e33f
|
||
|
|
361d302b36
|
||
|
|
d6551b317f
|
||
|
|
5105e76dc5 | ||
|
|
82cfcb4862
|
||
|
|
671bb0d8b2
|
||
|
|
79fb7e84a5
|
||
|
|
bba628e3f2
|
||
|
|
b0951d7427
|
||
|
|
0e7a6e58e2
|
||
|
|
5850ff2009
|
||
|
|
f98a038e38 | ||
|
|
e927ca5f3c |
@@ -0,0 +1 @@
|
||||
repo_token: $COVERALLS_REPO_TOKEN
|
||||
@@ -9,3 +9,5 @@ deploy:
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
after_success:
|
||||
- mvn clean test jacoco:report coveralls:report
|
||||
|
||||
@@ -9,3 +9,53 @@ Simple and highly configurable staffchat
|
||||
|
||||
## Download
|
||||
You can download the plugin from the [Spigot resource page](https://www.spigotmc.org/resources/37804/) or via the [GitHub releases](https://github.com/oskar3123/StaffChat/releases)
|
||||
|
||||
## Event API (For developers)
|
||||
|
||||
### Bukkit/Spigot
|
||||
|
||||
```java
|
||||
public class StaffChatListener implements Listener
|
||||
{
|
||||
|
||||
@EventHandler
|
||||
public void onStaffChat(StaffChatEvent event)
|
||||
{
|
||||
// String format = event.getFormat();
|
||||
// event.setFormat("&b{NAME} >> {MESSAGE}");
|
||||
// String message = event.getMessage();
|
||||
// Player player = event.getPlayer();
|
||||
// event.setCancelled(true);
|
||||
}
|
||||
|
||||
}
|
||||
```
|
||||
Register the listener with
|
||||
```java
|
||||
getServer().getPluginManager().registerEvents(new StaffChatListener(), this);
|
||||
```
|
||||
in your plugin onEnable.
|
||||
|
||||
### BungeeCord
|
||||
|
||||
```java
|
||||
public class StaffChatListener implements Listener
|
||||
{
|
||||
|
||||
@EventHandler
|
||||
public void onStaffChat(BungeeStaffChatEvent event)
|
||||
{
|
||||
// String format = event.getFormat();
|
||||
// event.setFormat("&b{NAME} >> {MESSAGE}");
|
||||
// String message = event.getMessage();
|
||||
// Player player = event.getPlayer();
|
||||
// event.setCancelled(true);
|
||||
}
|
||||
|
||||
}
|
||||
```
|
||||
Register the listener with
|
||||
```java
|
||||
getProxy().getPluginManager().registerListener(this, new StaffChatListener());
|
||||
```
|
||||
in your plugin onEnable.
|
||||
|
||||
@@ -7,7 +7,11 @@
|
||||
|
||||
<groupId>me.oskar3123</groupId>
|
||||
<artifactId>staffchat</artifactId>
|
||||
<version>1.1.3-SNAPSHOT</version>
|
||||
<version>1.2.0-SNAPSHOT</version>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
@@ -18,27 +22,38 @@
|
||||
<id>bungeecord-repo</id>
|
||||
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>placeholderapi</id>
|
||||
<url>http://repo.extendedclip.com/content/repositories/placeholderapi/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.12.2-R0.1-SNAPSHOT</version>
|
||||
<version>1.13.2-R0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>bukkit</artifactId>
|
||||
<version>1.12.2-R0.1-SNAPSHOT</version>
|
||||
<version>1.13.2-R0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.md-5</groupId>
|
||||
<artifactId>bungeecord-api</artifactId>
|
||||
<version>1.12-SNAPSHOT</version>
|
||||
<version>1.13-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>me.clip</groupId>
|
||||
<artifactId>placeholderapi</artifactId>
|
||||
<version>2.9.2</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${project.name}-${project.version}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
||||
@@ -19,6 +19,7 @@ public class BungeeMain extends Plugin
|
||||
public final String seePerm = "staffchat.see";
|
||||
public final String commandPerm = "staffchat.command";
|
||||
public final String reloadPerm = "staffchat.reload";
|
||||
public final BungeeChatListener chatListener = new BungeeChatListener(this);
|
||||
private Configuration config;
|
||||
|
||||
public void onEnable()
|
||||
@@ -40,7 +41,7 @@ public class BungeeMain extends Plugin
|
||||
|
||||
private void registerEvents()
|
||||
{
|
||||
getProxy().getPluginManager().registerListener(this, new BungeeChatListener(this));
|
||||
getProxy().getPluginManager().registerListener(this, chatListener);
|
||||
}
|
||||
|
||||
public boolean reloadConfig()
|
||||
@@ -48,15 +49,42 @@ public class BungeeMain extends Plugin
|
||||
try
|
||||
{
|
||||
config = ConfigurationProvider.getProvider(YamlConfiguration.class).load(new File(getDataFolder(), "config.yml"));
|
||||
loadDefaultValues();
|
||||
return true;
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
config = ConfigurationProvider.getProvider(YamlConfiguration.class).load(getResourceAsStream("config.yml"));
|
||||
loadDefaultValues();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private void loadDefaultValues()
|
||||
{
|
||||
String[] keys = new String[] {
|
||||
"settings.character",
|
||||
"settings.format",
|
||||
"messages.prefix",
|
||||
"messages.nopermission",
|
||||
"messages.playeronly",
|
||||
"messages.reloaded",
|
||||
"messages.toggled",
|
||||
"messages.onstring",
|
||||
"messages.offstring",
|
||||
};
|
||||
Configuration def = ConfigurationProvider.getProvider(YamlConfiguration.class).load(getResourceAsStream("config.yml"));
|
||||
for (String key : keys)
|
||||
{
|
||||
String v = config.getString(key);
|
||||
if (v == null || v.isEmpty())
|
||||
{
|
||||
config.set(key, def.getString(key));
|
||||
}
|
||||
}
|
||||
saveConfig();
|
||||
}
|
||||
|
||||
public Configuration getConfig()
|
||||
{
|
||||
return config;
|
||||
@@ -85,4 +113,17 @@ public class BungeeMain extends Plugin
|
||||
}
|
||||
}
|
||||
|
||||
public void saveConfig()
|
||||
{
|
||||
try
|
||||
{
|
||||
ConfigurationProvider.getProvider(YamlConfiguration.class).save(config, new File(getDataFolder(), "config.yml"));
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
getLogger().severe("Failed to save config");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import net.md_5.bungee.api.ChatColor;
|
||||
import net.md_5.bungee.api.CommandSender;
|
||||
import net.md_5.bungee.api.chat.BaseComponent;
|
||||
import net.md_5.bungee.api.chat.TextComponent;
|
||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||
import net.md_5.bungee.api.plugin.Command;
|
||||
import net.md_5.bungee.config.Configuration;
|
||||
|
||||
@@ -46,13 +47,35 @@ public class BungeeStaffChatCommand extends Command
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (args[0].equalsIgnoreCase("toggle"))
|
||||
{
|
||||
if (sender.hasPermission(plugin.usePerm))
|
||||
{
|
||||
toggle(sender);
|
||||
}
|
||||
else
|
||||
{
|
||||
sender.sendMessage(noPerm);
|
||||
}
|
||||
return;
|
||||
}
|
||||
help(sender, getName());
|
||||
}
|
||||
|
||||
private void playerOnly(CommandSender sender)
|
||||
{
|
||||
sender.sendMessage(txt(config.getString("messages.prefix") + config.getString("messages.playeronly")));
|
||||
}
|
||||
|
||||
private void help(CommandSender sender, String label)
|
||||
{
|
||||
String prefix = config.getString("messages.prefix");
|
||||
sender.sendMessage(txt(prefix + "Version " + plugin.getDescription().getVersion() + ", made by oskar3123"));
|
||||
if (sender.hasPermission(plugin.usePerm))
|
||||
{
|
||||
sender.sendMessage(txt(prefix + "Message prefix: " + config.getString("settings.character")));
|
||||
sender.sendMessage(txt(prefix + "/" + label + " toggle - Toggles auto staffchat"));
|
||||
}
|
||||
if (sender.hasPermission(plugin.reloadPerm))
|
||||
{
|
||||
sender.sendMessage(txt(prefix + "/" + label + " reload - Reloads the config file"));
|
||||
@@ -66,6 +89,18 @@ public class BungeeStaffChatCommand extends Command
|
||||
sender.sendMessage(txt(config.getString("messages.prefix") + config.getString("messages.reloaded")));
|
||||
}
|
||||
|
||||
private void toggle(CommandSender sender)
|
||||
{
|
||||
if (!(sender instanceof ProxiedPlayer))
|
||||
{
|
||||
playerOnly(sender);
|
||||
return;
|
||||
}
|
||||
boolean toggled = plugin.chatListener.togglePlayer(((ProxiedPlayer) sender).getUniqueId());
|
||||
String state = toggled ? config.getString("messages.onstring") : config.getString("messages.offstring");
|
||||
sender.sendMessage(txt(config.getString("messages.prefix") + String.format(config.getString("messages.toggled"), state)));
|
||||
}
|
||||
|
||||
private String clr(String string)
|
||||
{
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
|
||||
@@ -2,6 +2,7 @@ package me.oskar3123.staffchat.bungee.listener;
|
||||
|
||||
import me.oskar3123.staffchat.bungee.BungeeMain;
|
||||
import me.oskar3123.staffchat.bungee.event.BungeeStaffChatEvent;
|
||||
import me.oskar3123.staffchat.util.StringUtils;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import net.md_5.bungee.api.chat.BaseComponent;
|
||||
import net.md_5.bungee.api.chat.TextComponent;
|
||||
@@ -11,10 +12,15 @@ import net.md_5.bungee.api.plugin.Listener;
|
||||
import net.md_5.bungee.config.Configuration;
|
||||
import net.md_5.bungee.event.EventHandler;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
public class BungeeChatListener implements Listener
|
||||
{
|
||||
|
||||
private BungeeMain plugin;
|
||||
private Set<UUID> toggledPlayers = new HashSet<>();
|
||||
|
||||
public BungeeChatListener(BungeeMain plugin)
|
||||
{
|
||||
@@ -24,6 +30,10 @@ public class BungeeChatListener implements Listener
|
||||
@EventHandler
|
||||
public void chat(ChatEvent event)
|
||||
{
|
||||
if (event.getMessage().startsWith("/"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (!(event.getSender() instanceof ProxiedPlayer))
|
||||
{
|
||||
return;
|
||||
@@ -37,13 +47,14 @@ public class BungeeChatListener implements Listener
|
||||
|
||||
Configuration config = plugin.getConfig();
|
||||
String character = config.getString("settings.character");
|
||||
if (!event.getMessage().startsWith(character))
|
||||
boolean isToggled = toggledPlayers.contains(player.getUniqueId());
|
||||
if (!event.getMessage().startsWith(character) && !isToggled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
String format = config.getString("settings.format");
|
||||
String message = event.getMessage().substring(character.length()).trim();
|
||||
String message = event.getMessage().substring(isToggled ? 0 : character.length()).trim();
|
||||
|
||||
BungeeStaffChatEvent chatEvent = new BungeeStaffChatEvent(player, format, message);
|
||||
plugin.getProxy().getPluginManager().callEvent(chatEvent);
|
||||
@@ -53,8 +64,8 @@ public class BungeeChatListener implements Listener
|
||||
}
|
||||
format = chatEvent.getFormat();
|
||||
|
||||
format = format.replaceAll("\\{NAME\\}", sanitize(player.getName()));
|
||||
format = format.replaceAll("\\{MESSAGE\\}", sanitize(message));
|
||||
format = format.replaceAll("\\{NAME\\}", StringUtils.sanitize(player.getName()));
|
||||
format = format.replaceAll("\\{MESSAGE\\}", StringUtils.sanitize(message));
|
||||
final BaseComponent[] messageComponents = txt(format);
|
||||
|
||||
plugin.getProxy().getPlayers().stream()
|
||||
@@ -75,11 +86,15 @@ public class BungeeChatListener implements Listener
|
||||
return TextComponent.fromLegacyText(clr(text));
|
||||
}
|
||||
|
||||
private String sanitize(String string)
|
||||
public boolean togglePlayer(UUID player)
|
||||
{
|
||||
string = string.replaceAll("\\\\", "\\\\\\\\");
|
||||
string = string.replaceAll("\\$", "\\\\\\$");
|
||||
return string;
|
||||
if (toggledPlayers.contains(player))
|
||||
{
|
||||
toggledPlayers.remove(player);
|
||||
return false;
|
||||
}
|
||||
toggledPlayers.add(player);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package me.oskar3123.staffchat.spigot;
|
||||
|
||||
import me.clip.placeholderapi.PlaceholderAPI;
|
||||
import me.oskar3123.staffchat.spigot.command.StaffChatCommand;
|
||||
import me.oskar3123.staffchat.spigot.listener.ChatListener;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public class Main extends JavaPlugin
|
||||
@@ -12,6 +14,7 @@ public class Main extends JavaPlugin
|
||||
public final String seePerm = "staffchat.see";
|
||||
public final String commandPerm = "staffchat.command";
|
||||
public final String reloadPerm = "staffchat.reload";
|
||||
public final ChatListener chatListener = new ChatListener(this);
|
||||
|
||||
public void onEnable()
|
||||
{
|
||||
@@ -21,6 +24,14 @@ public class Main extends JavaPlugin
|
||||
registerEvents();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void saveDefaultConfig()
|
||||
{
|
||||
super.saveDefaultConfig();
|
||||
getConfig().options().copyDefaults(true);
|
||||
saveConfig();
|
||||
}
|
||||
|
||||
private void registerCommands()
|
||||
{
|
||||
getCommand("staffchat").setExecutor(new StaffChatCommand(this));
|
||||
@@ -28,7 +39,21 @@ public class Main extends JavaPlugin
|
||||
|
||||
private void registerEvents()
|
||||
{
|
||||
Bukkit.getPluginManager().registerEvents(new ChatListener(this), this);
|
||||
Bukkit.getPluginManager().registerEvents(this.chatListener, this);
|
||||
}
|
||||
|
||||
private boolean isPlaceholderApiEnabled()
|
||||
{
|
||||
return Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI");
|
||||
}
|
||||
|
||||
public String replacePlaceholders(Player player, String string)
|
||||
{
|
||||
if (!isPlaceholderApiEnabled())
|
||||
{
|
||||
return string;
|
||||
}
|
||||
return PlaceholderAPI.setPlaceholders(player, string);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class StaffChatCommand implements CommandExecutor
|
||||
{
|
||||
@@ -45,14 +46,36 @@ public class StaffChatCommand implements CommandExecutor
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else if (args[0].equalsIgnoreCase("toggle"))
|
||||
{
|
||||
if (sender.hasPermission(plugin.usePerm))
|
||||
{
|
||||
toggle(sender);
|
||||
}
|
||||
else
|
||||
{
|
||||
sender.sendMessage(noPerm);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
help(sender, label);
|
||||
return true;
|
||||
}
|
||||
|
||||
private void playerOnly(CommandSender sender)
|
||||
{
|
||||
sender.sendMessage(clr(config.getString("messages.prefix") + config.getString("messages.playeronly")));
|
||||
}
|
||||
|
||||
private void help(CommandSender sender, String label)
|
||||
{
|
||||
String prefix = clr(config.getString("messages.prefix"));
|
||||
sender.sendMessage(prefix + "Version " + plugin.getDescription().getVersion() + ", made by oskar3123");
|
||||
if (sender.hasPermission(plugin.usePerm))
|
||||
{
|
||||
sender.sendMessage(prefix + "Message prefix: " + config.getString("settings.character"));
|
||||
sender.sendMessage(prefix + "/" + label + " toggle - Toggles auto staffchat");
|
||||
}
|
||||
if (sender.hasPermission(plugin.reloadPerm))
|
||||
{
|
||||
sender.sendMessage(prefix + "/" + label + " reload - Reloads the config file");
|
||||
@@ -66,6 +89,18 @@ public class StaffChatCommand implements CommandExecutor
|
||||
sender.sendMessage(clr(config.getString("messages.prefix") + config.getString("messages.reloaded")));
|
||||
}
|
||||
|
||||
private void toggle(CommandSender sender)
|
||||
{
|
||||
if (!(sender instanceof Player))
|
||||
{
|
||||
playerOnly(sender);
|
||||
return;
|
||||
}
|
||||
boolean toggled = plugin.chatListener.togglePlayer(((Player) sender).getUniqueId());
|
||||
String state = toggled ? config.getString("messages.onstring") : config.getString("messages.offstring");
|
||||
sender.sendMessage(clr(config.getString("messages.prefix") + String.format(config.getString("messages.toggled"), state)));
|
||||
}
|
||||
|
||||
private String clr(String string)
|
||||
{
|
||||
return ChatColor.translateAlternateColorCodes('&', string);
|
||||
|
||||
@@ -2,6 +2,7 @@ package me.oskar3123.staffchat.spigot.listener;
|
||||
|
||||
import me.oskar3123.staffchat.spigot.Main;
|
||||
import me.oskar3123.staffchat.spigot.event.StaffChatEvent;
|
||||
import me.oskar3123.staffchat.util.StringUtils;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
@@ -9,10 +10,15 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.player.AsyncPlayerChatEvent;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
public class ChatListener implements Listener
|
||||
{
|
||||
|
||||
private Main plugin;
|
||||
private Set<UUID> toggledPlayers = new HashSet<>();
|
||||
|
||||
public ChatListener(Main plugin)
|
||||
{
|
||||
@@ -29,13 +35,18 @@ public class ChatListener implements Listener
|
||||
|
||||
FileConfiguration config = plugin.getConfig();
|
||||
String character = config.getString("settings.character");
|
||||
if (!event.getMessage().startsWith(character))
|
||||
boolean isToggled = toggledPlayers.contains(event.getPlayer().getUniqueId());
|
||||
if (!event.getMessage().startsWith(character) && !isToggled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
String format = config.getString("settings.format");
|
||||
String message = event.getMessage().substring(character.length()).trim();
|
||||
String message = event.getMessage().substring(isToggled ? 0 : character.length()).trim();
|
||||
if (config.getBoolean("settings.replaceplaceholdersinmessage"))
|
||||
{
|
||||
message = plugin.replacePlaceholders(event.getPlayer(), message);
|
||||
}
|
||||
|
||||
StaffChatEvent chatEvent = new StaffChatEvent(event.getPlayer(), format, message);
|
||||
Bukkit.getServer().getPluginManager().callEvent(chatEvent);
|
||||
@@ -45,9 +56,11 @@ public class ChatListener implements Listener
|
||||
}
|
||||
format = chatEvent.getFormat();
|
||||
|
||||
format = format.replaceAll("\\{NAME\\}", sanitize(event.getPlayer().getName()));
|
||||
format = format.replaceAll("\\{MESSAGE\\}", sanitize(message));
|
||||
format = format.replaceAll("\\{NAME\\}", StringUtils.sanitize(event.getPlayer().getName()));
|
||||
format = ChatColor.translateAlternateColorCodes('&', format);
|
||||
format = plugin.replacePlaceholders(event.getPlayer(), format);
|
||||
format = format.replaceAll("\\{MESSAGE\\}", StringUtils.sanitize(message));
|
||||
|
||||
final String finalMessage = format;
|
||||
|
||||
Bukkit.getOnlinePlayers().stream()
|
||||
@@ -58,11 +71,15 @@ public class ChatListener implements Listener
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
private String sanitize(String string)
|
||||
public boolean togglePlayer(UUID player)
|
||||
{
|
||||
string = string.replaceAll("\\\\", "\\\\\\\\");
|
||||
string = string.replaceAll("\\$", "\\\\\\$");
|
||||
return string;
|
||||
if (toggledPlayers.contains(player))
|
||||
{
|
||||
toggledPlayers.remove(player);
|
||||
return false;
|
||||
}
|
||||
toggledPlayers.add(player);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package me.oskar3123.staffchat.util;
|
||||
|
||||
public class StringUtils
|
||||
{
|
||||
|
||||
public static String sanitize(String string)
|
||||
{
|
||||
string = string.replaceAll("\\\\", "\\\\\\\\");
|
||||
string = string.replaceAll("\\$", "\\\\\\$");
|
||||
return string;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
name: StaffChat
|
||||
authors: [oskar3123]
|
||||
main: me.oskar3123.staffchat.bungee.BungeeMain
|
||||
version: 1.1.3
|
||||
version: 1.2.0
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
settings:
|
||||
character: '@'
|
||||
format: '&b{NAME}: {MESSAGE}'
|
||||
replaceplaceholdersinmessage: true
|
||||
messages:
|
||||
prefix: '&7StaffChat&8> &7'
|
||||
nopermission: '&cYou don''t have permission to do that'
|
||||
playeronly: '&cPlayer only command'
|
||||
reloaded: 'Reloaded the config file'
|
||||
toggled: 'You toggled auto staffchat %s'
|
||||
onstring: 'on'
|
||||
offstring: 'off'
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
name: StaffChat
|
||||
authors: [oskar3123]
|
||||
main: me.oskar3123.staffchat.spigot.Main
|
||||
version: 1.1.3
|
||||
|
||||
api-version: 1.13
|
||||
version: 1.2.0
|
||||
softdepend: [PlaceholderAPI]
|
||||
commands:
|
||||
staffchat:
|
||||
usage: /<command>
|
||||
description: Used to reload the config file.
|
||||
|
||||
permissions:
|
||||
staffchat.*:
|
||||
description: Gives you permission to everything in the plugin.
|
||||
|
||||
Reference in New Issue
Block a user