First I love ur plugins thy are so very useful. Thanks also I was wondering if u could make a plugin that allows any op/admin to be able to join a full server. Thanks you
-xfusionios
$this->api->chat->sendTo(false, "*** You get 100 money ", $plr);
You would change the "100;" to change the amount of money they gain? It is useful information for people to know If they want to change the amount of Money they get per kill.
(And change the second piece of code, so they know how much they are getting).
The Meaning of Life, the Universe, and Everything.
Join Date:
7/24/2013
Posts:
58
Member Details
on all the plugins I download I add to them to make them better and good kob notify me at [email protected] if you made or found more cool plugins ok bye
i would love to see your work, just from your tips i can tell you're amazing...so i found the server full check, do i handle just that case in the plugin or the entire function?
okay one more problem, if i am making a plugin to heal a player when they touch a block. The problem is when i try to retrieve the players health, it is trying to get the health of the target block instead of the player touching the block...any ideas?
Are there plugins that make the server stop allowing people to join at a certain amount of people. And than when someone gets 25 kills, the server kicks everyone, And restarts the map.
oh youre right i posted the wrong plugin i think hold on
this is the plugin as it is working right now, i managed to get it working in conjunction with
the other plugin i posted, but i want it to use the api so it can stand alone without a whole
other plugin.
<?php
/*
__PocketMine Plugin__
name=Medkit
description=Tap a Glowing Obsidian to heal yourself!
version=0.1.0
author=iParadox
class=TouchCommand
apiversion=9
*/
/*
Small Changelog
===============
0.1.0: Initial release
*/
class TouchCommand implements Plugin{
private $api;
public function __construct(ServerAPI $api, $server = false){
$this->api = $api;
}
public function init(){
$this->api->addHandler("player.block.touch", array($this, "touchHandler"), 15);
}
public function touchHandler($data, $event) {
$dataTarget = $data["target"];
if ($dataTarget->getID() === 246) {
$this->api->console->run("heal ".$data["player"]->username." " , "console", false);
}
return true;
}
public function __destruct(){
}
}
oh and p.s wiezz thank you so much for all your help, i feel like ive learned more from you than anyone else
1. MemoryCheck - download
Server stop if your "Memory Usage" >= 500 mb.
2. AutoSave - download
Every 15 min server saves your world.
3. Slippery wool - download
You can ride on the wool
Use wool ID: 35:2, 35:13, 35:11, 35:9
4. Kill level - download
Kill other players for lvl. Every 10 kills = Level up. Not tested
5. Notification - download
Notification when an admin entered the game.
Plugin for PocketMoney by MinecrafterJPN :
1. Kill for Money - download
If you kill another player then you get 100 PM. Not tested.
2. Tax - download
Every 15 minutes all online players pay tax.
Tax is always different. Random from 1 to 20% of your money.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumEdit:
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
-xfusionios
Java/C/C++ dev, server owner and hacker extraordinare
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou would change the "100;" to change the amount of money they gain?
(And change the second piece of code, so they know how much they are getting).
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Do you know how do so? If u do please could you tell me how. Please
<?php /* __PocketMine Plugin__ name=Heal description=Heal version=0.1.0 author=iParadox class=Heal apiversion=9 */ /* Small Changelog =============== 0.1: */ class Heal implements Plugin { private $api, $interval, $server; public function __construct(ServerAPI $api, $server = false) { $this->api = $api; $this->interval = array(); $this->server = ServerAPI::request(); } public function init() { $this->api->console->register("heal", "Heal <nick>", array($this, "commandH")); } public function __destruct() { } public function commandH($cmd, $params, $issuer, $alias, $data) { $output = ""; switch ($cmd) { case "heal": if (!($issuer instanceof Player) and $params[0] == "") { $output .= "Usage: /$cmd <player>\n"; break; } if($data['player']->getHealth() <= 20){ continue; } if ($params[0] != "") { $issuer = $this->api->player->get($params[0]); if ($issuer === false) { $output .= "player " . $params[0] . " NotFound"; break; } } $this->api->entity->heal($issuer->eid, 20); $this->api->chat->sendTo(false, "You are fully healed.", $issuer->username); break; } return $output; } }this is the plugin as it is working right now, i managed to get it working in conjunction with
the other plugin i posted, but i want it to use the api so it can stand alone without a whole
other plugin.
<?php /* __PocketMine Plugin__ name=Medkit description=Tap a Glowing Obsidian to heal yourself! version=0.1.0 author=iParadox class=TouchCommand apiversion=9 */ /* Small Changelog =============== 0.1.0: Initial release */ class TouchCommand implements Plugin{ private $api; public function __construct(ServerAPI $api, $server = false){ $this->api = $api; } public function init(){ $this->api->addHandler("player.block.touch", array($this, "touchHandler"), 15); } public function touchHandler($data, $event) { $dataTarget = $data["target"]; if ($dataTarget->getID() === 246) { $this->api->console->run("heal ".$data["player"]->username." " , "console", false); } return true; } public function __destruct(){ } }oh and p.s wiezz thank you so much for all your help, i feel like ive learned more from you than anyone else
Я выложил херню...серьезные плагины никто не собирается выкладывать))