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

Massages,but not in the Main

Comments in 'Plugin Development' started by Marcelo234, Jan 19, 2016.

  1. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
    Hey Guys...How are you?How to write Massages in the Code is easy:For Exampel,If A Event happen:
    PHP:
    $sender->sendMessage(TextFormat::RED."Ya");
    But how to get Massages in a other folder?
    How?I thaught:
    PHP:
    $event->sendMessage($this->getDataFolder(). "EnglishMessages.yml"->getMessage("Test");[PHP] And in the English.yml you should write Test"Hey...Guys! "BUT this didn't work..So how to write it?Thx
  2. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    Massage folders? Well why didn't you say so? http://www.iconarchive.com/tag/massage-folder And look at PurePerms, it supports multiple languages.
  3. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    For each config you need to configure it, as you made the initialization for the normal config.yml you should simply copy the code and edit the config with EnglishMessages.yml, then give it a variable, and do $this->englishmessagescfg->get("Test");
  4. Marcelo234
    Offline

    Marcelo234 New Member

    Joined:
    Oct 18, 2014
    Posts:
    204
  5. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
  7. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Sorry, we don't offer massage service. Sorry to disappoint you ;)

Share This Page

Advertisement