WooMCX is a Minecraft Donation plugin for your server that provides a self-hosted solution where you're the boss. By leveraging a well known eCommerce plugin on the
WordPress side of things, we allow you to specify commands for product variations, general product commands, and resending of donations at any time.
Your config should look like the below section.
ConfigVersion: 1.0.2
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# general settings
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#enable or disable the update checker
UpdateCheck: true
Disable-if-not-updated: true
# Set this to the desired language file you wish to load.
# If your l10n is not available but one is that you know how to speak,consider
# contributing to this plugin at https://github.com/WooMinecraft/WooMinecraft/
lang: "en"
# This is how often, in seconds, the server will contact your WordPress installation
# to see if there are donations that need made.
update_interval: 1500
# Allowed worlds the player needs to be in to run the commands.
# Disabled by default!
whitelist-worlds:
# - world
# Set to true in order to toggle debug information
debug: false
#this can be in a single string or list format, and will run these commands once per order(chargeback)
#it uses the same user variable as the Website
#example: "ban %s" will ban the user who chargedback
#this dosent work for RestAPI Mode
Chargeback-commands: ""
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Connection settings
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
SQL:
#Types: MYSQL, RESTAPI
Type: "MYSQL"
#The rest of these details need to be the same as your wordpress DB setup
#if you run into a issue of it not being able to connect to your WP database, and your details are correct, use another DB host for your wordpress site
#all public MC hosting normally comes with a free mysql DB, use that one for testing
TablePrefix: "wp_"
MySQL:
Host: "localhost"
Port: '3306'
Database: "database"
Username: "username"
Password: "password"
#Besure to set the Key section below to the same key you set in the admin panel of your website
#Mysql Mode Needs its aswell
RestAPI:
# You must set this to your WordPress site URL. If you installed WordPress in a
# subdirectory, it should point there.
URL: "http://playground.dev"
# If you are having issues with REST, or have disabled pretty permalinks. Set this to false.
# Doing so will use the old /index.php?rest_route=/wmc/v1/server/ base
# Setting this to false will also allow you to set the restBasePath value if you have altered your
# installation in any way.
prettyPermalinks: true
# If your REST API has a custom path base, input it here.
# NOTE: This is only loaded if prettyPermalinks is set to false.
# Known good URL bases.
# - /wp-json/wmc/v1/server/
# - /index.php?rest_route=/wmc/v1/server/
restBasePath: ""
# This must match the WordPress key in your admin panel for WooMinecraft
# This is a key that YOU set, both needing to be identical in the admin panel
# and in this config file
# For security purposes, you MUST NOT leave this empty even if you are using MySQL
key: ""
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# GUI settings
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
GUI:
#Set to true to enable GUI
Enabled: true
#Gui Title
Title: "&c&lTest"
#Gui Size
#Gui sizes: 9, 18, 27, 36, 45, 54
Size: 9
items: #you can add more items
1:
#Item ID
id: "STONE"
#Item Name
name: "&c&lTest"
#Item Lore
lore: #add your item description here
- "&c&lTest"
- "&c&lTest"
#Item Amount
amount: 1
#Item Slot
slot: 1
#Item Link
#this is a direct link to the item on your website
link: "https://google.com1"
#Item Enchantments
enchantment:
enabled: true
2:
id: "STONE"
name: "&c&lTest"
lore:
- "&c&lTest"
- "&c&lTest"
amount: 1
slot: 2
link: "https://google.com2"
enchantment:
enabled: true
3:
id: "STONE"
name: "&c&lTest"
lore:
- "&c&lTest"
- "&c&lTest"
amount: 1
slot: 3
link: "https://google.com3"
enchantment:
enabled: true
#you can add more items here
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Bungecord settings
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Set this to true if you are using BungeeCord and have mysql mode enabled
# "false" - This is for a direct install on a single server, and will only send commands to itself. (default)
#note: the default mode works with BungeeCord as well but only supports orders with 1 server in them
#example: if you have 2 servers linked to a single item/order, and a player buys a item/rank on your website, it will only give the rank/item to the server the player is on, skipping the other server
Bungee: false
# "true" - This will make this server the host server, and will send the commands to the other servers connected to it.(all other servers need to be set to false)
# "false" - This will make this server a slave server, and will only accept commands from the host server on the bungeecord proxy.
Bungee-Host: false
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This bridges the gap between PHP, and Java by leveraging both the bukkit/spigot API ( java ) and the WordPress API with WooCommerce support ( php ). It stores commands per order, per player, per command ( yes you read that right ) in the WordPress database. This plugin, either when an op requests it, or on a timer, sends a request to the Wordpress's MySQL server to check for donations for all online players.
If online players have commands waiting to be processed, then all necessary commands are ran. There is NO LIMIT to the type of commands you can set, give
, i
, tp
, etc... all commands are ran
by the console sender, and not a player.
Unfortunately, due to a certain person we are not accepting any contributions, and the sourcecode isnt not publicly available, if you are a Spigot Mod/Admin and need to check the code, contact me on spigot
we cannot be sure how you will use this. However, when providing 'donation' options, you are still considered a
commercial
entity and therefore are bound to the Mojang Commercial Usage Guidelines
You'll need the WordPress plugin for this MC Plugin to work - you can get it here.
- Paper Velocity/Bungeecord support(spigot bungeecord works fine)
- In-Game Gui
- In-Game Config setup
- In-Game Order Management(admin/staff use)
- Chargeback commands
- Complete rewrite for the Java Side
- Auto completing orders
- RestAPI Removed due to issues with different webhosts
- Hotfix for 274
- Fix pretty-permalink flag to actually use ugly permalinks for rest endpoints.
- Fix logic for getting pending orders.
- Additional logging for pending orders.
- Fix RestApi issues
- Code cleanup
- Update
/woo ping
, now has a sub command/option to ping any websiteexample: /woo ping https://www.google.com/
- Updates the helpsite command.
- Finishes the
/woo ping
command. - Closed #238 - thanks @YouHaveTrouble
- Fixes an issue with UUIDs on server-side authentication ( @jerzan )
- Adds some additional command logic and cleans things up. ( @jerzan )
- edit RestApi Url to fix alot of user issues
- extend compatibility for mc versions 1.10 - 1.18.1
- added debug command( /woo debug ) and a ping command ( /woo ping)
- added mojang auth to the plugin side, jerzean
- Added polish translation props YouHaveTrouble
- 1.16.x support props jerzean
- Cleanup various readme sections.
- Disabled legacy support, "should still work on 1.12 and below(untested)"
- Update spigot api to 1.14.4+
- Tested on Spigot 1.12.2
- Cleaned up a lot of internals by simplifying a ton of requests.
- Now building with okHTTP3 library for ease of use.
- Move to REST API.