diff --git a/build.gradle b/build.gradle index d039f17..43eb339 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { } group 'codedcosmos' -version '1.1' +version '1.2' mainClassName = 'codedcosmos.enderbot.core.EnderBot' sourceCompatibility = 1.8 diff --git a/res/plugin.yml b/res/plugin.yml index 62b5861..d0f18f0 100644 --- a/res/plugin.yml +++ b/res/plugin.yml @@ -1,5 +1,5 @@ name: EnderBot -version: 1.1 +version: 1.2 author: codedcosmos main: codedcosmos.enderbot.plugin.MinecraftPlugin api-version: 1.15 diff --git a/src/codedcosmos/enderbot/core/EnderBot.java b/src/codedcosmos/enderbot/core/EnderBot.java index 0f7d701..6fd28c1 100644 --- a/src/codedcosmos/enderbot/core/EnderBot.java +++ b/src/codedcosmos/enderbot/core/EnderBot.java @@ -18,7 +18,7 @@ public class EnderBot { - private static final String VERSION = "1.1"; + private static final String VERSION = "1.2"; private static boolean runningInSpigot = false; public static void load(boolean runningInSpigot) { diff --git a/src/codedcosmos/enderbot/plugin/MinecraftChatListener.java b/src/codedcosmos/enderbot/plugin/MinecraftChatListener.java index 42e3399..be4b4c4 100644 --- a/src/codedcosmos/enderbot/plugin/MinecraftChatListener.java +++ b/src/codedcosmos/enderbot/plugin/MinecraftChatListener.java @@ -27,21 +27,21 @@ public class MinecraftChatListener implements Listener { @EventHandler public void onAsyncPlayerChat(AsyncPlayerChatEvent event) { for (GuildContext context : Guilds.getContexts()) { - context.getInGameChannel().sendMessage("**"+event.getPlayer().getDisplayName()+"** : " + event.getMessage()); + context.getInGameChannel().sendMessage("**"+format(event.getPlayer().getDisplayName())+"** : " + event.getMessage()); } } @EventHandler public void onPlayerJoin(PlayerJoinEvent event) { for (GuildContext context : Guilds.getContexts()) { - context.getInGameChannel().sendMessage("`"+event.getPlayer().getName()+" joined the game`"); + context.getInGameChannel().sendMessage("`"+format(event.getPlayer().getName())+" joined the game`"); } } @EventHandler public void onPlayerQuit(PlayerQuitEvent event) { for (GuildContext context : Guilds.getContexts()) { - context.getInGameChannel().sendMessage("`"+event.getPlayer().getDisplayName()+" left the game`"); + context.getInGameChannel().sendMessage("`"+format(event.getPlayer().getDisplayName())+" left the game`"); } }