package com.fernandobarillas.mchorse;

import com.fernandobarillas.mchorse.executors.McHorseCommandExecutor;
import com.fernandobarillas.mchorse.listeners.McHorsePlayerListener;
import org.bukkit.entity.Player;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.HashMap;

public class McHorse extends JavaPlugin {

    private HashMap<String, Player> mPlayerMap;
    private McHorsePlayerListener mPlayerListener = new McHorsePlayerListener(this);

    public HashMap<String, Player> getOnlinePlayers() {
        mPlayerMap = new HashMap<String, Player>();

        for (Player player : getServer().getOnlinePlayers()) {
            mPlayerMap.put(player.getName(), player);
        }

        return mPlayerMap;
    }

    @Override
    public void onDisable() {
        mPlayerMap = null;
    }

    @Override
    public void onEnable() {
        getOnlinePlayers();
        getLogger().info("Online Players:");
        for (Player player : mPlayerMap.values()) {
            getLogger().info(player.getName());
        }

        getCommand("horse").setExecutor(new McHorseCommandExecutor(this));
        getCommand("h").setExecutor(new McHorseCommandExecutor(this));

        // Register event handlers
        PluginManager pluginManager = getServer().getPluginManager();
        pluginManager.registerEvents(mPlayerListener, this);
    }
}

@@ -167,24 +167,25 @@
 erListener;%0A
+%0A
 import org.b
@@ -402,24 +402,25 @@
 mPlayerMap;%0A
+%0A
     private 
@@ -489,24 +489,678 @@
 ner(this);%0A%0A
+    private String mHorseWord;%0A%0A    /**%0A     * Gets the word that the plugin is using to keep score. This is the word %22Horse%22 by default.%0A     *%0A     * @return The word that the plugin is using to keep score.%0A     */%0A    public String getHorseWord() %7B%0A        return mHorseWord;%0A    %7D%0A%0A    /**%0A     * Allows players to customize the word to use in a game of Horse, even though traditionally %22Horse%22 is used.%0A     *%0A     * @param horseWord The new word to use for scoring. Must have a length of 1 or greater%0A     */%0A    public void setHorseWord(String horseWord) %7B%0A        if (horseWord.length() %3E 0) %7B%0A            mHorseWord = horseWord;%0A        %7D%0A    %7D%0A
     public H
@@ -1708,24 +1708,24 @@
 getName());%0A
-
         %7D%0A%0A 
@@ -1713,32 +1713,75 @@
 me());%0A        %7D
+%0A        mHorseWord = Constants.HORSE_WORD;
 %0A%0A        getCom

Allow customizing the game word to something other than "Horse"