Filled [Plugin Requests] CommandAndMessage

Discussion in 'Archived: Plugin Requests' started by TheCoolPlugins, Nov 22, 2014.

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

    TheCoolPlugins

    Plugin category: I do not know

    Suggested name: CommandAndMessage

    What I want: This is a very simple plugin. When you do the command, /donate a message will
    pop up in the chat, but a 4,5,6,7, 1 - 10 or 1 - 8 line message, not 1 line message. And another thing is that it doesn't have to be 8 lines, you can just make the amount of lines in the message you want. And you can configure the whole message and you can add color coding and everything like that. You can also maybe customize the /donate command so it doesn't have to be like /donate, it can be /shop or something like that.

    Ideas for commands: /cam reload - Reloads the plugin

    Ideas for permissions: No permission

    When I would like it by: In at least 2-3 days or so - I am patient

    Thankyou Bukkit Community and goodbye! :)
     
  2. Offline

    Asecta

    So you want a plugin that prints out a message from the config when you type /donate?
     
  3. Offline

    kreashenz

    Done :) Download here: https://www.dropbox.com/s/qa2r1kpt7cbnu26/Donate.jar?dl=0

    Code (open)
    Code:java
    1. package me.kreashenz.donate;
    2.  
    3. import org.bukkit.ChatColor;
    4. import org.bukkit.command.Command;
    5. import org.bukkit.command.CommandSender;
    6. import org.bukkit.entity.Player;
    7. import org.bukkit.plugin.java.JavaPlugin;
    8.  
    9. public class Main extends JavaPlugin {
    10.  
    11. @Override
    12. public void onEnable() {
    13. saveDefaultConfig();
    14. }
    15.  
    16. @Override
    17. public boolean onCommand(CommandSender s, Command cmd, String label, String[] args) {
    18. if(s instanceof Player) {
    19. Player p = (Player) s;
    20. if(args.length == 0) {
    21. for(String sa : getConfig().getStringList("message")) {
    22. p.sendMessage(ChatColor.translateAlternateColorCodes('&', sa));
    23. }
    24. }
    25. }
    26. return true;
    27. }
    28.  
    29. }
    30.  
     
  4. Offline

    TheCoolPlugins

    Thanks, but somebody else already created it for me. Thank's anyways! :)

    Thankyou so much! Works good on my server! Thanks again! :)

    EDIT by Timtower: Merged double posts
     
Thread Status:
Not open for further replies.

Share This Page