Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Commit

Permalink
WorldProtect-2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroliu committed Apr 28, 2016
1 parent d1949e5 commit 2020885
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
25 changes: 13 additions & 12 deletions WorldProtect/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img src="https://raw.githubusercontent.com/alejandroliu/pocketmine-plugins/master/Media/WorldProtect-icon.png" style="width:64px;height:64px" width="64" height="64"/>
<img src="https://raw.githubusercontent.com/Muirfield/pocketmine-plugins/master/Media/WorldProtect-icon.png" style="width:64px;height:64px" width="64" height="64"/>

<!-- meta:Categories = Anti-Griefing -->
<!-- meta:PluginAccess = Commands, Data Saving, World Editing -->
Expand All @@ -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

<!-- end-include -->

Expand All @@ -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).

<!-- end-include -->

Expand All @@ -46,7 +46,6 @@ Features:

<!-- snippet: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
Expand All @@ -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
<!-- end-include -->

All commands require a _world_ name to be given, otherwise a default
Expand Down Expand Up @@ -105,11 +105,6 @@ specified in the _server.properties_ file.
This plugin let's you limit what happens in a world.

<!-- snippet: docs -->
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
Expand All @@ -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.

<!-- end-include -->

### Command Reference
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions WorldProtect/plugin.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion WorldProtect/src/aliuly/worldprotect/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2020885

Please sign in to comment.