How would i make this plugin

Discussion in 'Plugin Development' started by CheifKeef, Aug 21, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    CheifKeef

    Im new to bukkit coding but i know how to add color but i need to know how to add Color to the text a player writes after typing a certain letter so if they do >Hey I'm CheifKeef and i like to code the color of that text would change to green end result: >Hey I'm CheifKeef and i like to code

    How would i do this?

    CHATCOLOR.GREEN + ">"
     
  2. Offline

    Xyplo

    Here's a step by step guide for you:
    1) Learn Java (Well this is kind of optional I guess)
    2) Learn the API
    3) Code what you wanted to code.
     
    mythbusterma likes this.
  3. Offline

    CheifKeef

    hahahaha "funny"
     
  4. Offline

    xTigerRebornx

    CheifKeef Look into the AsyncPlayerChatEvent, and replacing stuff in Strings. String has a replace() method that will replace things, and a replaceAll() that replaces things based on regex.
     
Thread Status:
Not open for further replies.

Share This Page