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

Commit 6882f1a

Browse files
committed
1.0.0
1 parent 4e0f8d8 commit 6882f1a

File tree

9 files changed

+1054
-2
lines changed

9 files changed

+1054
-2
lines changed

README.md

Lines changed: 183 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,183 @@
1-
# WorldProtect
2-
Griefer protection plugin
1+
WorldProtect
2+
============
3+
4+
* Summary: protect worlds from griefers, pvp, limits and borders
5+
* Dependency Plugins: n/a
6+
* PocketMine-MP version: 1.4 - API 1.10.0
7+
* OptionalPlugins: ManyWorlds
8+
* Categories: World Editing and Management, Admin Tools, Anti-Griefing Tools
9+
* Plugin Access: Commands, Manages Permission, Data Saving, World Editing
10+
* WebSite: [github](https://github.com/alejandroliu/pocketmine-plugins/tree/master/WorldProtect)
11+
12+
Overview
13+
---------
14+
15+
A full featured World protection plugin.
16+
17+
Features:
18+
19+
* Protect worlds from griefers
20+
* Per world PvP
21+
* Create limits in your limitless worlds
22+
* Limit the number of players in a world
23+
* Show a text file when players enter a world
24+
25+
Basic Usage:
26+
27+
* /motd [level]
28+
* /wp unprotect|unlock [level]
29+
* /wp lock [level]
30+
* /wp protect [level]
31+
* /wp pvp [level] [on|off]
32+
* /wp border [level] [x1 z1 x2 z2|none]
33+
* /wp max [level] [count]
34+
* /wp add [level] *player*
35+
* /wp rm [level] *player*
36+
* /wp motd [level] [text]
37+
38+
Documentation
39+
-------------
40+
41+
This plugin let's you limit what happens in a world.
42+
43+
It is able to:
44+
45+
* Protect worlds from griefers. Only players within an auth list
46+
and/or certain permissions are allowed to place or destroy blocks.
47+
* Per world PvP. Prevents PvP matches in specific worlds.
48+
* Create limits in your limitless worlds. So players attempting are
49+
not able to work beyond a preset border. This is useful if you want
50+
to avoid overloading the server by generating new Terrain.
51+
* Limit the number of players in a world.
52+
* Show a text file when players enter a world. To explain players
53+
what is allowed (or not allowed) in specific worlds. For example
54+
you could warn players when they are entering a PvP world.
55+
56+
Note that limiting players in a world is only supported by
57+
[ManyWorlds](http://forums.pocketmine.net/plugins/manyworlds.1042/)
58+
and any plugin that uses ManyWorlds teleport functionality.
59+
60+
### Commands:
61+
62+
Informational:
63+
64+
* motd [level]
65+
Show a level specific _message of the day_ type text.
66+
* wp motd [level] _text_
67+
Modify the motd text for the specified level (or the current level).
68+
While you can only enter a single line through this command, you can
69+
have a multi-line MOTD by modifying the per-world configuration file.
70+
71+
Protect:
72+
73+
* wp lock [level]
74+
Place/destroy block is *not* allowed. Not even for ops. This is
75+
useful for adventure style worlds.
76+
* wp protect [level]
77+
Place/destroy block is allowed for players that have
78+
`wp.cmd.protect.auth` permission (by default *ops*) or players in
79+
the `auth` list. (See add/rm sub-commands).
80+
* wp unlock|unprotect [level]
81+
Placing/destroying blocks are allowed.
82+
* wp status [level]
83+
Will show the lock/protect status of a world.
84+
85+
86+
Per-world PvP:
87+
88+
* wp pvp [level] [on|off]
89+
If nothing is specified it will show the PvP status of the current
90+
level. Otherwise PvP will either be activated|de-activated.
91+
92+
World borders:
93+
94+
* wp border [level] [x1 z1 x2 z2|none]
95+
If nothing is specified it will show the current borders. If `none`
96+
the current borders will be removed. Otherwise a border will be set
97+
by the (x1,z1) - (x2,z2) coordinates.
98+
99+
Player Limits:
100+
101+
* wp max [level] [count]
102+
If nothing is specified will show the current player limits.
103+
Otherwise the world limit will be set by `count`. Set to `0` for
104+
limitless worlds.
105+
106+
Auth list:
107+
108+
* wp add [level] *player*
109+
* wp rm [level] *player*
110+
111+
These commands add or remove players from the world's `auth` list.
112+
Access to these commands is controlled by standard PocketMine
113+
permission system. When a world's `auth` list is defined, access to
114+
these commands are restricted to the people in the `auth` list.
115+
116+
### Configuration
117+
118+
In the plugin's config.yml file you can have:
119+
120+
settings:
121+
player-limits: true
122+
world-borders: true
123+
world-protect: true
124+
per-world-pvp: true
125+
motd: true
126+
127+
* player-limits: Enables the per world player limits
128+
* world-borders: Enables the world border module
129+
* world-protect: Enables the anti-griefing module
130+
* per-world-pvp: Enables per world PvP functionality
131+
* motd : Enable per world MOTD text
132+
133+
### Permission Nodes:
134+
135+
* wp.motd - Display MOTD
136+
* wp.cmd.all - Allow access to protect command
137+
* wp.cmd.protect - Change protect mode
138+
* wp.cmd.protect.auth - Permit place/destroy in protected worlds
139+
* wp.cmd.border - Allow contfol of border functionality
140+
* wp.cmd.pvp - Allow PvP controls
141+
* wp.cmd.limit - Allow control to limit functionality
142+
* wp.cmd.wpmotd - Allow editing the motd
143+
144+
### ManyWorlds
145+
146+
The World Limit functionality requires the use of ManyWorlds teleport.
147+
Also, if ManyWorlds is installed, the
148+
149+
/mw ls [level]
150+
151+
Will show additional information.
152+
153+
Issues
154+
------
155+
156+
* World names can not contain spaces.
157+
* Placing a sign on worlds that do not allow placing blocks will crash
158+
the MCPE client.
159+
160+
Changes
161+
-------
162+
163+
* 1.0.0 : Initial release
164+
165+
Copyright
166+
---------
167+
168+
WorldProtect
169+
Copyright (C) 2015 Alejandro Liu
170+
All Rights Reserved.
171+
172+
This program is free software: you can redistribute it and/or modify
173+
it under the terms of the GNU General Public License as published by
174+
the Free Software Foundation, either version 2 of the License, or
175+
(at your option) any later version.
176+
177+
This program is distributed in the hope that it will be useful,
178+
but WITHOUT ANY WARRANTY; without even the implied warranty of
179+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
180+
GNU General Public License for more details.
181+
182+
You should have received a copy of the GNU General Public License
183+
along with this program. If not, see <http://www.gnu.org/licenses/>.

media/WorldProtect-icon.png

9.55 KB
Loading

plugin.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
main: aliuly\worldprotect\Main
2+
api: [1.10.0]
3+
load: STARTUP
4+
softdepend: [ManyWorlds]
5+
6+
name: WorldProtect
7+
description: protect worlds from griefers, pvp, limits and borders
8+
version: 1.0.0
9+
author: aliuly
10+
11+
commands:
12+
worldprotect:
13+
description: Manage worlds
14+
usage: "/wp <help|sub-cmd> [options]"
15+
permission: wp.cmd.all
16+
aliases: [wp]
17+
motd:
18+
description: Show the world's message of the day
19+
usage: "/motd [world]"
20+
permission: wp.motd
21+
22+
permissions:
23+
wp.motd:
24+
default: true
25+
description: "Display MOTD"
26+
wp.cmd.all:
27+
default: op
28+
description: "Allow access to protect command"
29+
wp.cmd.protect:
30+
default: op
31+
description: "Change protect mode"
32+
wp.cmd.protect.auth:
33+
default: op
34+
description: "Permit place/destroy in protected worlds"
35+
wp.cmd.border:
36+
default: op
37+
description: "Allow contfol of border functionality"
38+
wp.cmd.pvp:
39+
default: op
40+
description: "Allow PvP controls"
41+
wp.cmd.limit:
42+
default: op
43+
description: "Allow control to limit functionality"
44+
wp.cmd.wpmotd:
45+
default: op
46+
description: "Allow editing the motd"
47+
wp.cmd.addrm:
48+
default: op
49+
description: "Allow modifying the auth list"

0 commit comments

Comments
 (0)