· 6 years ago · Aug 31, 2019, 12:56 PM
1[13:48:26 INFO]: [ProtectionStones] Enabling ProtectionStones v2.4.2
2[13:48:26 INFO]: Protection Stone Blocks:
3[13:48:26 INFO]: - EMERALD_ORE (64)
4[13:48:26 ERROR]: Error occurred while enabling ProtectionStones v2.4.2 (Is it up to date?)
5com.electronwill.nightconfig.core.io.ParsingException: Invalid bare key: ?#
6 at com.electronwill.nightconfig.toml.TableParser.parseKey(TableParser.java:175) ~[?:?]
7 at com.electronwill.nightconfig.toml.TableParser.parseDottedKey(TableParser.java:145) ~[?:?]
8 at com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:55) ~[?:?]
9 at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44) ~[?:?]
10 at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37) ~[?:?]
11 at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113) ~[?:?]
12 at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219) ~[?:?]
13 at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202) ~[?:?]
14 at com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73) ~[?:?]
15 at com.electronwill.nightconfig.core.file.SimpleCommentedFileConfig.load(SimpleCommentedFileConfig.java:38) ~[?:?]
16 at dev.espi.protectionstones.PSConfig.initConfig(PSConfig.java:143) ~[?:?]
17 at dev.espi.protectionstones.ProtectionStones.loadConfig(ProtectionStones.java:404) ~[?:?]
18 at dev.espi.protectionstones.ProtectionStones.onEnable(ProtectionStones.java:474) ~[?:?]
19 at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.14.4.jar:git-Paper-175]
20 at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:338) ~[patched_1.14.4.jar:git-Paper-175]
21 at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:420) ~[patched_1.14.4.jar:git-Paper-175]
22 at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugin(CraftServer.java:467) ~[patched_1.14.4.jar:git-Paper-175]
23 at org.bukkit.craftbukkit.v1_14_R1.CraftServer.enablePlugins(CraftServer.java:381) ~[patched_1.14.4.jar:git-Paper-175]
24 at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:474) ~[patched_1.14.4.jar:git-Paper-175]
25 at net.minecraft.server.v1_14_R1.DedicatedServer.init(DedicatedServer.java:290) ~[patched_1.14.4.jar:git-Paper-175]
26 at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:870) ~[patched_1.14.4.jar:git-Paper-175]
27 at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
28[13:48:26 INFO]: [ProtectionStones] Disabling ProtectionStones v2.4.2
29
30block2.toml
31
32# Define your protection block below
33# Use block type from here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
34type = "DIAMOND_ORE"
35# Another way to refer to the protection stone
36# Can be used for /ps give and /ps get
37# Must be one word (no spaces)
38alias = "16"
39# Whether or not to restrict obtaining of the protection stone to only /ps get and /ps give and custom crafting recipes.
40# Other ways to obtain this block (ex. mining) will not work as a protection stone.
41# Useful to allow the protection block to only be obtained from a shop or command.
42# Set to "false" if you want to allow players to obtain a protection stone naturally
43restrict_obtaining = true
44# Enable or disable the use of this protection stone in specific worlds
45# "blacklist" mode prevents this protect block from being used in the worlds in "worlds"
46# "whitelist" mode allows this protect block to only be used in the worlds in "worlds"
47# Can be overriden with protectionstones.admin permission (including OP)!
48world_list_type = "blacklist"
49worlds = ["exampleworld1", "exampleworld2"]
50# Whether or not to actually restrict the protection stone from being placed when the world is restricted (in blacklist/whitelist)
51# The block will place normally, without PS behaviour.
52prevent_block_place_in_restricted_world = true
53
54[region]
55 # Minimum distance between claims (that aren't owned by the same owner), measured from the protection block to the edge of another region
56 # You will probably have to change this between blocks, since the region sizes will be different
57 # Set to -1 for no minimum, but will still check for overlapping regions
58 distance_between_claims = -1
59 # Protection radius of block
60 # Set y_radius to -1 if you want it to protect from sky to bedrock. If this doesn't appear to work set it to 256.
61 x_radius = 16
62 y_radius = -1
63 z_radius = 16
64 # Offset the protection block
65 # If you would like to make the protection block not be at the center of new regions, you can offset it here
66 # ex. x_offset = 16, y_offset = 0, z_offset = 16 would make it at the corner of a created region
67 x_offset = 0
68 y_offset = 0
69 z_offset = 0
70 # How many blocks to offset the default location of /ps home from the protection block
71 home_x_offset = 0
72 home_y_offset = 1
73 home_z_offset = 0
74 # Specify the default flags to be set when a new protected region is created.
75 # Can use -g [group] before the flag to set group flags (ex. -g members pvp deny).
76 flags = ["pvp deny", "greeting &lEntering &b&l%player%'s &f&lprotected area", "farewell &lLeaving &b&l%player%'s &f&lprotected area", "greeting-title Entering &b%player%'s &fprotected area", "farewell-title Leaving &b%player%'s &fprotected area", "creeper-explosion deny"]
77 # List all the flags that can be set by region owners. Separate them with a comma, no space.
78 allowed_flags = ["use", "pvp", "greeting", "greeting-title", "farewell", "farewell-title", "mob-spawning", "creeper-explosion"]
79 # Default priority type for this block type protection stone
80 priority = 0
81 # Whether or not to allow creation of regions that overlap other regions you don't own
82 allow_overlap_unowned_regions = false
83 # Whether or not to allow this regions created with this block to merge with other regions
84 # allow_merging_regions must be set to true in config.toml
85 allow_merging = true
86
87[block_data]
88 # Name given to protection block when obtained with /ps give or /ps get
89 # Also affects custom crafted items (see custom_recipe)
90 # Leave as '' for no name
91 display_name = "&a&m<---&r&b 64x64 Protection Stone &r&a&m--->"
92 # Lore given to protection block when obtained with /ps give or /ps get
93 # Also affects custom crafted items (see custom_recipe)
94 # Leave as [] for no lore
95 lore = ["&6(⌐■_■)ノ♪ Nobody's going to touch my stuff!"]
96 # Add price when using /ps get
97 # Must have compatible economy plugin (requires Vault, ie. Essentials)
98 price = 0.0
99 # Whether or not to allow crafting this item using a custom recipe
100 # Useful to allow crafting the item when restrict_obtaining is set to true
101 allow_craft_with_custom_recipe = false
102 # Specify the custom crafting recipe below
103 # You must fill the item spots with names from here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
104 # If you want air, you can just leave the spot as ""
105 custom_recipe = [["", "STONE", ""], ["STONE", "DIAMOND", "STONE"], ["", "STONE", ""]]
106 # Amount of the protection item to give when crafted
107 recipe_amount = 1
108
109[behaviour]
110 # Hide protection stone right away when placed?
111 auto_hide = false
112 # Disable returning the block when removed/unclaimed?
113 no_drop = false
114 # Prevents piston pushing of the block. Recommended to keep as true.
115 prevent_piston_push = true
116 # Prevents the block from being destroyed when exploded.
117 # Recommended to keep true to prevent players from exploiting more protection stones with /ps unhide (when the block is destroyed)
118 prevent_explode = true
119 # Destroys the protection stone region when block is exploded. Can be useful for PVP/Factions servers.
120 # prevent_explode must be false for this to work.
121 destroy_region_when_explode = false
122 # Silk Touch: if true, ore-blocks that are also configured by ProtectionStones will disallow Silk Touch drops
123 # This was the old behaviour to prevent natural obtaining of the protection stone.
124 # Recommended to keep false if "Restrict Obtaining" (the new way) is true
125 prevent_silk_touch = false
126
127[player]
128 # Whether or not to prevent teleporting into a protected region if the player doesn't own it (except with ender pearl and chorus fruit)
129 # Does not prevent entry, use the flag "entry deny" for preventing entry.
130 # Bypass with protectionstones.tp.bypasstp
131 prevent_teleport_in = false
132 # Can't move for x seconds before teleporting with /ps home or /ps tp. Can be disabled with 0.
133 # Option to teleport only if player stands still.
134 # Can override with permission protectionstones.tp.bypasswait
135 no_moving_when_tp_waiting = true
136 tp_waiting_seconds = 0
137 # Whether or not to prevent obtaining this block through /ps get.
138 # Ignored with protectionstones.admin
139 prevent_ps_get = false
140 # Extra permission required to place this specific protection block (you still need protectionstones.create)
141 # Also applies to /ps get (you still need protectionstones.get)
142 # '' for no extra permission
143 permission = ""
144
145[event]
146 # Events section
147 # ~~~~~~~~~~~~~~
148 # For each line on events, it is the format 'type: action'
149 # The following are accepted types:
150 # player_command - Execute command by player that caused event (won't execute if not applicable)
151 # console_command - Execute command by console
152 # message - Send message to player or console if applicable (colour support with &)
153 # global_message - Send message to all players and console (colour support with &)
154 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
155 # Whether or not to enable event tracking (API events will still be enabled)
156 enable = false
157 # Execute commands when a region is created (ex. player place protection block)
158 on_region_create = ["global_message: &l%player% created the region %region%!"]
159 # Execute commands when a region is destroyed (ex. when player destroy protection block)
160 on_region_destroy = ["console_command: say %player% has destroyed region %region%!"]