Dedicated to the legend @PEMapModder
- World Generator
- Minigame
See wiki for old version. See this website for new version:
Home Page: https://pemapmodder.github.io/PocketMine-Plugin-Tutorials/
License: Other
Dedicated to the legend @PEMapModder
I am a full 0 to yml
Fatal error: Call to undefined method chatblocker\ChatBlocker::getPluginManager() in C:\Users\Angelo\Downloads\PocketMine-MP1\plugins\ChatBlocker\src\chatblocker\ChatBlocker.php on line 13
PocketMine-MP Crash Dump Sat Dec 20 17:45:22 UTC 2014
Error: Call to undefined method chatblocker\ChatBlocker::getPluginManager()
File: /ChatBlocker/src/chatblocker/ChatBlocker
Line: 13
Type: E_ERROR
THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: ChatBlocker v1.0.0
Code:
[4]
[5] use pocketmine\event\Listener;
[6] use pocketmine\event\player\PlayerChatEvent;
[7] use pocketmine\plugin\PluginBase;
[8]
[9] class ChatBlocker extends PluginBase implements Listener{
[10] public function onEnable(){
[11] $this->saveDefaultConfig(); // saves config.yml if it doesn't already exist
[12] $this->reloadConfig(); // pre-load the config so that the file is loaded in startup time rather than runtime, improving server performance
[13] $this->getPluginManager()->registerEvents($this, $this);
[14] }
[15] public function onChat(PlayerChatEvent $evt){
[16] $player = $evt->getPlayer();
[17] if($player->hasPermission("chatblocker.bypass")){
[18] return; // don't execute if the player has bypasd permission
[19] }
[20] $message = $evt->getMessage();
[21] if($this->matches($message)){ // if the message matches the expressions
[22] $this->executeOn($evt); // execute the actions on the player
[23] }
Backtrace:
PocketMine-MP version: Alpha_1.4dev #855 [Protocol 20; API 1.8.0]
Git commit: 0000000000000000000000000000000000000000
uname -a: Windows NT Angelo 6.3 build 9200 (Windows 8.1 Business Edition) i586
PHP Version: 5.6.3
Zend version: 2.6.0
OS : WINNT, win
Loaded plugins:
DevTools 1.8.0 by PocketMine Team, shoghicp for API(s) 1.0.0
SimpleHome 1.2 by Dutok for API(s) 1.0.0
ChatBlocker 1.0.0 by PEMapModder for API(s) 1.8.0
$player = $this->getServer()->getPlayer($s->getName());
if($player instanceof Player){
//$player->hidePlayer($player->getName());
$player->hidePlayer($s);
$player->sendMessage("you vanish ;)");
return true;
}else{
$s->sendMessage("Run command in ");
}
why it`is not work?
Where can I get documentation on plugin.yml?
18:26:25 [WARNING] RuntimeException: "preg_match(): Empty regular expression" (E_WARNING) in "/ChatBlocker/src/chatblocker/ChatBlocker" at line 32
18:26:25 [INFO] [ChatBlocker] LilCrispy2o9 said "blocking all messages" and the message was blocked
18:26:25 [INFO] LilCrispy2o9 said "blocking all messages" and the message was blocked
Hello, can you help me with a problem I'm writing a plugin, but do not know how to do that would be if the team / xxx that player adds an item 5: 0 6?
This code is not work :(
public function onCommand(CommandSender $cs, Command $cmd, $label, array $args){
switch($cmd->getName()){
case "tc":
if(isset($args[0])){
$cs->sendMessage("Hello " . $args[0]);
$tconf->set("name:", $cs->getPlayer()->getName());
$tconf->save();
}
break;
I can not make an explosion, I tried all, help me
when I enter one of the players from the list this code does not work
foreach($this->getConfig()->get("flyvip") as $flyvip){
if(stripos($pm->getPlayer()->getName(), $flyvip) === false){
$this->a->getPlayerCor($pm);
}
}
this config.yml
flyvip:
pol ploy
I'm having trouble with this at the moment. It'd be nice to see an in-depth explanation and tutorial.
How to make FormAPI?
how to make my generation of the world, so that some part of world hung in the air? I used Generator but not understood it
Hi, may I make a plugin that will add an icon or button?
I read the documentation pocketmine, but did not find what function is responsible for the installation of Block
The example (hypertext) redirect url doesnt work
Hi! Can you please continue this tutorial when you have time? I find it extremely helpful and pretty sure many others too :D
timer
Hi, I have a question.
How to stop the player for some time, I use this code, but it does not work (
public function StopPlayer(PlayerMoveEvent $event){
if(isset($this->sp[$event->getPlayer()->getName()])){
$event->getPlayer()->sendMessage("stop");
$event->setCancelled(true);
$event->getPlayer()->sendMessage("stop");
sleep(10);
$event->setCancelled(false);
$event->getPlayer()->sendMessage("GO");
}
}
Thanks for making this didn't know where else to post it. Could you write more chapters possibly? :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.