Package me.neatmonster.spacebukkit.utilities

Examples of me.neatmonster.spacebukkit.utilities.PropertiesFile.load()


     */
    public static String getCase(final String playerName) {
        try {
            final PropertiesFile propertiesFile = new PropertiesFile(
                    new File("SpaceModule", "players.properties").getPath());
            propertiesFile.load();
            final String savedPlayerName = propertiesFile.getString(playerName.toLowerCase());
            propertiesFile.save();
            if (savedPlayerName != null && !savedPlayerName.equals(""))
                return savedPlayerName;
        } catch (IOException e) {
View Full Code Here


     */
    public static void setCase(final String playerName) {
        try {
            final PropertiesFile propertiesFile = new PropertiesFile(
                    new File("SpaceModule", "players.properties").getPath());
            propertiesFile.load();
            propertiesFile.setString(playerName.toLowerCase(), playerName);
            propertiesFile.save();
        } catch (IOException e) {
            e.printStackTrace();
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.