Skip to content

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

License

Notifications You must be signed in to change notification settings

sebastianjnuwu/CraftCourier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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

About

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

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages