Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Chat.type.text at 0.12.1 pm act.dev.build

Comments in 'Plugin Development' started by Xenturio, Sep 3, 2015.

  1. Xenturio
    Offline

    Xenturio Active Member

    Joined:
    Sep 19, 2014
    Posts:
    333
    Minecraft User:
    Xenturio
    [​IMG]
    can anyone say me why the chat doenst work?
    it only shows me all the time "chat.type.text" but not the message...

    at the moment i done it manuelly with getMessage and send it to all so it looks like on the pic
    but what happends? or have i done a mistake?
  2. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    I had that problem, something with the lang files/code.
  3. Xenturio
    Offline

    Xenturio Active Member

    Joined:
    Sep 19, 2014
    Posts:
    333
    Minecraft User:
    Xenturio
    yes, i think thats a problem with multi language support or something esle... but how i can solve it?
  4. Xenturio
    Offline

    Xenturio Active Member

    Joined:
    Sep 19, 2014
    Posts:
    333
    Minecraft User:
    Xenturio
    At the moment i use this

    PHP:
    public function onPlayerChatEvent(PlayerChatEvent $event)
        {
            
    $chat $event->getMessage();
            foreach(
    $this->getServer()->getOnlinePlayers() as $player)
            {
                
    $player->sendMessage($chat);
            }
            
    $event->setCancelled();
        }
    to get only the chat message

    but i want to know why it say all the time chat.type.text instead of the message from player

    what i done now is the wrong way.... i want to know what iam doing wrong
  5. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    Without this code does the chat work?
  6. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    Without that code it just shows as "chat.type.text"

Share This Page

Advertisement