onebone / EconomyS

The economy plugin for PocketMine-MP
GNU General Public License v3.0
144 stars 188 forks source link

Messages #156

Closed Pub4Game closed 9 years ago

Pub4Game commented 9 years ago

Can make the output messages in the console when you use the /givemoney,/setmoney [Steve gave out 1200$ player - Steve2]

I already created a similar request.....

onebone commented 9 years ago

I have closed the issue since it is sending message:

https://github.com/onebone/EconomyS/blob/master/EconomyAPI/src/onebone/economyapi/commands/GiveMoneyCommand.php#L72 https://github.com/onebone/EconomyS/blob/master/EconomyAPI/src/onebone/economyapi/commands/SetMoneyCommand.php#L69

Pub4Game commented 9 years ago
    switch($result){
        case -2: // CANCELLED
        $output .= "Your request have been cancelled";
        break;
        case -1: // NOT_FOUND
        $output .= $this->getPlugin()->getMessage("player-never-connected", $sender->getName(), array($player, "%2", "%3", "%4"));
        break;
        // INVALID is already checked
        case 1: // SUCCESS
        $output .= $this->getPlugin()->getMessage("givemoney-gave-money", $sender->getName(), array($amount, $player, "%3", "%4"));
        $server->getLogger()->info("Player ".$sender->getName()." give player $player $amount$");
        if($p instanceof Player){
            $p->sendMessage($this->getPlugin()->getMessage("givemoney-money-given", $sender->getName(), array($amount, "%2", "%3", "%4")));
        }
        break;
    }

I wanted it displayed in the console

Bidou0418 commented 9 years ago

Yes

Sent from my iPad

On Sep 3, 2015, at 10:07 AM, Pub4Game notifications@github.com wrote:

Can make the output messages in the console when you use the /givemoney,/setmoney [Steve gave out 1200$ player - Steve2]

I already created a similar request.....

— Reply to this email directly or view it on GitHub.