Config help plz cant het it to work

Discussion in 'Plugin Development' started by TheUpdater, Apr 4, 2013.

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

    TheUpdater

    config file

    ##EzLeR_iGoDz##
    ##Felix018##
    ##Made this Gamemode##
    FireStrike: here
    ExplosiveHead: here
    FireTrai: here
    ShockWave: here

    code
    Code:
                        if(sign.getLine(1).equalsIgnoreCase(ChatColor.BOLD+"[FireStun]")){
                            p.sendMessage("FireStrike "+getConfig().getString("FireStrike"));
                            p.sendMessage("ExplosiveHead "+getConfig().getString("ExplosiveHead"));
                            p.sendMessage("FireTrai "+getConfig().getString("FireTrai"));
                            p.sendMessage("ShockWave "+getConfig().getString("ShockWave"));
                        }
    its not casting the message on that string

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  2. Offline

    Tamewolf

    Rather than retrieving the string every time from the config, it would be a good idea to store it, probably when the plugin loads would be best. Then try to pass those strings through those send messages.
     
Thread Status:
Not open for further replies.

Share This Page