CraftGPT icon

CraftGPT -----

A simple ChatGPT interface for Minecraft.



CraftGPT
CraftGPT is a lightweight plugin that allows integration of an AI-powered chatbot into a Minecraft server. It enables players to interact with an AI chatbot that uses OpenAI's API to generate responses based on the conversation.

Features

  • A lightweight plugin with minimal impact on server performance
  • Easy integration into your Spigot server
  • Command-based interface for generating responses
  • Cooldown timer to prevent spamming
  • Flexible configuration

Installation

To install CraftGPT, you need to sign up for an OpenAI API key, which is required to use the API. Here are the steps:
  1. Visit the OpenAI website and create an account.
  2. After creating an account, visit the API keys page to generate an API key.
  3. Copy the API key to your clipboard.
After getting your OpenAI API key, follow these steps to install CraftGPT:
  1. Download the plugin from SpigotMC and place it in your server's plugins directory.
  2. Open the plugins/CraftGPT/config.yml file in a text editor.
  3. Paste your OpenAI API key into the token field in the configuration file.
  4. Save the configuration file and restart your server.
CraftGPT is now installed and ready to use.

Configuration

CraftGPT is highly configurable via the config.yml file. Here are the available configuration options:
  • cooldown: The cooldown time in milliseconds between /gpt commands.
  • show-errors: Whether to display error messages or not.
  • messages: Customizable messages that are displayed to players in various situations, including cooldown messages and error messages. These messages now support formatting! Check out Formatting for info.
  • chatgpt: Various ChatGPT settings.
By default, CraftGPT uses the gpt-3.5-turbo model, which is cheap, powerful, and designed specifically for conversations. However, you can choose to use a different model by changing the model configuration option.

Usage

CraftGPT provides three commands:
  • /craftgpt: Reload the configuration. Players must have the craftgpt.reload permission to use this command.
  • /gpt <text>: Generates a response to the given text. Players must have the craftgpt.gpt permission to use this command. This command has a cooldown timer to prevent spamming. If a player attempts to use the command while it is on cooldown, they will receive a message indicating how long they must wait before using the command again.
  • /newchat: Clears the chat dialog. Players must have the craftgpt.newchat permission to use this command.
Both commands have a cooldown timer to prevent spamming. The cooldown time can be configured in the config.yml file. If a player attempts to use a command while it is on cooldown, they will receive a message indicating how long they must wait before using the command again.

Permissions

CraftGPT provides the following permission nodes:
  • craftgpt.reload: Allows players to use the /craftgpt command.
  • craftgpt.gpt: Allows players to use the /gpt command.
  • craftgpt.newchat: Allows players to use the /newchat command.
  • craftgpt.use: Grants both of the above. This permission is granted by default.

Support

If you have any issues with CraftGPT or need help configuring it, please feel free to discuss here.

Disclaimer

CraftGPT is not affiliated with or endorsed by OpenAI. The plugin uses OpenAI's API, but is not officially supported by OpenAI.

Development Status

CraftGPT is currently in early development. While the plugin has been tested and is functional, it is not yet feature-complete and may undergo significant changes in the future.
If you are interested in seeing further development of CraftGPT, please feel free to reach out to me, as I will not update it unless someone is actually using it. Your feedback and suggestions are always welcome, and will help me to improve the plugin over time.
Resource Information
Author:
----------
Total Downloads: 910
First Release: May 5, 2023
Last Update: Oct 16, 2023
Category: ---------------
All-Time Rating:
4 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings