<commit_before>package com.pjbollinger.guilds;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

public class Guilds extends JavaPlugin {

    @Override
    public void onEnable(){
        getLogger().info("Guilds has started.");
    }

    @Override
    public void onDisable(){
        getLogger().info("Guilds has stopped.");
    }

    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
        if(cmd.getName().equalsIgnoreCase("Judy")){
            getLogger().info("Judy says, 'Hi!'");
            return true;
        }
        else if(cmd.getName().equalsIgnoreCase("gs")){
            if(args[0].equalsIgnoreCase("create")){
                //Stuff for creating a faction will go here
                //Need to specify <name of Guild>
                getLogger().info("You want to make a Guild with the name: " + args[1]);
            }
            else if(args[0].equalsIgnoreCase("invite")){
                //Stuff for inviting a player will go here
                //Need to specify <name>
            }
            else if(args[0].equalsIgnoreCase("invitations")){
                //Stuff for viewing which Guild(s) have invited a player to join will go here
            }
            else if(args[0].equalsIgnoreCase("join")){
                //Stuff for if invited OR if desire to join an OPEN Guild
                //Need to specify <name of Guild>
            }
            else if(args[0].equalsIgnoreCase("leave")){
                //Stuff for leaving the Guild
            }
            else if(args[0].equalsIgnoreCase("kick")){
                //Stuff for getting rid of a troublemaker
                //Need to specify <name>
            }
            else if(args[0].equalsIgnoreCase("moderator")){
                //Stuff for designating a Guild member as moderator of the Guild
                //Need to specify <name>
            }<commit_msg>Prevent code from crashing with gs create<commit_after>package com.pjbollinger.guilds;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;

public class Guilds extends JavaPlugin {

    @Override
    public void onEnable(){
        getLogger().info("Guilds has started.");
    }

    @Override
    public void onDisable(){
        getLogger().info("Guilds has stopped.");
    }

    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
        if(cmd.getName().equalsIgnoreCase("Judy")){
            getLogger().info("Judy says, 'Hi!'");
            return true;
        }
        else if(cmd.getName().equalsIgnoreCase("gs")){
            if(args[0].equalsIgnoreCase("create")){
                //Stuff for creating a faction will go here
                //Need to specify <name of Guild>
                if(args.length == 2){
                    getLogger().info("You want to make a Guild with the name: " + args[1]);
                }
                else {
                    getLogger().warning("Command format is /gs create <name of Guild>");
                }
            }
            else if(args[0].equalsIgnoreCase("invite")){
                //Stuff for inviting a player will go here
                //Need to specify <name>
            }
            else if(args[0].equalsIgnoreCase("invitations")){
                //Stuff for viewing which Guild(s) have invited a player to join will go here
            }
            else if(args[0].equalsIgnoreCase("join")){
                //Stuff for if invited OR if desire to join an OPEN Guild
                //Need to specify <name of Guild>
            }
            else if(args[0].equalsIgnoreCase("leave")){
                //Stuff for leaving the Guild
            }
            else if(args[0].equalsIgnoreCase("kick")){
                //Stuff for getting rid of a troublemaker
                //Need to specify <name>
            }
            else if(args[0].equalsIgnoreCase("moderator")){
                //Stuff for designating a Guild member as moderator of the Guild
                //Need to specify <name>
            }
{'fraction_non_alphanumeric': 0.10861244019138756, 'fraction_numerical': 0.004066985645933014, 'mean_word_length': 1.7817697937458417, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2267357', 'n_tokens_mistral': 1136, 'n_tokens_neox': 1054, 'n_words': 331}