Very Simple Plugin that returns text. THATS ALL!

Discussion in 'Archived: Plugin Requests' started by ZakPvP, Jan 14, 2014.

  1. Offline

    ZakPvP

    Name: EnergizeRanks
    Description: I want the plugin to have 1 command. /ranks - No permissions. Universal.
    I want a config.yml which you can use color codes like &l and &4 and &n. So the /ranks just displays what's in the config.
    So
    &f[&4A&f] &7$50,000 to buy!
    B
    C
    D
    E
    ETC. So /ranks does nothing unless there's you know.. words in the config.yml, must allow color codes please.

    THANK YOU
     
  2. Offline

    msnijder30

    I'll try my best :)

    I couldn't make it so it only gets the lines that are filled in. I cannot do this for you sorry :'(
     
  3. Offline

    MoeMix

    so /ranks will list all the ranks you specify in the config?
     
  4. Offline

    ZakPvP


    Yes all the text i add in the config.
    Must understand color codes please like &5 etc.
    Also if i click enter
    it adds a new line of text and puts that on the next line etc.
     
  5. Offline

    SacredWaste

    There are plugins which you can create commands to result in text, would that not be a better overall solution?
     
  6. Offline

    ZakPvP


    SacredWaste
    Such as?
     
  7. Offline

    MoeMix

    I'm almost finished with it :)
     
  8. Offline

    ZakPvP

    Thank you so much
    MoeMix !!!
     
  9. Offline

    MoeMix

    I'm having difficulty with colorcodes atm.....I tried .replaceAll but that method isn't in 1.7.2 i think. Anyone else on here know?
    Code:
    public class rnaks extends JavaPlugin{
        public static rnaks plugin;
        Logger l = Logger.getLogger("Minecraft");
        public void onEnable(){
            l.info("[RANKS] Ranks has been enabled!");
        }
        public void onDisable(){
            l.info("[RANK] Ranks has been disabled!");
        }
       
        public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
            Player p = (Player) sender;
            if(commandLabel.equalsIgnoreCase("ranks")){
                p.sendMessage("Ranks: " + getConfig().getStringList("Ranks"));
            }
            return true;
        }
    }
     
  10. Offline

    timtower Administrator Administrator Moderator

    MoeMix ChatColor.translateAlternateColor('&',<originalString>)
     
  11. Offline

    ZakPvP

    I hope that helps you complete it MoeMix
     
  12. Offline

    MoeMix

    timtower What is the original string though
     
  13. Offline

    Garris0n

    At this point there's no reason to make a plugin, just use CommandHelper...
     
  14. Offline

    timtower Administrator Administrator Moderator

    You need to loop through the messages, then apply that
     
    Evildude221 likes this.
  15. Offline

    MajikalBlood

    ZakPvP dev.bukkit.org/bukkit-plugins/infoman/

    This plugin is exactly what you want. I use it and it works great.
     
  16. Offline

    ZakPvP


    Not what I asked for.
     
  17. Offline

    MajikalBlood

    ZakPvP How so? It allows for color formatting, its simple, and you can make your own commands. it only displays text
     
    timtower likes this.
  18. Offline

    ZakPvP


    Oh i didn't know you could create your own commands, thanks a lot!
     
  19. Offline

    Desle

    You could use rTriggers?
     

Share This Page