Skip to content

Commit

Permalink
A little cleanup to make this dev build suitable for use
Browse files Browse the repository at this point in the history
  • Loading branch information
gdude2002 committed Mar 24, 2015
1 parent cbec25f commit 6cbe2d2
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 74 deletions.
50 changes: 25 additions & 25 deletions src/main/java/com/archivesmc/archblock/config/MainConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,31 +36,31 @@ public void reload() {
this.plugin.getLogger().info("Updated config to version 0.0.3");
this.reload();
break;
case "0.0.3":
this.configuration.set("special_permissions.prevent_burning", false);
this.configuration.set("special_permissions.prevent_damage", true);
this.configuration.set("special_permissions.prevent_fade", true);
this.configuration.set("special_permissions.prevent_form", true);
this.configuration.set("special_permissions.prevent_liquid_flow", false);
this.configuration.set("special_permissions.prevent_dragon_egg_teleport", true);
this.configuration.set("special_permissions.prevent_growth", true);
this.configuration.set("special_permissions.prevent_ignite", true);
this.configuration.set("special_permissions.prevent_physics", false);
this.configuration.set("special_permissions.prevent_leaf_decay", true);
this.configuration.set("special_permissions.prevent_sign_change", true);
this.configuration.set("special_permissions.prevent_entity_explode", false);
this.configuration.set("special_permissions.prevent_hanging_break", true);
this.configuration.set("special_permissions.prevent_hanging_break_by_entity", true);
this.configuration.set("special_permissions.prevent_hanging_place", true);
this.configuration.set("special_permissions.prevent_lightning_strike", false);
this.configuration.set("special_permissions.prevent_player_bucket_empty", true);
this.configuration.set("special_permissions.prevent_player_bucket_fill", true);
this.configuration.set("special_permissions.prevent_vehicle_create", true);
this.configuration.set("version", "0.1.0");
this.plugin.saveConfig();
this.plugin.getLogger().info("Updated config to version 0.1.0");
this.plugin.getLogger().info("You may want to check out all the extra options!");
this.reload();
case "0.0.3": // Don't do the update for now, since these are non-functional
// this.configuration.set("special_permissions.prevent_burning", false);
// this.configuration.set("special_permissions.prevent_damage", true);
// this.configuration.set("special_permissions.prevent_fade", true);
// this.configuration.set("special_permissions.prevent_form", true);
// this.configuration.set("special_permissions.prevent_liquid_flow", false);
// this.configuration.set("special_permissions.prevent_dragon_egg_teleport", true);
// this.configuration.set("special_permissions.prevent_growth", true);
// this.configuration.set("special_permissions.prevent_ignite", true);
// this.configuration.set("special_permissions.prevent_physics", false);
// this.configuration.set("special_permissions.prevent_leaf_decay", true);
// this.configuration.set("special_permissions.prevent_sign_change", true);
// this.configuration.set("special_permissions.prevent_entity_explode", false);
// this.configuration.set("special_permissions.prevent_hanging_break", true);
// this.configuration.set("special_permissions.prevent_hanging_break_by_entity", true);
// this.configuration.set("special_permissions.prevent_hanging_place", true);
// this.configuration.set("special_permissions.prevent_lightning_strike", false);
// this.configuration.set("special_permissions.prevent_player_bucket_empty", true);
// this.configuration.set("special_permissions.prevent_player_bucket_fill", true);
// this.configuration.set("special_permissions.prevent_vehicle_create", true);
// this.configuration.set("version", "0.1.0");
// this.plugin.saveConfig();
// this.plugin.getLogger().info("Updated config to version 0.1.0");
// this.plugin.getLogger().info("You may want to check out all the extra options!");
// this.reload();
break;
case "0.1.0": // Latest version
break;
Expand Down
50 changes: 1 addition & 49 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,53 +36,5 @@ db_config:
# if you haven't done so already.
migrate: false

# Optional protections that can be toggled on and off
special_protections:
# Prevent all owned blocks from being burned
prevent_burning: false
# Prevent non-friends from mining blocks in survival
prevent_damage: true
# Prevent owned blocks from fading - Stop snow/ice from melting and fire burning out
prevent_fade: true
# Prevent snow/ice/etc forming on top of owned blocks
prevent_form: true
# Prevent liquids from flowing on owned blocks
prevent_liquid_flow: false
# Prevent other players' dragon eggs from teleporting onto owned blocks
# they don't have permission for
prevent_dragon_egg_teleport: true
# Prevent growth of crops onto owned blocks from players that don't have permission to
# build there
prevent_growth: true
# Prevent natural ignition of owned blocks - note that this applies to players regardless
prevent_ignite: true
# Prevent owned blocks from being updated by block physics
# Be careful, this one can be quite heavy on a server
prevent_physics: false
# Prevent owned leaves from decaying
prevent_leaf_decay: true
# Prevent players from changing owned signs they don't have permission for
# This is usually with another plugin, but not always guaranteed to fire due to that
prevent_sign_change: true

# Prevent entities from exploding when on owned blocks
prevent_entity_explode: false
# Prevent players from removing hanging entities (paintings, item frames) they don't have access to
prevent_hanging_break: true
# Prevent entities from breaking owned hanging entities
prevent_hanging_break_by_entity: true
# Prevent players from placing hanging entities on blocks they don't have access to
prevent_hanging_place: true
# Prevent lightning strikes on owned blocks
# Use prevent_ignite if you just want to stop lightning from setting things on fire
prevent_lightning_strike: false
# Prevent players from emptying buckets on blocks they don't have access to
prevent_player_bucket_empty: true
# Prevent players from filling buckets from blocks they don't have access to
prevent_player_bucket_fill: true
# Prevent players from placing vehicles (boats, minecarts) on blocks they don't have access to
prevent_vehicle_create: true


# Don't edit this - you'll break your configuration.
version: "0.1.0"
version: "0.0.3"
88 changes: 88 additions & 0 deletions src/main/resources/config.yml.upcoming
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# ArchBlock main configuration file.

# Set this to true after you've set up the plugin. Don't do it beforehand.
# Make sure your database details are 100% correct BEFORE enabling this plugin.
enabled: false

# Database configuration.
db_config:
# Remember, when specifying class names for anything bundled with this
# plugin, you will need to prefix the package with "libs.".
# For example, "com.mysql.jdbc.Driver" becomes "libs.com.mysql.jdbc.Driver".
# Please see the BukkitDev or Github page for more information on this.

# JDBC driver to use. Defaults to MySQL, "libs.com.mysql.jdbc.Driver"
jdbc_driver: "libs.com.mysql.jdbc.Driver"

# SQL dialect to use. Defaults to MySQL 5, "libs.org.hibernate.dialect.MySQL5InnoDBDialect"
hibernate_dialect: "libs.org.hibernate.dialect.MySQL5InnoDBDialect"

# JDBC connection URL. You may change "localhost", "3306" and "archblock" as needed
# to change the database host, port and name respectively.
# If you're not using MySQL, check the documentation for your database driver.
connection_url: "jdbc:mysql://localhost:3306/archblock"

# Username to use for the database
username: "archblock"

# Login password for the above user. Can be empty.
password: "SomeKindOfSecurePasswordButNotThisOne"

# Debug mode. This will print all the generated SQL to the terminal (which could slow things down quite a bit)
debug: false

# Set this to true to enable automated WatchBlock data migration.
# Make sure you export your WatchBlock database to flatfiles before you do this,
# if you haven't done so already.
migrate: false

# Optional protections that can be toggled on and off
special_protections:
# Prevent all owned blocks from being burned
prevent_burning: false
# Prevent non-friends from mining blocks in survival
prevent_damage: true
# Prevent owned blocks from fading - Stop snow/ice from melting and fire burning out
prevent_fade: true
# Prevent snow/ice/etc forming on top of owned blocks
prevent_form: true
# Prevent liquids from flowing on owned blocks
prevent_liquid_flow: false
# Prevent other players' dragon eggs from teleporting onto owned blocks
# they don't have permission for
prevent_dragon_egg_teleport: true
# Prevent growth of crops onto owned blocks from players that don't have permission to
# build there
prevent_growth: true
# Prevent natural ignition of owned blocks - note that this applies to players regardless
prevent_ignite: true
# Prevent owned blocks from being updated by block physics
# Be careful, this one can be quite heavy on a server
prevent_physics: false
# Prevent owned leaves from decaying
prevent_leaf_decay: true
# Prevent players from changing owned signs they don't have permission for
# This is usually with another plugin, but not always guaranteed to fire due to that
prevent_sign_change: true

# Prevent entities from exploding when on owned blocks
prevent_entity_explode: false
# Prevent players from removing hanging entities (paintings, item frames) they don't have access to
prevent_hanging_break: true
# Prevent entities from breaking owned hanging entities
prevent_hanging_break_by_entity: true
# Prevent players from placing hanging entities on blocks they don't have access to
prevent_hanging_place: true
# Prevent lightning strikes on owned blocks
# Use prevent_ignite if you just want to stop lightning from setting things on fire
prevent_lightning_strike: false
# Prevent players from emptying buckets on blocks they don't have access to
prevent_player_bucket_empty: true
# Prevent players from filling buckets from blocks they don't have access to
prevent_player_bucket_fill: true
# Prevent players from placing vehicles (boats, minecarts) on blocks they don't have access to
prevent_vehicle_create: true


# Don't edit this - you'll break your configuration.
version: "0.1.0"

0 comments on commit 6cbe2d2

Please sign in to comment.