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

Output All Text in the Smaller Font

Comments in 'Plugin Development' started by Darunia18, Mar 21, 2015.

  1. Darunia18
    Offline

    Darunia18 Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    754
    Plugins:
    2
    Minecraft User:
    Darunia18
    Built into MCPE is a smaller font size, meant for use with characters not found in the English alphabet. This smaller font was made into a plugin in the old API (SpecialText) and more recently has been used as the default font in the MiNET server software.

    Is there any way to make a plugin that would add a special character before (or after) any message sent to the client (be it a player message, a plugin message, etc) to turn all chat into that smaller font?
  2. BalAnce
    Offline

    BalAnce Active Member

    Joined:
    Mar 10, 2015
    Posts:
    125
    Minecraft User:
    BalAnce
    Ill do it. It will be pretty straight foward just need a example of a special character. :D But if you want to do it yourself just do a playerchatevent set it to cancel; and get the message and add the special character to the beggining of the message and broadcast it. Simple Enough. Thats how i would do it.
    Last edited: Mar 21, 2015
  3. Darunia18
    Offline

    Darunia18 Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    754
    Plugins:
    2
    Minecraft User:
    Darunia18
    That's the difficult part. Trying to find a character that isn't noticeable at all. If I knew how MiNET did it without a symbol, I feel like that'd be useful, but looking through MiNET's source code gives me a headache XD
  4. BalAnce
    Offline

    BalAnce Active Member

    Joined:
    Mar 10, 2015
    Posts:
    125
    Minecraft User:
    BalAnce
    may i release the plugin with special character such it will be changeable in config but i wanted to ask you since your idea technically. :)
  5. Darunia18
    Offline

    Darunia18 Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    754
    Plugins:
    2
    Minecraft User:
    Darunia18
    Yeah that would probably be a good idea :p
    BalAnce likes this.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Hook to DataPacketSendEvent with $evwnt->getPacket() instanceof MessagePacket instead.
    Darunia18 likes this.
  7. Darunia18
    Offline

    Darunia18 Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    754
    Plugins:
    2
    Minecraft User:
    Darunia18
    I knew someone would have the answer! Thanks dude :D

Share This Page

Advertisement