From 7cd4a1d411e28e1dc8a1f6dc382dbcc768ef97f8 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 24 Aug 2014 17:15:36 -0700 Subject: [PATCH] Update CHANGELOG and UPGRADE documents. --- CHANGELOG.md | 3 ++- UPGRADE.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a18cccc..15b0028f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -91,7 +91,7 @@ A new optional (disabled by default in the configuration) feature is the checkin * Entity destroy: `worldguard.build.entity.remove.` * Entity interact: `worldguard.build.entity.interact.` * Entity damage: `worldguard.build.entity.damage.` -* Item use: `worldguard.build.item.interact.` +* Item use: `worldguard.build.item.use.` In addition, the permissions are also checked in the style of `worldguard.build.block..`, so `worldguard.build.block..place` would work too. @@ -126,6 +126,7 @@ For entity names, see [EntityType](http://jd.bukkit.org/rb/apidocs/org/bukkit/en ### API changes +* You can use a new `WorldGuardPlugin.createProtectionQuery()` method to easily check build permissions. * The listener classes were moved. Consider them internal -- if you want to make use of the listener somehow, please put in a ticket in our issue tracker. * Much of the protection-related handling was previously scattered throughout the code. Now WorldGuard funnels events into an internal event system and then processes protection queries in a more consistent matter. These events are for internal use so it is strongly recommended that you do not use them (they may change without notice drastically). A lot of the protection-related flag handling was moved there. * A significant portion of classes under the package of `com.sk89q.worldguard.protection` were changed or removed. However, the basic calls (testing the value of a flag, etc.) should still work, but they may be deprecated. Some of the utility `Domain`-related classes were removed. diff --git a/UPGRADE.md b/UPGRADE.md index 80b3e085..f3a13c07 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -126,7 +126,7 @@ A new optional (disabled by default in the configuration) feature is the checkin * Entity destroy: `worldguard.build.entity.remove.` * Entity interact: `worldguard.build.entity.interact.` * Entity damage: `worldguard.build.entity.damage.` -* Item use: `worldguard.build.item.interact.` +* Item use: `worldguard.build.item.use.` In addition, the permissions are also checked in the style of `worldguard.build.block..`, so `worldguard.build.block..place` would work too.