mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-09-27 14:13:05 +02:00
6ee7c4759a
Message configs are now selected based on the client's language (can be toggled in the config) and will use MineDown formatting to allow display of component messages as well as usage of RGB colors in 1.16. If found the legacy local.yml will be used instead of the per-language files. Move your local.yml to the correct lang config to if you want to use the per-client language option. Version was also changed to 3.11 due to the many internal changes that have accumulated over time
19 lines
544 B
Java
19 lines
544 B
Java
package com.Acrobot.ChestShop.Listeners.PostShopCreation;
|
|
|
|
import com.Acrobot.ChestShop.Configuration.Messages;
|
|
import com.Acrobot.ChestShop.Events.ShopCreatedEvent;
|
|
import org.bukkit.event.EventHandler;
|
|
import org.bukkit.event.EventPriority;
|
|
import org.bukkit.event.Listener;
|
|
|
|
/**
|
|
* @author Acrobot
|
|
*/
|
|
public class MessageSender implements Listener {
|
|
|
|
@EventHandler(priority = EventPriority.MONITOR)
|
|
public static void onShopCreation(ShopCreatedEvent event) {
|
|
Messages.SHOP_CREATED.sendWithPrefix(event.getPlayer());
|
|
}
|
|
}
|