Skip to content

Latest commit

 

History

History
100 lines (76 loc) · 4.02 KB

README.md

File metadata and controls

100 lines (76 loc) · 4.02 KB

CraftCourier

profile

Build License

🛒 CraftCourier automates the delivery of items purchased in Minecraft virtual stores, ensuring fast and secure deliveries integrated with nLogin.

  • Discord webhook notifications
  • Full/empty inventory checks
  • Automatic command execution

📖 About

CraftCourier is an advanced plugin designed to seamlessly manage and execute the delivery of purchased items in Minecraft servers. It efficiently tracks approved purchases and automatically executes the necessary commands to deliver products directly to players.

⚙️ Config

To configure the plugin, edit the config.yml file located in the plugins/CraftCourier directory. Below is a sample configuration:

# Database configuration
database:
  hostname: "localhost:3306"  # The hostname and port of your MySQL server
  database: "database_name"    # The name of the database to use
  username: "username"         # The username to connect to the database
  password: "password"         # The password to connect to the database

# Webhook configuration
webhook:
  enable: false   # Enable or disable webhook notifications
  url: ""         # The URL to send webhook notifications to
  message: ""     # The message to send via the webhook when a purchase is processed

# Table configuration for transactions
table:
  transaction:
    table-name: "TRANSACTIONS"  # The name of the transactions table in your database
    columns:
      nickname: "nickname"      # The column name for the player's nickname
      status: "status"          # The column name for the transaction status
      uuid: "uuid"              # The column name for the player's UUID
    status: 
      default: 0                # Default status code for transactions
      approved: 1               # Status code for approved transactions
      received: 2               # Status code for received transactions

# Bonus configuration
bonus:
  enable: true   # Enable or disable the bonus feature
  amount: 2 # The number of purchases required to receive a bonus
  message: "&aCongratulations, you have received a bonus thanks to purchases made on the server!"  # The message sent to the player when they receive a bonus
  command: "give @player diamond 1"  # The command executed to give the player their bonus

# Message configuration
message:
  notification: "&aPlayer @player received their purchase: @product (@command)"  # Notification message when a player receives a purchase
  permission: "&cYou do not have permission to execute this command!"            # Message when a player lacks permission
  inventory: "&eEmpty your inventory to receive your purchase, and log in again!"  # Message when a player's inventory is Full

💡 Developer

If any developer wants to contribute, just open a PR. Follow the steps below to compile the plugin. Remember, we are using Ubuntu:

• Install Git:

apt install git -y 

• Install Maven:

apt install maven -y 

• Clone the repository:

git clone https://github.com/sebastianjnuwu/craftcourier

• Enter the folder:

cd craftcourier

• Compile the plugin:

mvn install 

📊 Bstats