Skip to content

Commit

Permalink
v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Mar 21, 2020
1 parent 8d45fb4 commit 9443d3a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group 'codedcosmos'
version '1.1'
version '1.2'
mainClassName = 'codedcosmos.enderbot.core.EnderBot'

sourceCompatibility = 1.8
Expand Down
2 changes: 1 addition & 1 deletion res/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: EnderBot
version: 1.1
version: 1.2
author: codedcosmos
main: codedcosmos.enderbot.plugin.MinecraftPlugin
api-version: 1.15
Expand Down
2 changes: 1 addition & 1 deletion src/codedcosmos/enderbot/core/EnderBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions src/codedcosmos/enderbot/plugin/MinecraftChatListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -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`");
}
}

Expand Down

0 comments on commit 9443d3a

Please sign in to comment.