mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-08 11:50:14 +01:00
Add ShopPlayer#sendMessage for formatted messages
This commit is contained in:
parent
8311221efc
commit
dbcd52fefd
@ -23,6 +23,16 @@ public interface ShopPlayer {
|
||||
*/
|
||||
Player getPlayer();
|
||||
|
||||
/**
|
||||
* Sends a (formatted) message to this player
|
||||
*
|
||||
* @param message the message (a format string)
|
||||
* @param args the arguments referenced by the format
|
||||
*/
|
||||
default void sendMessage(String message, Object... args) {
|
||||
getPlayer().sendMessage(String.format(message, args));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets this player's flag
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user