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

Commit 869b6dc

Browse files
committed
Added RunePvP
1 parent 7dfa694 commit 869b6dc

File tree

7 files changed

+1032
-0
lines changed

7 files changed

+1032
-0
lines changed

README.md

+76
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,79 @@
22
PocketMine Plugins that are not good enough to be hosted in plugins.pocketmine.net
33

44
This git repository contains my plugins that were rejected from the official pocket mine web site.
5+
6+
# Todo/Ideas
7+
8+
* Player Interact Peacefully
9+
- command: attack/interact - defualts to interact
10+
- if holding a weapon attack (always)
11+
- if holding compass/clock/food/string/feather/seeds (never)
12+
* Add a Snowball/Egg or something and use it as football..
13+
* RuneGM:
14+
* Adds a GameMaster:
15+
* Automatically spawned villager or a NPC (Player)
16+
* If LocalChat is active we use it... otherwise you need to use /rp
17+
command.
18+
* If attacked it will retaliate (or kill you...)
19+
* Implements the RuinPvP casino and shop functionality.
20+
* Provide rankings and stats...
21+
* Moves around randomly in his spawn area...
22+
* PMScript:
23+
{{ something }} the something is a PHP expression.
24+
Some syntax sugar:
25+
$[_A-Za-z][_a-zA-Z0-9]*.[_A-Za-z][_A-Za-z0-9]*[^(] ---> converted
26+
to $<something>->get<something>()
27+
28+
@ php ... this is raw PHP code.. prefered altenate syntax.
29+
else goes to "PM command processor"
30+
Event handlers... per world.
31+
Use closures:
32+
$example = function ($arg) {
33+
echo($arg);
34+
}
35+
$example("hello");
36+
Gets called onLevelLoad
37+
registerEvents($obj,$plugin);
38+
Check what "reload" does, can it unregister event? there is no API
39+
for it...
40+
?Loader: disablePlugin($plugin)
41+
>>>HandlerList::unregisterAll($plugin);
42+
?removePermissions
43+
44+
# NEW PLUGIN IDEAS:
45+
46+
- plots: place a sign claim a plot. Place a sign restrict the plot.
47+
- per-level plugins. Plugins only active on a per level basis
48+
- async-task plugin?
49+
- fork per-level
50+
51+
# MINI GAMES
52+
53+
## DeathSwap
54+
55+
After the game has started, run away from your opponents.
56+
A random timer runs in the backround, and when it finishes after upto
57+
2 Minutes, 2 players postitions will be swapped. The timer will be
58+
restarted, and the next time it finishes, two new randomly chosen
59+
players will get swapped. Try to be the last person alive and kill
60+
other players without seeing them. It's up to you to find out how to
61+
do that.
62+
63+
# Copyright
64+
65+
bad-plugins
66+
Copyright (C) 2013 Alejandro Liu
67+
All Rights Reserved.
68+
69+
This program is free software: you can redistribute it and/or modify
70+
it under the terms of the GNU General Public License as published by
71+
the Free Software Foundation, either version 2 of the License, or
72+
(at your option) any later version.
73+
74+
This program is distributed in the hope that it will be useful,
75+
but WITHOUT ANY WARRANTY; without even the implied warranty of
76+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
77+
GNU General Public License for more details.
78+
79+
You should have received a copy of the GNU General Public License
80+
along with this program. If not, see <http://www.gnu.org/licenses/>.

RunePvP/README.md

+208
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
RunePvP
2+
=======
3+
4+
* Summary: A funny PvP manager plugin
5+
* Dependency Plugins: N/A
6+
* PocketMine-MP version: 1.4 - API 1.10.0
7+
* DependencyPlugins: -
8+
* OptionalPlugins: SignShop,PocketMoney,MassiveEconomy,EconomyAPI
9+
* Categories: Fun
10+
* Plugin Access: Commands, Entity
11+
* WebSite: [github](https://github.com/alejandroliu/pocketmine-plugins/tree/master/RunePvP)
12+
13+
Overview
14+
--------
15+
16+
A simple PvP manager inspired by RuinPvP. Unlike RuinPvP this one
17+
works with the current API and has a different gameplay more centered
18+
around signs instead of entering commands.
19+
20+
It needs a economy plugin like for example, PocketMoney.
21+
22+
### Rules:
23+
24+
At first, every users gets 500 points. This is configured in
25+
PocketMoney (or whatever Economy plugin you use).
26+
27+
If players kills another player, the winner gets 100 points and the
28+
loser loses 100 points. Once players are under 100 points they will
29+
not loose any points. And winners only get 50 points for these kills.
30+
31+
Whenever players reach 10 kills, they get a level up and get a 1,000
32+
points prize.
33+
34+
Players can then use the points they got to gamble or buy items using
35+
`Signs` across the playing world.
36+
37+
Basic Usage:
38+
39+
* runepvp - Will show your RunePvP stats.
40+
* runepvp stats [player] - Show the RunePvP stats for [player]
41+
* runepvp top [online] - Show top players.
42+
43+
Documentation
44+
-------------
45+
46+
This plugin supports PocketMoney and has experimental support for
47+
MassiveEconomy and EconomyAPI.
48+
49+
### Commands
50+
51+
* runepvp - Will show your RunePvP stats.
52+
* runepvp stats [player] - Show the RunePvP stats for [player]
53+
* runepvp top [online] - Show top 5 players.
54+
55+
### Signs
56+
57+
RunePvP supports three types of signs.
58+
59+
1. Shop signs
60+
2. Gambling signs
61+
3. Informational signs
62+
63+
### Shop Signs
64+
65+
Place a sign with the following text:
66+
67+
[SHOP]
68+
Item_name [x10]
69+
price
70+
<anything>
71+
72+
Players will be able to buy the specified items at the set price.
73+
Defaults to 1, but this can be changed with the x?? modifier.
74+
Examples from RuinPvP:
75+
76+
* [SHOP]
77+
* Wooden Sword
78+
* 200p
79+
* [SHOP]
80+
* Golden Sword
81+
* 250p
82+
* [SHOP]
83+
* Stone Sword
84+
* 500p
85+
* [SHOP]
86+
* Iron Sword
87+
* 700p
88+
* [SHOP]
89+
* Diamond Sword
90+
* 1000p
91+
* [SHOP]
92+
* Apples x10
93+
* 200p
94+
95+
### Gambling Signs
96+
97+
Tap a sign and you place a bet. Place a sign with the following text:
98+
99+
[CASINO]
100+
<odds>:<payout>
101+
<price>
102+
103+
The odds is the number of chances, so the higher the number the less
104+
chance of payout. Payout is how much you get pay if you win. Price
105+
is how much each bet costs.
106+
Examples:
107+
108+
* [CASINO]
109+
* 5:300
110+
* 100p
111+
112+
### Informational Signs
113+
114+
These signs show either rankings or the player's stats. Just place a
115+
sign with the first line of text with:
116+
117+
* `[STATS]` : Player stats. Every player sees their own stats.
118+
* `[RANKINGS]` : All time top 3.
119+
* `[ONLINE RANKS]` : Ranking of only players on-line
120+
121+
If you tap on the rakings or online-rankings sign you get a list of
122+
the top *five* players with level and kill numbers.
123+
124+
### Configuration
125+
126+
These can be configured from `config.yml`:
127+
128+
points:
129+
kills: 100
130+
level: 1000
131+
signs:
132+
stats:
133+
- '[STATS]'
134+
rankings:
135+
- '[RANKINGS]'
136+
onlineranks:
137+
- '[ONLINE RANKS]'
138+
shop:
139+
- '[SHOP]'
140+
casino:
141+
- '[CASINO]'
142+
settings:
143+
dynamic-updates: 1
144+
145+
* points
146+
* kills : number of points awarded to a player for each kill.
147+
* level : number of points awarded to a player for leveling up.
148+
* signs : customize the text of the signs. Multiple text alternatives
149+
are possible and allowed. For example:
150+
shop:
151+
- '[SHOP]'
152+
- '[TIENDA]'
153+
* settings
154+
* dynamic-updates: if off, informational signs are only updated when
155+
tapped.
156+
157+
158+
### Permission Nodes:
159+
160+
* runepvp.cmd: Give players access to RunePvP command
161+
* runepvp.cmd.stats: Stats sub command
162+
* runepvp.cmd.stats.other: View stats of other players
163+
* runepvp.cmd.top: View rankings
164+
* runepvp.signs.place: Allow users to place RunePvP signs
165+
* runepvp.signs.place.stats: Allow users to place RunePvP signs for Stats
166+
* runepvp.signs.place.rankings: Allow users to place RunePvP signs for
167+
Rankings
168+
* runepvp.signs.place.onlineranks: Allow users to place RunePvP signs
169+
for Online ranks
170+
* runepvp.signs.place.shop: Allow users to place RunePvP signs for shops
171+
* runepvp.signs.place.casino: Allow users to place RunePvP signs for
172+
Casinos
173+
* runepvp.signs.use: Allow users to use RunePvP signs
174+
* runepvp.signs.use.stats: Allow users to use stats RunePvP signs
175+
* runepvp.signs.use.rankings: Allow users to use specific RunePvP signs
176+
* runepvp.signs.use.onlineranks: Allow users to use specific RunePvP signs
177+
* runepvp.signs.use.shop: Allow users to use specific RunePvP signs
178+
* runepvp.signs.use.casino: Allow users to use specific RunePvP signs
179+
180+
Changes
181+
-------
182+
183+
* 1.1.0 : More economy support
184+
* Some code fixes and removed some debug code that slipped through
185+
* Added support for Economy and MassiveEconomy.
186+
* Added top (rankings) command
187+
* Added signs
188+
* 1.0.0 : First submission
189+
190+
Copyright
191+
---------
192+
193+
RunePvP
194+
Copyright (C) 2015 Alejandro Liu
195+
All Rights Reserved.
196+
197+
This program is free software: you can redistribute it and/or modify
198+
it under the terms of the GNU General Public License as published by
199+
the Free Software Foundation, either version 2 of the License, or
200+
(at your option) any later version.
201+
202+
This program is distributed in the hope that it will be useful,
203+
but WITHOUT ANY WARRANTY; without even the implied warranty of
204+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
205+
GNU General Public License for more details.
206+
207+
You should have received a copy of the GNU General Public License
208+
along with this program. If not, see <http://www.gnu.org/licenses/>.

RunePvP/plugin.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: RunePvP
2+
version: 1.1.0
3+
main: aliuly\runepvp\Main
4+
api: 1.10.0
5+
load: POSTWORLD
6+
# You have to have at least one of these...
7+
softdepend: [SignShop,PocketMoney,MassiveEconomy,EconomyAPI]
8+
9+
description: A funny PvP manager plugin inspired by RuinPvP
10+
author: aliuly
11+
12+
commands:
13+
runepvp:
14+
description: Show your RunePvP stats
15+
usage: "/runepvp"
16+
aliases: [rp]
17+
permission: runepvp.cmd
18+
19+
permissions:
20+
runepvp.cmd:
21+
default: true
22+
description: "Give players access to RunePvP command"
23+
runepvp.cmd.stats:
24+
default: true
25+
description: "Access to stats command"
26+
runepvp.cmd.stats.other:
27+
default: op
28+
description: "View other's stats"
29+
runepvp.cmd.top:
30+
default: true
31+
description: "View top players"
32+
runepvp.signs.place:
33+
default: op
34+
description: "Allow users to place RunePvP signs"
35+
runepvp.signs.place.stats:
36+
default: op
37+
description: "Allow users to place RunePvP signs for Stats"
38+
runepvp.signs.place.rankings:
39+
default: op
40+
description: "Allow users to place RunePvP signs for Rankings"
41+
runepvp.signs.place.onlineranks:
42+
default: op
43+
description: "Allow users to place RunePvP signs for Online ranks"
44+
runepvp.signs.place.shop:
45+
default: op
46+
description: "Allow users to place RunePvP signs for shops"
47+
runepvp.signs.place.casino:
48+
default: op
49+
description: "Allow users to place RunePvP signs for Casinos"
50+
runepvp.signs.use:
51+
default: op
52+
description: "Allow users to use RunePvP signs"
53+
runepvp.signs.use.stats:
54+
default: op
55+
description: "Allow users to use specific RunePvP signs"
56+
runepvp.signs.use.rankings:
57+
default: op
58+
description: "Allow users to use specific RunePvP signs"
59+
runepvp.signs.use.onlineranks:
60+
default: op
61+
description: "Allow users to use specific RunePvP signs"
62+
runepvp.signs.use.shop:
63+
default: op
64+
description: "Allow users to use specific RunePvP signs"
65+
runepvp.signs.use.casino:
66+
default: op
67+
description: "Allow users to use specific RunePvP signs"

0 commit comments

Comments
 (0)