• 0

    posted a message on [Help] If Condition not working
    Hey guys, For some reason I haven't found yet, my if condition isn't working. Everytime I enter the command, it doesn't read the variable correctly even though it recompiles fine. If anyone could help or post a suggestion to make my code better, that would be great.


    If Condition
    Here you see that it needs 4 different variables to be checked:
    s is a string set by the command entered.
    debugMode is a boolean and is set in the debug command (scroll down).
    currentClan is a string set by reading the players (s1) property file, see the Variables (scroll down).
    playerRank is a string also set by reading the players (s1) property file, see the Variables (scroll down).
    if(s.toLowerCase().startsWith("disband") && debugMode == true && currentClan != "" && playerRank == "Leader")


    Variables
    String s = servercommand.command;
    
    
    ICommandListener icommandlistener = servercommand.commandListener;
    String s1 = icommandlistener.getUsername();
    ServerConfigurationManager serverconfigurationmanager = minecraftServer.configManager;
        	
    findPlayerInfo(icommandlistener, s1);
     				
    			
              
        
    private void findPlayerInfo(ICommandListener icommandlistener, String s1)
    {
    		playerUsername = s1;
       			try {
    				FileReader fReader = new FileReader(playerDirectory + "\\" + playerUsername + "-properties.txt");
    				BufferedReader bReader = new BufferedReader(fReader);
    			
    				currentClan = bReader.readLine();
    				currentClan = currentClan.substring(5);
    			
    				playerRank = bReader.readLine();
    				playerRank = playerRank.substring(11);
    			
    				playerClass = bReader.readLine();
                	playerClass = playerClass.substring(12);
    			
    				playerLevelStr = bReader.readLine();
                	playerLevelStr = playerLevelStr.substring(12);
    			
    		} catch (IOException e) {
    			icommandlistener.log("Failed to read server config files");
    		}
    }


    Debug Command
    if(s.toLowerCase().startsWith("debug"))
            {
                debugMode = true;
    			if (clanDirectory.exists())
    			{
    			} else {
    				clanDirectory.mkdir();
    			}
    			if (playerDirectory.exists())
    			{
    			} else {
    				playerDirectory.mkdir();
    			}
    			icommandlistener.log("MC Kingdom Debug Mode");
            } else
    Posted in: Modification Development
  • 0

    posted a message on [Adv] The Darkest Tomb v1.3.9 - Constantly Updated!
    Should I keep developing more on this map?
    Posted in: Maps
  • 0

    posted a message on [Adv] The Darkest Tomb v1.3.9 - Constantly Updated!
    Quote from linkiry5

    i have done a run through of your map and really enjoyed it wasnt too long that it got boring and it was stright forward maybe some more stuff in it next time and would love to run through it again with other people i post a link to the playlist that it is so you can find it :smile.gif:

    http://www.youtube.c...feature=viewall


    Great video play-through, its great to see people still interested in the map
    Posted in: Maps
  • 0

    posted a message on Minecraft Map Installer Beta Testing
    Thanks guys, the maps you guys sent through are working correctly. I am going to just finish up the rating system and then I will release it.
    Posted in: Maps
  • 0

    posted a message on Minecraft Map Installer Beta Testing
    Example for request using Skyblock:

    Noobcrew
    1.1
    http://download1316.mediafire.com/5j9asa982d9g/remrg28pgaesi7b/SkyBlock1.1.zip
    http://i51.tinypic.com/dng7mh.png
    You spawn on a small floating island in the middle of no where.
    SkyBlock1.1
    Posted in: Maps
  • 0

    posted a message on Minecraft Map Installer Beta Testing
    Hey everyone, I have been working on a program that automatically downloads and installs maps into the Minecraft folder.

    Benefits:
    • Map Info including author, version, description and screenshots
    • No hassles of Downloading and installing
    • Automatic map updates
    • Top ten most popular maps
    • Easy to use
    What I need:
    I would like some map owners to send me their map's info to ensure that my program works correctly and without any bugs.

    If anyone would like to help me out and get free advertising for their map, please comment on this post with this format:

    Map Title:
    Author:
    Version:
    Download Link:
    Screenshot Link:
    Description:
    Map Folder name (name of the folder within your saves folder):


    Thanks guys for the help
    Posted in: Maps
  • 0

    posted a message on [Adv] The Darkest Tomb v1.3.9 - Constantly Updated!
    Looking for some more reviews or video commentaries
    Posted in: Maps
  • 0

    posted a message on [Art Team] Angry Notch - HELP WANTED!
    Who You Want To Do The Pixel Art: Anyone
    What Type: Block texture - Default Leaves (:Leaves:) with Cocoa Beans in them
    How Long You Would Like It To Take: 1 week or so
    What Mob To Base Texture Off Of: Not a mob
    What's Your Mod About: It is a collection of many things but one is adding a use for Cocoa beans into the game.
    Do you want a link to the file or can you take out the bg yourself: Doesn't matter
    Any Other Info: Standard 16x16 pixels

    Thanks guys :biggrin.gif:
    Posted in: Mods Discussion
  • 0

    posted a message on [Bukkit][No Whitelist][PvP] Krikkitt's SMP Server
    Great server, fair admins and awesome map.
    Posted in: Minecraft Survival Servers (archive)
  • 0

    posted a message on [Adv] The Darkest Tomb v1.3.9 - Constantly Updated!
    Bump
    Posted in: Maps
  • 0

    posted a message on [Adv] The Darkest Tomb v1.3.9 - Constantly Updated!
    Minor Update - v1.3.9
    • 4 new Challenges
    • 3 new Secret Chests
    • Bug Fixes
    • New Challenge Notes
    Posted in: Maps
  • 0

    posted a message on [ModLoader] Drop multiple items
    Thanks Power Crystal for a solution, gave you a +1 on your Reputation
    Posted in: Modification Development
  • 0

    posted a message on [ModLoader] Drop multiple items
    Quote from Quintinity

    Do you want it to drop two of the same item, or two different items?


    Two different items
    Posted in: Modification Development
  • 0

    posted a message on [Art Team] Angry Notch - HELP WANTED!
    Quote from Spacestrike

    Who You Want To Do The Pixel Art:
    Does not matter

    What Type: Mob/Item/Other
    Item - Straw

    How Long You Would Like It To Take: 1 Day/1 Hour/Some Other Time
    Couple Days

    Do you want a link to the file or can you take out the bg yourself: Link Please/No link, it's ok :smile.gif:
    Either, does not matter

    Any Other Info:
    I would like to look similar to this:




    Could someone give this a shot?
    Posted in: Mods Discussion
  • 0

    posted a message on [ModLoader] Drop multiple items
    Quote from meeees

    look at gravel
    see why it drops flint
    gain knowledge
    apply knowledge
    yay!


    Within modloader, so I am not editing the main class files. I usually try to research using the class files but this is a modloader mod
    Posted in: Modification Development
  • To post a comment, please or register a new account.