How to send messages?

Discussion in 'Plugin Development' started by Mineblemone, Jan 31, 2013.

  1. Offline

    Mineblemone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hello, I am rather new to plugin devolpment and I am planning to implement a command that will send a message to the console.
    However, I am not sure how to make it so that any arguements past /cm (The command) is the content of that message.

    Anyone know how to?
  2. Offline

    ShadyPotato

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  3. Offline

    bleachisback

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  4. Offline

    Mineblemone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Neither of these worked! I cant find how to send a m essage which the user has entered!
  5. Online

    ZeusAllMighty11 BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    StringBuilders, Logger (or alternatively System.out.println(string)), and knowledge of java and some bit of knowledge of the bukkit api
  6. Offline

    Chlorek

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Probably nobody will give you ready source code. But...
    Take arguments count (args.length or similar), then just use loop to pack it into one string and put spaces between arguments.

    Sry for my english, but I hope you understand.
  7. Offline

    Mineblemone

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  8. Offline

    bleachisback

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Trust me, if you read through that tutorial throughly, it will explain your question.

Share This Page