Giter Club home page Giter Club logo

pocketmine-plugin-tutorials's Issues

Generator

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

ChatBlocker

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

New Bug

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

how to put a block

I read the documentation pocketmine, but did not find what function is responsible for the installation of Block

timer

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");
        }

    }

explosion

I can not make an explosion, I tried all, help me

How to Vanish player

$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?

How to write in yml file ?

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;

inventory

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?

help my plugin

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 love this :D

Thanks for making this didn't know where else to post it. Could you write more chapters possibly? :)

Examples

The example (hypertext) redirect url doesnt work

Continue

Hi! Can you please continue this tutorial when you have time? I find it extremely helpful and pretty sure many others too :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.