From 20208856fd747c0e1090ffe56d3f43f7e481782d Mon Sep 17 00:00:00 2001 From: alejandroliu Date: Thu, 28 Apr 2016 16:00:19 +0200 Subject: [PATCH] WorldProtect-2.3.0 --- WorldProtect/README.md | 25 ++++++++++--------- WorldProtect/plugin.yml | 4 +-- WorldProtect/src/aliuly/worldprotect/Main.php | 2 +- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/WorldProtect/README.md b/WorldProtect/README.md index 0a0b730..2e09892 100644 --- a/WorldProtect/README.md +++ b/WorldProtect/README.md @@ -1,4 +1,4 @@ - + @@ -7,12 +7,12 @@ # WorldProtect - Summary: protect worlds from griefers, pvp, limits and borders -- PocketMine-MP version: 1.6+php7 (API:2.0.0) +- PocketMine-MP version: 1.4 (API:1.10.0), 1.5 (API:1.12.0), 1.6+php7 (API:2.0.0) - DependencyPlugins: - OptionalPlugins: - Categories: Anti-Griefing - Plugin Access: Commands, Data Saving, World Editing -- WebSite: https://github.com/alejandroliu/pocketmine-plugins/tree/master/WorldProtect +- WebSite: https://github.com/Muirfield/pocketmine-plugins/tree/master/WorldProtect @@ -33,10 +33,10 @@ _NOTE:_ This documentation was last updated for version **2.3.0**. Please go to -[github](https://github.com/alejandroliu/pocketmine-plugins/tree/master/WorldProtect) +[github](https://github.com/Muirfield/pocketmine-plugins/tree/master/WorldProtect) for the most up-to-date documentation. -You can also download this plugin from this [page](https://github.com/alejandroliu/pocketmine-plugins/releases/tag/WorldProtect-2.3.0). +You can also download this plugin from this [page](https://github.com/Muirfield/pocketmine-plugins/releases/tag/WorldProtect-2.3.0). @@ -46,7 +46,6 @@ Features: * Ban commands on a per world basis -* Ban specific items in a world * Per world game modes * Limit the number of players in a world * Control explosions per world @@ -55,6 +54,7 @@ Features: * Automatically displayed/per world MOTD * Protect worlds from building/block breaking * Per World PvP +* Ban specific items in a world All commands require a _world_ name to be given, otherwise a default @@ -105,11 +105,6 @@ specified in the _server.properties_ file. This plugin let's you limit what happens in a world. -Some items are able to modify a world by being consume (i.e. do not -need to be placed). For example, _bonemeal_, _water or lava buckets_. -To prevent this type of griefing, you can use the **banitem** -feature. - It is possible to create limits in your limitless worlds. So players are not able to go beyond a preset border. This is useful if you want to avoid overloading the server by @@ -128,6 +123,11 @@ blocks. Worlds have three protection levels: blocks. * lock - nobody (even *ops*) is allowed to place/break blocks. +Some items are able to modify a world by being consume (i.e. do not +need to be placed). For example, _bonemeal_, _water or lava buckets_. +To prevent this type of griefing, you can use the **banitem** +feature. + ### Command Reference @@ -343,7 +343,7 @@ languages currently available are: You can provide your own message file by creating a file called **messages.ini** in the plugin config directory. -Check [github](https://github.com/alejandroliu/pocketmine-plugins/tree/master/WorldProtect/resources/messages/) +Check [github](https://github.com/Muirfield/pocketmine-plugins/tree/master/WorldProtect/resources/messages/) for sample files. Alternatively, if you have [GrabBag](http://forums.pocketmine.net/plugins/grabbag.1060/) v2.3 @@ -379,6 +379,7 @@ Returns an integer or null. * 2.3.0: Updated to API 2.0.0 - Added banitem exempted permissions (@BobbyTowers) - Closes #47 (@SleepSpace9) + - **THIS IS JUST A SIMPLE TAG UPDATE, NO TESTING HAS BEEN DONE** * 2.2.0: minor Update - Implemented banned commands (@Tolo) - Documentation update diff --git a/WorldProtect/plugin.yml b/WorldProtect/plugin.yml index 581dd33..6d86633 100644 --- a/WorldProtect/plugin.yml +++ b/WorldProtect/plugin.yml @@ -1,12 +1,12 @@ main: aliuly\worldprotect\Main -api: 2.0.0 +api: [1.10.0,1.12.0,2.0.0] load: STARTUP name: WorldProtect description: protect worlds from griefers, pvp, limits and borders version: 2.3.0 author: aliuly -website: https://github.com/alejandroliu/pocketmine-plugins/tree/master/WorldProtect +website: https://github.com/Muirfield/pocketmine-plugins/tree/master/WorldProtect commands: worldprotect: diff --git a/WorldProtect/src/aliuly/worldprotect/Main.php b/WorldProtect/src/aliuly/worldprotect/Main.php index ad86b13..74f939f 100644 --- a/WorldProtect/src/aliuly/worldprotect/Main.php +++ b/WorldProtect/src/aliuly/worldprotect/Main.php @@ -276,7 +276,7 @@ public function authRm($world,$usr) { } } public function msg($pl,$txt) { - if (MPMU::apiVersion("1.12.0")) { + if (MPMU::apiVersion("2.0.0")) { $pl->sendTip($txt); return; }