Domain - Land Claiming & Protection icon

Domain - Land Claiming & Protection -----

Highly configurable land claiming, grief protection & protection fields for 1.14-1.20



MySQL Support Added | Major internal updates | bStats
Change Log 1.10.0

This is a fairly large change with a fairly small (but long requested) new feature list.

Before we go any further..

BACK UP YOUR DOMAIN FOLDER BEFORE UPDATING
I will provide whatever support I can via Discord if you're having issues, but if you don't back up the folder, I may be limited in what I can do to help.


New Features

MySQL support has been added

To use this, you MUST add the following to your config, and then alter to suit your requirements

Code (YAML):
  # If you wish to save to MySQL database instead of file, make sure to fill this section in with the appropriate
    # information, and set use = true
    # If you have use set to true, your MySQL database MUST be accessible or Domain will error out
    # If you do not wish to use MySQL, leave use = false, and the Domain data will be saved in your data folder
    mysql
:
  # If true, Bazaar will attempt to use the database
    use
: false
    # Your hostname/IP address
    host
: "your_host"
    # Your MySQL port (default is 3306)
    port
: 3306
    # Your database name, defaults to "ibex" but can be any existing database
    # Database MUST exist before running
    database
: "ibex"
    # Your username and password must have permission to your database
    username
: "your_username"
    password
: "your_password"
If your database is not accessible, Domain WILL error out.

With MySQL comes two new commands which can be run from console only.

/domain transfer_to_mysql

This will take all the currently loaded fields and save them to the database (assuming it is accessible), it does NOT remove the files from the Data folder.

After you run it, you should be able to stop the server, change the config to use mysql, and it will read from database on next startup.

NOTE: THIS WILL DELETE ANY ENTRIES FROM THE ibex_plugin TABLE IN THE DATABASE FOR DOMAIN BEFORE SAVING THE FIELDS

/domain transfer_to_file

This command does the opposite of above, it reads all the currently loaded fields and saves them to file. It does NOT remove the entries from the database.

NOTE: THIS WILL DELETE ANY DATA FILES FROM THE Data FOLDER BEFORE SAVING THE FIELDS

This command however could be useful for backing up the data from the database, or if you decide to stop using MySQL.

bStats Added

bStats collects anonymous usage data - and you can turn it off using the bStats config file, or, you can add the following to the Domain config.yml

Code (YAML):
allow_bstats : false
This will default to allowing bStats.

Other Updates

The package has changed from work.torp.domain to com.ibexmc.domain - If you are using the API, please make appropriate changes

I have stripped out most of the generic functions from Domain, including things like localization, sending messages, various string and number functions, inventory/item functions, etc.

These have all been moved to an internal library which is shared across all Ibex plugins moving forward.

This update necessitated MAJOR internal changes, and while I do not anticipate any issues, please let me know if something seems to work a little differently.

Domain Blueprints - The blueprint was the internal configuration for your blocks (griefprevent, city, etc.) - This has been retired and replaced with a LegacyFileConfig - note the use of the word Legacy here - as of this update, the old format is considered legacy - a new version will be coming in a future update. You won't need to worry about it as Domain will do all the conversions for you, but if you're hooking into Domain, you may see changes.

Having trouble?

Come speak to us on Discord! https://discord.ibexmc.com
----------, Oct 24, 2023
Resource Information
Author:
----------
Total Downloads: 210
First Release: Jan 30, 2019
Last Update: Aug 23, 2024
Category: ---------------
All-Time Rating:
32 ratings
Find more info at torpkev.github.io...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings