mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-07 07:51:35 +01:00
Clean up a few files.
This commit is contained in:
parent
ec08d7d73a
commit
adcc41413d
4
.gitignore
vendored
4
.gitignore
vendored
@ -5,8 +5,8 @@
|
||||
|
||||
.DS_Store
|
||||
|
||||
/*.iml
|
||||
/.idea
|
||||
**/*.iml
|
||||
**/.idea
|
||||
|
||||
/bin
|
||||
/dependency-reduced-pom.xml
|
||||
|
@ -1,33 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id=":worldguard-core" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.sk89q.worldguard" external.system.module.version="7.0.0-SNAPSHOT" type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="false">
|
||||
<output url="file://$MODULE_DIR$/build/classes/main" />
|
||||
<output-test url="file://$MODULE_DIR$/build/classes/test" />
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q.intake:intake:4.2-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.google.guava:guava:18.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.google.code.findbugs:jsr305:3.0.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q.worldedit:worldedit-core:6.1.1-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q:squirrelid:0.1.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.flywaydb:flyway-core:3.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.khelekore:prtree:1.5.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: de.schlichtherle:truezip:6.8.3" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: rhino:js:1.7R2" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.yaml:snakeyaml:1.9" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.thoughtworks.paranamer:paranamer:2.6" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.google.code.gson:gson:2.2.4" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q.lib:jlibnoise:1.0.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q:jchronic:0.2.4a" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: junit:junit:4.8.1" level="project" />
|
||||
</component>
|
||||
</module>
|
@ -1,65 +0,0 @@
|
||||
#
|
||||
# WorldGuard blacklist
|
||||
#
|
||||
# The blacklist lets you block actions, blocks, and items from being used.
|
||||
# You choose a set of "items to affect" and a list of "actions to perform."
|
||||
#
|
||||
###############################################################################
|
||||
#
|
||||
# Example to block some ore mining and placement:
|
||||
# [coalore,goldore,ironore]
|
||||
# on-break=deny,log,kick
|
||||
# on-place=deny,tell
|
||||
#
|
||||
# Events that you can detect:
|
||||
# - on-break (when a block of this type is about to be broken)
|
||||
# - on-destroy-with (the item/block held by the user while destroying)
|
||||
# - on-place (a block is being placed)
|
||||
# - on-use (an item like flint and steel or a bucket is being used)
|
||||
# - on-interact (when a block in used (doors, chests, etc.))
|
||||
# - on-drop (an item is being dropped from the player's inventory)
|
||||
# - on-acquire (an item enters a player's inventory via some method)
|
||||
# - on-dispense (a dispenser is about to dispense an item)
|
||||
#
|
||||
# Actions (for events):
|
||||
# - deny (deny completely, used blacklist mode)
|
||||
# - allow (used in whitelist mode)
|
||||
# - notify (notify admins with the 'worldguard.notify' permission)
|
||||
# - log (log to console/file/database)
|
||||
# - tell (tell a player that that's not allowed)
|
||||
# - kick (kick player)
|
||||
# - ban (ban player)
|
||||
#
|
||||
# Options:
|
||||
# - ignore-groups (comma-separated list of groups to not affect)
|
||||
# - ignore-perms (comma-separated list of permissions to not affect - make up
|
||||
# your very own permissions!)
|
||||
# - comment (message for yourself that is printed with 'log' and 'notify')
|
||||
# - message (optional message to show the user instead; %s is the item name)
|
||||
#
|
||||
###############################################################################
|
||||
#
|
||||
# For more information, see:
|
||||
# http://wiki.sk89q.com/wiki/WorldGuard/Blacklist
|
||||
#
|
||||
###############################################################################
|
||||
#
|
||||
# Some examples follow.
|
||||
# REMEMBER: If a line has # in front, it will be ignored.
|
||||
#
|
||||
|
||||
# Deny lava buckets
|
||||
#[lavabucket]
|
||||
#ignore-perms=my.own.madeup.permission
|
||||
#ignore-groups=admins,mods
|
||||
#on-use=deny,tell
|
||||
|
||||
# Deny some ore
|
||||
#[coalore,goldore,ironore]
|
||||
#ignore-groups=admins,mods
|
||||
#on-break=notify,deny,log
|
||||
|
||||
# Some funky data value tests
|
||||
#[wood:0;>=2]
|
||||
#ignore-groups=admins,mods
|
||||
#on-break=notify,deny,log
|
@ -1,22 +0,0 @@
|
||||
#
|
||||
# WorldGuard's configuration file
|
||||
#
|
||||
# About editing this file:
|
||||
# - DO NOT USE TABS. You MUST use spaces or Bukkit will complain. If
|
||||
# you use an editor like Notepad++ (recommended for Windows users), you
|
||||
# must configure it to "replace tabs with spaces." In Notepad++, this can
|
||||
# be changed in Settings > Preferences > Language Menu.
|
||||
# - Don't get rid of the indents. They are indented so some entries are
|
||||
# in categories (like "enforce-single-session" is in the "protection"
|
||||
# category.
|
||||
# - If you want to check the format of this file before putting it
|
||||
# into WorldGuard, paste it into http://yaml-online-parser.appspot.com/
|
||||
# and see if it gives "ERROR:".
|
||||
# - Lines starting with # are commentsand so they are ignored.
|
||||
#
|
||||
# WARNING:
|
||||
# Remember to check the compatibility spreadsheet for WorldGuard to see
|
||||
# if any features are currently broken in your version of Bukkit.
|
||||
#
|
||||
|
||||
# -- This should be automatically replaced by the plugin in-game --
|
@ -1,21 +0,0 @@
|
||||
#
|
||||
# WorldGuard's configuration file.
|
||||
#
|
||||
# This is the a per-world configuration file. It only affects one
|
||||
# corresponding world.
|
||||
#
|
||||
# About editing this file:
|
||||
# - DO NOT USE TABS. You MUST use spaces or Bukkit will complain. If
|
||||
# you use an editor like Notepad++ (recommended for Windows users), you
|
||||
# must configure it to "replace tabs with spaces." In Notepad++, this can
|
||||
# be changed in Settings > Preferences > Language Menu.
|
||||
# - Don't get rid of the indents. They are indented so some entries are
|
||||
# in categories (like "enforce-single-session" is in the "protection"
|
||||
# category.
|
||||
# - If you want to check the format of this file before putting it
|
||||
# into WorldGuard, paste it into http://yaml-online-parser.appspot.com/
|
||||
# and see if it gives "ERROR:".
|
||||
# - Lines starting with # are comments and so they are ignored.
|
||||
#
|
||||
|
||||
# -- This should be automatically replaced by the plugin in-game --
|
@ -1,212 +0,0 @@
|
||||
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
|
||||
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
|
||||
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';
|
||||
|
||||
-- -----------------------------------------------------
|
||||
-- Table `group`
|
||||
-- -----------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `${tablePrefix}group` (
|
||||
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT ,
|
||||
`name` VARCHAR(64) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
PRIMARY KEY (`id`) ,
|
||||
UNIQUE INDEX `name` (`name` ASC) )
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARACTER SET = utf8
|
||||
COLLATE = utf8_bin;
|
||||
|
||||
|
||||
-- -----------------------------------------------------
|
||||
-- Table `world`
|
||||
-- -----------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `${tablePrefix}world` (
|
||||
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT ,
|
||||
`name` VARCHAR(128) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
PRIMARY KEY (`id`) ,
|
||||
UNIQUE INDEX `name` (`name` ASC) )
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARACTER SET = utf8
|
||||
COLLATE = utf8_bin;
|
||||
|
||||
|
||||
-- -----------------------------------------------------
|
||||
-- Table `region`
|
||||
-- -----------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `${tablePrefix}region` (
|
||||
`id` VARCHAR(128) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
`world_id` INT(10) UNSIGNED NOT NULL ,
|
||||
`type` ENUM('cuboid','poly2d','global') CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
`priority` SMALLINT(6) NOT NULL DEFAULT '0' ,
|
||||
`parent` VARCHAR(128) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NULL DEFAULT NULL ,
|
||||
PRIMARY KEY (`id`, `world_id`) ,
|
||||
INDEX `fk_region_world` (`world_id` ASC) ,
|
||||
INDEX `parent` (`parent` ASC) ,
|
||||
CONSTRAINT `fk_${tablePrefix}region_world1`
|
||||
FOREIGN KEY (`world_id` )
|
||||
REFERENCES `${tablePrefix}world` (`id` )
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE,
|
||||
CONSTRAINT `${tablePrefix}parent`
|
||||
FOREIGN KEY (`parent` )
|
||||
REFERENCES `${tablePrefix}region` (`id` )
|
||||
ON DELETE SET NULL
|
||||
ON UPDATE CASCADE)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARACTER SET = utf8
|
||||
COLLATE = utf8_bin;
|
||||
|
||||
|
||||
-- -----------------------------------------------------
|
||||
-- Table `region_cuboid`
|
||||
-- -----------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `${tablePrefix}region_cuboid` (
|
||||
`region_id` VARCHAR(128) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
`world_id` INT(10) UNSIGNED NOT NULL ,
|
||||
`min_x` BIGINT(20) NOT NULL ,
|
||||
`min_y` BIGINT(20) NOT NULL ,
|
||||
`min_z` BIGINT(20) NOT NULL ,
|
||||
`max_x` BIGINT(20) NOT NULL ,
|
||||
`max_y` BIGINT(20) NOT NULL ,
|
||||
`max_z` BIGINT(20) NOT NULL ,
|
||||
PRIMARY KEY (`region_id`, `world_id`) ,
|
||||
INDEX `fk_region_cuboid_region` (`region_id` ASC) ,
|
||||
CONSTRAINT `fk_${tablePrefix}region_cuboid_region`
|
||||
FOREIGN KEY (`region_id` , `world_id` )
|
||||
REFERENCES `${tablePrefix}region` (`id` , `world_id` )
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARACTER SET = utf8
|
||||
COLLATE = utf8_bin;
|
||||
|
||||
|
||||
-- -----------------------------------------------------
|
||||
-- Table `region_flag`
|
||||
-- -----------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `${tablePrefix}region_flag` (
|
||||
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT ,
|
||||
`region_id` VARCHAR(128) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
`world_id` INT(10) UNSIGNED NOT NULL ,
|
||||
`flag` VARCHAR(45) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
`value` VARCHAR(256) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
PRIMARY KEY (`id`) ,
|
||||
INDEX `fk_flags_region` (`region_id` ASC, `world_id` ASC) ,
|
||||
CONSTRAINT `fk_${tablePrefix}flags_region`
|
||||
FOREIGN KEY (`region_id` , `world_id` )
|
||||
REFERENCES `${tablePrefix}region` (`id` , `world_id` )
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARACTER SET = utf8
|
||||
COLLATE = utf8_bin;
|
||||
|
||||
|
||||
-- -----------------------------------------------------
|
||||
-- Table `region_groups`
|
||||
-- -----------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `${tablePrefix}region_groups` (
|
||||
`region_id` VARCHAR(128) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
`world_id` INT(10) UNSIGNED NOT NULL ,
|
||||
`group_id` INT(10) UNSIGNED NOT NULL ,
|
||||
`owner` TINYINT(1) NOT NULL ,
|
||||
PRIMARY KEY (`region_id`, `world_id`, `group_id`) ,
|
||||
INDEX `fk_region_groups_region` (`region_id` ASC) ,
|
||||
INDEX `fk_region_groups_group` (`group_id` ASC) ,
|
||||
CONSTRAINT `fk_${tablePrefix}region_groups_group`
|
||||
FOREIGN KEY (`group_id` )
|
||||
REFERENCES `${tablePrefix}group` (`id` )
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE,
|
||||
CONSTRAINT `fk_${tablePrefix}region_groups_region`
|
||||
FOREIGN KEY (`region_id` , `world_id` )
|
||||
REFERENCES `${tablePrefix}region` (`id` , `world_id` )
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARACTER SET = utf8
|
||||
COLLATE = utf8_bin;
|
||||
|
||||
|
||||
-- -----------------------------------------------------
|
||||
-- Table `user`
|
||||
-- -----------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `${tablePrefix}user` (
|
||||
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT ,
|
||||
`name` VARCHAR(64) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
PRIMARY KEY (`id`) ,
|
||||
UNIQUE INDEX `name` (`name` ASC) )
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARACTER SET = utf8
|
||||
COLLATE = utf8_bin;
|
||||
|
||||
|
||||
-- -----------------------------------------------------
|
||||
-- Table `region_players`
|
||||
-- -----------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `${tablePrefix}region_players` (
|
||||
`region_id` VARCHAR(128) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
`world_id` INT(10) UNSIGNED NOT NULL ,
|
||||
`user_id` INT(10) UNSIGNED NOT NULL ,
|
||||
`owner` TINYINT(1) NOT NULL ,
|
||||
PRIMARY KEY (`region_id`, `world_id`, `user_id`) ,
|
||||
INDEX `fk_region_players_region` (`region_id` ASC) ,
|
||||
INDEX `fk_region_users_user` (`user_id` ASC) ,
|
||||
CONSTRAINT `fk_${tablePrefix}region_users_region`
|
||||
FOREIGN KEY (`region_id` , `world_id` )
|
||||
REFERENCES `${tablePrefix}region` (`id` , `world_id` )
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE,
|
||||
CONSTRAINT `fk_${tablePrefix}region_users_user`
|
||||
FOREIGN KEY (`user_id` )
|
||||
REFERENCES `${tablePrefix}user` (`id` )
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARACTER SET = utf8
|
||||
COLLATE = utf8_bin;
|
||||
|
||||
|
||||
-- -----------------------------------------------------
|
||||
-- Table `region_poly2d`
|
||||
-- -----------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `${tablePrefix}region_poly2d` (
|
||||
`region_id` VARCHAR(128) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
`world_id` INT(10) UNSIGNED NOT NULL ,
|
||||
`min_y` INT(11) NOT NULL ,
|
||||
`max_y` INT(11) NOT NULL ,
|
||||
PRIMARY KEY (`region_id`, `world_id`) ,
|
||||
INDEX `fk_region_poly2d_region` (`region_id` ASC) ,
|
||||
CONSTRAINT `fk_${tablePrefix}region_poly2d_region`
|
||||
FOREIGN KEY (`region_id` , `world_id` )
|
||||
REFERENCES `${tablePrefix}region` (`id` , `world_id` )
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARACTER SET = utf8
|
||||
COLLATE = utf8_bin;
|
||||
|
||||
|
||||
-- -----------------------------------------------------
|
||||
-- Table `region_poly2d_point`
|
||||
-- -----------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `${tablePrefix}region_poly2d_point` (
|
||||
`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT ,
|
||||
`region_id` VARCHAR(128) CHARACTER SET 'utf8' COLLATE 'utf8_bin' NOT NULL ,
|
||||
`world_id` INT(10) UNSIGNED NOT NULL ,
|
||||
`x` BIGINT(20) NOT NULL ,
|
||||
`z` BIGINT(20) NOT NULL ,
|
||||
PRIMARY KEY (`id`) ,
|
||||
INDEX `fk_region_poly2d_point_region_poly2d` (`region_id` ASC, `world_id` ASC) ,
|
||||
CONSTRAINT `fk_${tablePrefix}region_poly2d_point_region_poly2d`
|
||||
FOREIGN KEY (`region_id` , `world_id` )
|
||||
REFERENCES `${tablePrefix}region_poly2d` (`region_id` , `world_id` )
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARACTER SET = utf8
|
||||
COLLATE = utf8_bin;
|
||||
|
||||
|
||||
|
||||
SET SQL_MODE=@OLD_SQL_MODE;
|
||||
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
|
||||
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
@ -1,27 +0,0 @@
|
||||
-- Fix WORLDGUARD-3117
|
||||
-- Otherwise, you can't be both an owner and a member of a region
|
||||
|
||||
ALTER TABLE `${tablePrefix}region_players`
|
||||
DROP PRIMARY KEY,
|
||||
ADD PRIMARY KEY (`region_id`, `world_id`, `user_id`, `owner`);
|
||||
|
||||
ALTER TABLE `${tablePrefix}region_groups`
|
||||
DROP PRIMARY KEY,
|
||||
ADD PRIMARY KEY (`region_id`, `world_id`, `group_id`, `owner`);
|
||||
|
||||
-- Fix WORLDGUARD-3030
|
||||
-- Adds UUID support
|
||||
|
||||
ALTER TABLE `${tablePrefix}user`
|
||||
ALTER `name` DROP DEFAULT;
|
||||
|
||||
ALTER TABLE `${tablePrefix}user`
|
||||
CHANGE COLUMN `name` `name` VARCHAR(64) NULL COLLATE 'utf8_bin' AFTER `id`,
|
||||
ADD COLUMN `uuid` CHAR(36) NULL AFTER `name`,
|
||||
ADD UNIQUE INDEX `uuid` (`uuid`);
|
||||
|
||||
-- Strings with differing numbers of trailing spaces are equal in MySQL
|
||||
-- The domains have been updated to trim strings
|
||||
|
||||
UPDATE `${tablePrefix}user` SET `name` = TRIM(`name`);
|
||||
UPDATE `${tablePrefix}group` SET `name` = TRIM(`name`);
|
@ -1,160 +0,0 @@
|
||||
|
||||
CREATE TABLE "${tablePrefix}world" (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT
|
||||
NOT NULL,
|
||||
name TEXT NOT NULL
|
||||
UNIQUE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE "${tablePrefix}region" (
|
||||
id TEXT NOT NULL,
|
||||
world_id INTEGER NOT NULL
|
||||
REFERENCES "${tablePrefix}world" ( id ) ON DELETE CASCADE
|
||||
ON UPDATE CASCADE,
|
||||
type TEXT NOT NULL,
|
||||
priority INTEGER NOT NULL,
|
||||
parent TEXT DEFAULT ( NULL )
|
||||
--REFERENCES "${tablePrefix}region" ( id ) ON DELETE SET NULL
|
||||
-- ON UPDATE CASCADE -- Not supported
|
||||
,
|
||||
PRIMARY KEY ( id, world_id )
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE "${tablePrefix}user" (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT
|
||||
NOT NULL,
|
||||
name TEXT UNIQUE
|
||||
DEFAULT ( NULL ),
|
||||
uuid TEXT UNIQUE
|
||||
DEFAULT ( NULL )
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE "${tablePrefix}group" (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT
|
||||
NOT NULL,
|
||||
name TEXT NOT NULL
|
||||
UNIQUE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE "${tablePrefix}region_cuboid" (
|
||||
region_id TEXT NOT NULL,
|
||||
world_id INTEGER NOT NULL,
|
||||
min_x INTEGER NOT NULL,
|
||||
min_y INTEGER NOT NULL,
|
||||
min_z INTEGER NOT NULL,
|
||||
max_x INTEGER NOT NULL,
|
||||
max_y INTEGER NOT NULL,
|
||||
max_z INTEGER NOT NULL,
|
||||
PRIMARY KEY ( region_id, world_id ),
|
||||
FOREIGN KEY ( region_id, world_id ) REFERENCES "${tablePrefix}region" ( id, world_id ) ON DELETE CASCADE
|
||||
ON UPDATE CASCADE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE "${tablePrefix}region_poly2d" (
|
||||
region_id TEXT NOT NULL,
|
||||
world_id INTEGER NOT NULL,
|
||||
min_y INTEGER NOT NULL,
|
||||
max_y INTEGER NOT NULL,
|
||||
PRIMARY KEY ( region_id, world_id ),
|
||||
FOREIGN KEY ( region_id, world_id ) REFERENCES "${tablePrefix}region" ( id, world_id ) ON DELETE CASCADE
|
||||
ON UPDATE CASCADE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE "${tablePrefix}region_poly2d_point" (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT
|
||||
NOT NULL,
|
||||
region_id TEXT NOT NULL,
|
||||
world_id INTEGER NOT NULL,
|
||||
x INTEGER NOT NULL,
|
||||
z INTEGER NOT NULL,
|
||||
FOREIGN KEY ( region_id, world_id ) REFERENCES "${tablePrefix}region_poly2d" ( region_id, world_id ) ON DELETE CASCADE
|
||||
ON UPDATE CASCADE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE "${tablePrefix}region_groups" (
|
||||
region_id TEXT NOT NULL,
|
||||
world_id INTEGER NOT NULL,
|
||||
group_id INTEGER NOT NULL
|
||||
REFERENCES "${tablePrefix}group" ( id ) ON DELETE CASCADE
|
||||
ON UPDATE CASCADE,
|
||||
owner BOOLEAN NOT NULL,
|
||||
PRIMARY KEY ( region_id, world_id, group_id ),
|
||||
FOREIGN KEY ( region_id, world_id ) REFERENCES "${tablePrefix}region" ( id, world_id ) ON DELETE CASCADE
|
||||
ON UPDATE CASCADE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE "${tablePrefix}region_flag" (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT
|
||||
NOT NULL,
|
||||
region_id TEXT NOT NULL,
|
||||
world_id INTEGER NOT NULL,
|
||||
flag TEXT NOT NULL,
|
||||
value TEXT NOT NULL,
|
||||
FOREIGN KEY ( region_id, world_id ) REFERENCES "${tablePrefix}region" ( id, world_id ) ON DELETE CASCADE
|
||||
ON UPDATE CASCADE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE "${tablePrefix}region_players" (
|
||||
region_id TEXT NOT NULL,
|
||||
world_id INTEGER NOT NULL,
|
||||
user_id INTEGER NOT NULL
|
||||
REFERENCES "${tablePrefix}user" ( id ) ON DELETE CASCADE
|
||||
ON UPDATE CASCADE,
|
||||
owner BOOLEAN NOT NULL,
|
||||
PRIMARY KEY ( region_id, world_id, user_id, owner ),
|
||||
FOREIGN KEY ( region_id, world_id ) REFERENCES "${tablePrefix}region" ( id, world_id ) ON DELETE CASCADE
|
||||
ON UPDATE CASCADE
|
||||
);
|
||||
|
||||
|
||||
CREATE INDEX "idx_${tablePrefix}region_cuboid_region_id" ON "${tablePrefix}region_cuboid" (
|
||||
region_id
|
||||
);
|
||||
|
||||
|
||||
CREATE INDEX "idx_${tablePrefix}region_world_id" ON "${tablePrefix}region" (
|
||||
world_id
|
||||
);
|
||||
|
||||
|
||||
CREATE INDEX "idx_${tablePrefix}region_parent" ON "${tablePrefix}region" (
|
||||
parent
|
||||
);
|
||||
|
||||
|
||||
CREATE INDEX "idx_${tablePrefix}region_poly2d_region_id" ON "${tablePrefix}region_poly2d" (
|
||||
region_id
|
||||
);
|
||||
|
||||
|
||||
CREATE INDEX "idx_${tablePrefix}region_poly2d_point_region_world_id" ON "${tablePrefix}region_poly2d_point" (
|
||||
region_id,
|
||||
world_id
|
||||
);
|
||||
|
||||
|
||||
CREATE INDEX "idx_${tablePrefix}region_groups_region_id" ON "${tablePrefix}region_groups" (
|
||||
region_id
|
||||
);
|
||||
|
||||
|
||||
CREATE INDEX "idx_${tablePrefix}region_groups_group_id" ON "${tablePrefix}region_groups" (
|
||||
group_id
|
||||
);
|
||||
|
||||
|
||||
CREATE INDEX "idx_${tablePrefix}region_flag_region_world_id" ON "${tablePrefix}region_flag" (
|
||||
region_id,
|
||||
world_id,
|
||||
flag
|
||||
);
|
||||
|
@ -1,4 +0,0 @@
|
||||
name: WorldGuard
|
||||
main: com.sk89q.worldguard.bukkit.WorldGuardPlugin
|
||||
version: "${project.version}"
|
||||
softdepend: [WorldEdit, CommandBook]
|
@ -1,47 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id=":worldguard-legacy" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.sk89q.worldguard" external.system.module.version="6.1.2-SNAPSHOT" version="4">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">
|
||||
<output url="file://$MODULE_DIR$/build/classes/main" />
|
||||
<output-test url="file://$MODULE_DIR$/build/classes/test" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="worldguard-core" exported="" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.bukkit:bukkit:1.8.8-R0.1-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q.worldedit:worldedit-bukkit:6.1.1-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q:guavabackport:1.1" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q:commandbook:2.3" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: net.sf.opencsv:opencsv:2.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.googlecode.json-simple:json-simple:1.1.1" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q.worldedit:worldedit-core:6.1.1-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: commons-lang:commons-lang:2.6" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.google.code.gson:gson:2.2.4" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.avaje:ebean:2.8.1" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.yaml:snakeyaml:1.15" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q:dummypermscompat:1.8" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.sk89q.bukkit:bukkit-classloader-check:1.7.9-R0.2" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q:worldedit:5.5.6" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.zachsthings.libcomponents:libcomponents-bukkit:1.2" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: de.schlichtherle:truezip:6.8.3" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: rhino:js:1.7R2" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.thoughtworks.paranamer:paranamer:2.6" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q.lib:jlibnoise:1.0.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.sk89q:jchronic:0.2.4a" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.zachsthings.libcomponents:libcomponents-core:1.2" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.google.guava:guava:18.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.google.code.findbugs:jsr305:3.0.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: javax.persistence:persistence-api:1.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: junit:junit:4.10" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.hamcrest:hamcrest-core:1.1" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Gradle: junit:junit:4.11" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Gradle: org.hamcrest:hamcrest-library:1.2.1" level="project" />
|
||||
<orderEntry type="library" scope="TEST" name="Gradle: org.hamcrest:hamcrest-core:1.3" level="project" />
|
||||
</component>
|
||||
</module>
|
@ -1,38 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id=":worldguard-sponge" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.sk89q.worldguard" external.system.module.version="7.0.0-SNAPSHOT" type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="false">
|
||||
<output url="file://$MODULE_DIR$/build/classes/main" />
|
||||
<output-test url="file://$MODULE_DIR$/build/classes/test" />
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="worldguard-core" exported="" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.spongepowered:spongeapi:2.1-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: ninja.leaping.configurate:configurate-hocon:3.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.flowpowered:flow-math:1.0.1" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.ow2.asm:asm:5.0.3" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: ninja.leaping.configurate:configurate-gson:3.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.google.inject:guice:4.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.spongepowered:event-gen-core:0.9-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.google.code.gson:gson:2.2.4" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.slf4j:slf4j-api:1.7.12" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.flowpowered:flow-noise:1.0.1-SNAPSHOT" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.apache.commons:commons-lang3:3.3.2" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: ninja.leaping.configurate:configurate-yaml:3.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.typesafe:config:1.3.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: ninja.leaping.configurate:configurate-core:3.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: javax.inject:javax.inject:1" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: aopalliance:aopalliance:1.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: org.yaml:snakeyaml:1.16" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.google.guava:guava:18.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="Gradle: com.google.code.findbugs:jsr305:3.0.0" level="project" />
|
||||
</component>
|
||||
</module>
|
Loading…
Reference in New Issue
Block a user