make sendMessage public
Allows tighter integration with addons that wish to augment core GP features/commands.
This commit is contained in:
parent
05497b7b6a
commit
92299d683b
2
pom.xml
2
pom.xml
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<groupId>me.ryanhamshire</groupId>
|
<groupId>me.ryanhamshire</groupId>
|
||||||
<artifactId>GriefPrevention</artifactId>
|
<artifactId>GriefPrevention</artifactId>
|
||||||
<version>16.8</version>
|
<version>16.8.dev</version>
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
<maven.compiler.source>1.8</maven.compiler.source>
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
<maven.compiler.target>1.8</maven.compiler.target>
|
||||||
|
|
|
||||||
|
|
@ -3296,20 +3296,20 @@ public class GriefPrevention extends JavaPlugin
|
||||||
}
|
}
|
||||||
|
|
||||||
//sends a color-coded message to a player
|
//sends a color-coded message to a player
|
||||||
static void sendMessage(Player player, ChatColor color, Messages messageID, String... args)
|
public static void sendMessage(Player player, ChatColor color, Messages messageID, String... args)
|
||||||
{
|
{
|
||||||
sendMessage(player, color, messageID, 0, args);
|
sendMessage(player, color, messageID, 0, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
//sends a color-coded message to a player
|
//sends a color-coded message to a player
|
||||||
static void sendMessage(Player player, ChatColor color, Messages messageID, long delayInTicks, String... args)
|
public static void sendMessage(Player player, ChatColor color, Messages messageID, long delayInTicks, String... args)
|
||||||
{
|
{
|
||||||
String message = GriefPrevention.instance.dataStore.getMessage(messageID, args);
|
String message = GriefPrevention.instance.dataStore.getMessage(messageID, args);
|
||||||
sendMessage(player, color, message, delayInTicks);
|
sendMessage(player, color, message, delayInTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
//sends a color-coded message to a player
|
//sends a color-coded message to a player
|
||||||
static void sendMessage(Player player, ChatColor color, String message)
|
public static void sendMessage(Player player, ChatColor color, String message)
|
||||||
{
|
{
|
||||||
if(message == null || message.length() == 0) return;
|
if(message == null || message.length() == 0) return;
|
||||||
|
|
||||||
|
|
@ -3323,7 +3323,7 @@ public class GriefPrevention extends JavaPlugin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sendMessage(Player player, ChatColor color, String message, long delayInTicks)
|
public static void sendMessage(Player player, ChatColor color, String message, long delayInTicks)
|
||||||
{
|
{
|
||||||
SendPlayerMessageTask task = new SendPlayerMessageTask(player, color, message);
|
SendPlayerMessageTask task = new SendPlayerMessageTask(player, color, message);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user