Solved I don't know why it's not working.

Discussion in 'Plugin Development' started by ASHninja1997, Jul 8, 2013.

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

    ASHninja1997

    So basically I have a command that will set a warp, save it in the config, then when a other command is executed it tps the player to that warp. But, The only thing is, is that when ever I type in the commads for that internal errors explode in the server console.
    Here are the two commands.
    (I think it has to do with the permissions part, because they both pop up the same errors but I could be wrong)

    [​IMG]

    Code:
     Player p = (Player)sender;
                final Location map1 = p.getLocation();
    for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("map1")){
                            if(player instanceof Player);
                if (!player.hasPermission("Snipecraft.map1")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
     
                @SuppressWarnings("unused")
                Location map01 = map1;
                this.config.set("map1.world", map1.getWorld());
                this.config.set("map1.x", map1.getBlockX()+0.5D);
                this.config.set("map1.y", map1.getBlockY()+0.5D);
                this.config.set("map1.z", map1.getBlockZ()+0.5D);
                this.config.set("spawn.map1", false);
                player.sendMessage(ChatColor.GREEN + " Map1 warp has been set set");
                return true;
                }}
    Code:
    for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("smap1")){
                    if(player instanceof Player);
                    if (!player.hasPermission("Snipecraft.smap1")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
                                                for(Player v : Bukkit.getOnlinePlayers()){
                                                    if (this.config.getBoolean("spawn.map1")){
                                                        double x = this.config.getDouble("map1.x");
                                                        double y = this.config.getDouble("map1.y");
                                                        double z = this.config.getDouble("map1.z");
                                                      World w = Bukkit.getWorld(this.config.getString("map1.world"));
                                                        v.teleport(new Location(w, x, y, z));
                                                    Bukkit.dispatchCommand(sender, getConfig().getString("Game"));
                                                    }}}}
     
  2. Offline

    SnipsRevival

    What is line 53 of your class snipemaps?
     
  3. Offline

    Bammerbom

    ASHninja1997 What is line 53?

    SnipsRevival Lol i don't see your message but when i posted my message i see that from you :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  4. Offline

    LinearLogic

    The NPE is occurring in line 53 of your 'snipemaps' class (I'd suggest capitalizing the class, btw), so it would help to know what that line contains. I'm guessing the World object retrieved by calling Bukkit.getWorld(this.config.getString("map1.world")) could be your issue.

    A few comments that might improve things:
    Code:java
    1. for(Player player: getServer().getOnlinePlayers()) {
    2. if(cmd.getName().equalsIgnoreCase("smap1")){
    3. if(player instanceof Player);

    Putting a semicolon at the end of if(player instanceof Player); terminates the if block, making that line of code useless. Also, the cmd.getName().equalsIgnoreCase("smap1") check should preceed all else. The command won't change, so there's no point iterating over all online players checking the command each time! And since you're iterating over Player objects anyway, you don't need to check if the objects are instanceof Player - they'll always be. :)
     
  5. Offline

    ASHninja1997

    Sorry I was afk for a sec here is line 53

    Code:
     this.config.set("map1.world", map1.getWorld());
     
  6. Offline

    SnipsRevival

    ASHninja1997 config may be null. Can you show us where you set config as a variable.
     
  7. Offline

    ASHninja1997

    Here is the config

    Code:
    Spawn.map1:
        x: 2
        y: 2
        z: 2
        world: world
        isSet: false
     
  8. Offline

    SnipsRevival

  9. Offline

    ASHninja1997

    public FileConfiguration config;
     
  10. Offline

    SnipsRevival

    ASHninja1997 There is your problem. Add config = getConfig() in your onEnable().
     
  11. Offline

    ASHninja1997

    Can you please explain more...I am a bit new to this stuff

    SnipsRevival -forgot to Tahg you :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  12. Offline

    SnipsRevival

    ASHninja1997 the line
    Code:
    FileConfiguration config;
    does not actually set a value to config, so it will be null until you do so. You fix this by setting your config variable to getConfig() when your plugin is enabled.
     
  13. Offline

    Compressions

    ASHninja1997 If you don't initialize config, then how do you expect Java to guess what it is for? If you initialized it outside of a method, the code will likely be ran before the plugin reads the data folder, resulting in a File can not be null error.
     
  14. Offline

    ASHninja1997

    SnipsRevival
    But I allready had that code in the onEnable
    Code:
     @Override
            public void onEnable() {
                Bukkit.getConsoleSender().sendMessage(ChatColor.GREEN + "[SnipeMaps] SnipeMaps has been Enabled!");
                getConfig().options().copyDefaults(true);
                saveConfig();
            }
     
  15. Offline

    SnipsRevival

    ASHninja1997 if you want to use config as a variable, you must add the line
    Code:
    config = getConfig()
     
  16. Offline

    ASHninja1997

    SnipsRevival
    I am sorry if I am being difficult.
    So do you replace the
    public FileConfiguration config;
    with config = getConfig();
    ?

    SnipsRevival
    or is it
    public FileConfiguration config = getConfig();

    SnipsRevival
    I just tried both of fixes
    config = getConfig();
    public FileConfiguration config = getConfig();
    and they did't work

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  17. Offline

    LinearLogic

    ASHninja1997
    Replace every instance of config in your code with getConfig() (or plugin.getConfig() if not in the class extending JavaPlugin). Don't use a separate FileConfiguration object; it's redundant. In your onEnable() method, call saveDefaultConfig(), and any time you edit the config, call saveConfig(). That should do it for you :cool:
     
  18. Offline

    ASHninja1997

    LinearLogic -I will try this....if it doesn't work I will post the entire code here for you to diagnose
    If anything goes wrong its on my end..your suggestion is probably right
     
  19. Offline

    LinearLogic

    That should work fine unless you're using a custom configuration. saveDefaultConfig() copies default values if the config.yml hasn't been generated; otherwise, it does nothing. The first time you call getConfig(), the config.yml is loaded onto the server. Make sure you call getConfig() once before calling saveConfig() so the config is loaded when being written to.
     
  20. Offline

    ASHninja1997

    LinearLogic
    I am very sorry, but I am new to the Java language and don't completely understand what you are saying.
    Here is the code. Again I ma very sorry to make you go through the code but I just don't understand.
    If you can post what I am doing wrong and tell me what I need to do in code, then I will understand
    Code:
    package com.ASHninja1997.snipemaps;
     
    import org.bukkit.Bukkit;
    import org.bukkit.ChatColor;
    import org.bukkit.Location;
    import org.bukkit.World;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.configuration.file.FileConfiguration;
    import org.bukkit.entity.Player;
    import org.bukkit.event.Listener;
    import org.bukkit.plugin.Plugin;
    import org.bukkit.plugin.java.JavaPlugin;
     
        public final class snipemaps extends JavaPlugin implements Listener{
         
            String mark = "";
            String text = ChatColor.AQUA + "Seconds till next game!";
            int number = 60;
            int counter;
            Plugin plugin;
            public FileConfiguration config = plugin.getConfig();
            Location location;
            World w;
            Player p;
     
            @Override
            public void onEnable() {
                Bukkit.getConsoleSender().sendMessage(ChatColor.GREEN + "[SnipeMaps] SnipeMaps has been Enabled!");
                getConfig().options().copyDefaults(true);
                saveDefaultConfig();
            }
     
            @Override
            public void onDisable() {
                Bukkit.getConsoleSender().sendMessage(ChatColor.GREEN + "[SnipeMaps] SnipeMaps has been Disabled!");
            }
         
            public boolean onCommand(final CommandSender sender, Command cmd, String label, String[] args){
                Player p = (Player)sender;
                final Location map1 = p.getLocation();
                final Location map2 = p.getLocation();
                final Location map3 = p.getLocation();
                final Location map4 = p.getLocation();
                final Location map5 = p.getLocation();
                final Location map6 = p.getLocation();
     
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("map1")){
                            if(player instanceof Player);
                if (!player.hasPermission("Snipecraft.map1")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
     
                @SuppressWarnings("unused")
                Location map01 = map1;
                this.config.set("map1.world", map1.getWorld());
                this.config.set("map1.x", map1.getBlockX()+0.5D);
                this.config.set("map1.y", map1.getBlockY()+0.5D);
                this.config.set("map1.z", map1.getBlockZ()+0.5D);
                this.config.set("spawn.map1", false);
                player.sendMessage(ChatColor.GREEN + " Map1 warp has been set set");
                return true;
                }}
             
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("map2")){
                    if(player instanceof Player);
                    if (!player.hasPermission("Snipecraft.map2")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
     
                    @SuppressWarnings("unused")
                    Location map02 = map2;
                    this.config.set("map2.world", map1.getWorld());
                    this.config.set("map2.x", map1.getBlockX()+0.5D);
                    this.config.set("map2.y", map1.getBlockY()+0.5D);
                    this.config.set("map2.z", map1.getBlockZ()+0.5D);
                    this.config.set("spawn.map2", false);
                    player.sendMessage(ChatColor.GREEN + " Map2 warp has been set set");
                    return true;
                    }}
               
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("map3")){
                    if(player instanceof Player);
                    if (!player.hasPermission("Snipecraft.map3")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
     
                    @SuppressWarnings("unused")
                    Location map03 = map3;
                    this.config.set("map3.world", map1.getWorld());
                    this.config.set("map3.x", map1.getBlockX()+0.5D);
                    this.config.set("map3.y", map1.getBlockY()+0.5D);
                    this.config.set("map3.z", map1.getBlockZ()+0.5D);
                    this.config.set("spawn.map3", false);
                    player.sendMessage(ChatColor.GREEN + " Map3 warp has been set set");
                    return true;
                    }}
               
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("map4")){
                    if(player instanceof Player);
                    if (!player.hasPermission("Snipecraft.map4")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
     
                    @SuppressWarnings("unused")
                    Location map04 = map4;
                    this.config.set("map4.world", map1.getWorld());
                    this.config.set("map4.x", map1.getBlockX()+0.5D);
                    this.config.set("map4.y", map1.getBlockY()+0.5D);
                    this.config.set("map4.z", map1.getBlockZ()+0.5D);
                    this.config.set("spawn.map4", false);
                    player.sendMessage(ChatColor.GREEN + " Map4 warp has been set set");
                    return true;
                    }}
               
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("map5")){
                    if(player instanceof Player);
                    if (!player.hasPermission("Snipecraft.map5")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
     
                    @SuppressWarnings("unused")
                    Location map05 = map5;
                    this.config.set("map5.world", map1.getWorld());
                    this.config.set("map5.x", map1.getBlockX()+0.5D);
                    this.config.set("map5.y", map1.getBlockY()+0.5D);
                    this.config.set("map5.z", map1.getBlockZ()+0.5D);
                    this.config.set("spawn.map5", false);
                    player.sendMessage(ChatColor.GREEN + " Map5 warp has been set set");
                    return true;
                    }}
               
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("map6")){
                    if(player instanceof Player);
                        if (!player.hasPermission("Snipecraft.map6")){player.sendMessage(ChatColor.RED + "You dont have permissoin!");return true;}
                    @SuppressWarnings("unused")
                    Location map06 = map6;
                    this.config.set("map6.world", map1.getWorld());
                    this.config.set("map6.x", map1.getBlockX()+0.5D);
                    this.config.set("map6.y", map1.getBlockY()+0.5D);
                    this.config.set("map6.z", map1.getBlockZ()+0.5D);
                    this.config.set("spawn.map6", false);
                    player.sendMessage(ChatColor.GREEN + " Map6 warp has been set set");
                    return true;}}
               
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("smap1")){
                    if(player instanceof Player);
                    if (!player.hasPermission("Snipecraft.smap1")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
                                                for(Player v : Bukkit.getOnlinePlayers()){
                                                    if (this.config.getBoolean("spawn.map1")){
                                                        double x = this.config.getDouble("map1.x");
                                                        double y = this.config.getDouble("map1.y");
                                                        double z = this.config.getDouble("map1.z");
                                                      World w = Bukkit.getWorld(this.config.getString("map1.world"));
                                                        v.teleport(new Location(w, x, y, z));
                                                    Bukkit.dispatchCommand(sender, getConfig().getString("Game"));
                                                    }}}}
               
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("smap2")){
                    if(player instanceof Player);
                    if (!player.hasPermission("Snipecraft.smap2")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
                                                for(Player v : Bukkit.getOnlinePlayers()){
                                                    if (this.config.getBoolean("spawn.map2")){
                                                        double x = this.config.getDouble("map2.x");
                                                        double y = this.config.getDouble("map2.y");
                                                        double z = this.config.getDouble("map2.z");
                                                      World w = Bukkit.getWorld(this.config.getString("map2.world"));
                                                        v.teleport(new Location(w, x, y, z));
                                                    Bukkit.dispatchCommand(sender, getConfig().getString("Game"));
                                                    }}}}
               
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("smap3")){
                    if(player instanceof Player);
                    if (!player.hasPermission("Snipecraft.smap3")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
                                                for(Player v : Bukkit.getOnlinePlayers()){
                                                    if (this.config.getBoolean("spawn.map3")){
                                                        double x = this.config.getDouble("map3.x");
                                                        double y = this.config.getDouble("map3.y");
                                                        double z = this.config.getDouble("map3.z");
                                                      World w = Bukkit.getWorld(this.config.getString("map3.world"));
                                                        v.teleport(new Location(w, x, y, z));
                                                    Bukkit.dispatchCommand(sender, getConfig().getString("Game"));
                                                    }}}}
               
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("smap4")){
                    if(player instanceof Player);
                    if (!player.hasPermission("Snipecraft.smap4")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
                                                for(Player v : Bukkit.getOnlinePlayers()){
                                                    if (this.config.getBoolean("spawn.map4")){
                                                        double x = this.config.getDouble("map4.x");
                                                        double y = this.config.getDouble("map4.y");
                                                        double z = this.config.getDouble("map4.z");
                                                      World w = Bukkit.getWorld(this.config.getString("map4.world"));
                                                        v.teleport(new Location(w, x, y, z));
                                                    Bukkit.dispatchCommand(sender, getConfig().getString("Game"));
                                                    }}}}
               
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("smap5")){
                    if(player instanceof Player);
                    if (!player.hasPermission("Snipecraft.smap5")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
                                                for(Player v : Bukkit.getOnlinePlayers()){
                                                    if (this.config.getBoolean("spawn.map5")){
                                                        double x = this.config.getDouble("map5.x");
                                                        double y = this.config.getDouble("map5.y");
                                                        double z = this.config.getDouble("map5.z");
                                                      World w = Bukkit.getWorld(this.config.getString("map5.world"));
                                                        v.teleport(new Location(w, x, y, z));
                                                    Bukkit.dispatchCommand(sender, getConfig().getString("Game"));
                                                    }}}}
               
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("smap6")){
                    if(player instanceof Player);
                    if (!player.hasPermission("Snipecraft.smap6")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
                                                for(Player v : Bukkit.getOnlinePlayers()){
                                                    if (this.config.getBoolean("spawn.map6")){
                                                        double x = this.config.getDouble("map6.x");
                                                        double y = this.config.getDouble("map6.y");
                                                        double z = this.config.getDouble("map6.z");
                                                      World w = Bukkit.getWorld(this.config.getString("map6.world"));
                                                        v.teleport(new Location(w, x, y, z));
                                                    Bukkit.dispatchCommand(sender, getConfig().getString("Game"));
                                                    }}}}
               
                for(Player player: getServer().getOnlinePlayers()) {
                if(cmd.getName().equalsIgnoreCase("bGame2")){
                    if(player instanceof Player);
                    if (!player.hasPermission("Snipecraft.bgame2")){player.sendMessage(ChatColor.RED + "You dont have permissoins!");return true;}
                    Bukkit.dispatchCommand(sender, getConfig().getString("bGame"));}}
                return false;
            }}
     
  21. Offline

    LinearLogic

    I'll rewrite your class. Something I can't stress enough though is that calling
    Code:java
    1. for(Player player: getServer().getOnlinePlayers()) {
    2. if(cmd.getName().equalsIgnoreCase("map1")){

    is horribly inefficient - you're basically checking if the command is "map1", but you're doing it once for every player on the server. The command won't change, so there's no need for the for (Player player : getServer().getOnlinePlayers()) loop at all.
     
  22. Offline

    Tim4209

    This is from a old plugin i made, it does everything you want to do.

    Code:
        public File    configFile;
        public FileConfiguration    config;
       
        public void onEnable() {
            initConfiguration();
        }
       
        public void initConfiguration() {
            configFile = new File(getDataFolder() + "/config.yml");
            if (!configFile.exists()) {
                saveDefaultConfig();
            }
            this.config = this.getConfig();
        }
       
        public Location getWarp(String name) {
            final String worldName = config.getString("Warps." + name + ".World");
            if (worldName == null || worldName.isEmpty()) {
                name = "Default";
            }
            return new Location(Bukkit.getServer().getWorld(config.getString("Warps." + name + ".World")),
                    config.getDouble("Warps." + name + ".X"),
                    config.getDouble("Warps." + name + ".Y"),
                    config.getDouble("Warps." + name + ".Z"),
                    (float) config.getDouble("Warps." + name + ".Yaw"),
                    (float) config.getDouble("Warps." + name + ".Pitch")
                    );
        }
       
        public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
            if (cmd.getName().equalsIgnoreCase("warp"))
                return commandWarp(sender, args);
            if (cmd.getName().equalsIgnoreCase("setwarp"))
                return commandSetwarp(sender, args);
        }
       
        private boolean commandWarp(CommandSender sender, String[] args) {
            if (sender instanceof Player) {
                Player player = (Player) sender;
                if (args.length == 1) {
                    player.teleport(getWarp(args[0]));
                    return true;
                }
                else {
                    for (String name : config.getConfigurationSection("Warps").getKeys(false)) {
                        sender.sendMessage(ChatColor.RED + "Warp: " + name);
                    }
                }
            }
            return true;
        }
       
        private boolean commandSetwarp(CommandSender sender, String[] args) {
            if (sender instanceof Player) {
                Player player = (Player) sender;
                if (args.length == 1) {
                    String name = args[0];
                    Location location = player.getLocation();
       
                    config.set("Warps." + name + ".World", player.getWorld().getName());
                    config.set("Warps." + name + ".X", location.getX());
                    config.set("Warps." + name + ".Y", location.getY());
                    config.set("Warps." + name + ".Z", location.getZ());
                    config.set("Warps." + name + ".Pitch", location.getPitch());
                    config.set("Warps." + name + ".Yaw", location.getYaw());
                    saveConfig();
                    this.config = this.getConfig();
                    player.sendMessage("New warp set:" + name);
                    return true;
                }
                else {
                    player.sendMessage("Warp could not be set.");
                }
            }
            return true;
        }
     
  23. Offline

    LinearLogic

    ASHninja1997
    Cleaned up/repaired your code. I only added an example for each command (i.e. /map1, but not /map2, /map3, etc.) so you get the gist. It's similar to Tim4209's code but with simpler config handling.

    Show Spoiler
    Code:java
    1. public class SnipeMaps extends JavaPlugin implements Listener {
    2.  
    3. String text = ChatColor.AQUA + "Seconds till next game!";
    4. int number = 60;
    5. int counter;
    6.  
    7. @Override
    8. public void onEnable() {
    9. getServer().getPluginManager().registerEvents(this, this);
    10. saveDefaultConfig();
    11. reloadConfig(); // Load the config to be safe
    12. getLogger().info("Plugin successfully enabled!");
    13. }
    14.  
    15. @Override
    16. public void onDisable() {
    17. saveConfig();
    18. getLogger().info("Plugin successfully disabled!");
    19. }
    20.  
    21. public boolean onCommand(final CommandSender sender, Command cmd, String label, String[] args){
    22. if (!(sender instanceof Player)) {
    23. sender.sendMessage(ChatColor.RED + "You must be a player to set a warp!");
    24. return true;
    25. }
    26. Player p = (Player) sender;
    27. final Location map1 = p.getLocation();
    28.  
    29. if(cmd.getName().equalsIgnoreCase("map1")) {
    30. if (!p.hasPermission("snipecraft.map1")) {
    31. p.sendMessage(ChatColor.RED + "You dont have permission!");
    32. return true;
    33. }
    34. getConfig().set("map1.world", map1.getWorld().getName());
    35. getConfig().set("map1.x", map1.getBlockX()+0.5D);
    36. getConfig().set("map1.y", map1.getBlockY()+0.5D);
    37. getConfig().set("map1.z", map1.getBlockZ()+0.5D);
    38. getConfig().set("spawn.map1", false);
    39. saveConfig();
    40. sender.sendMessage(ChatColor.GREEN + " Map1 warp has been set set");
    41. }
    42.  
    43. else if(cmd.getName().equalsIgnoreCase("smap1")) {
    44. if (!p.hasPermission("snipecraft.smap1")) {
    45. p.sendMessage(ChatColor.RED + "You dont have permission!");
    46. return true;
    47. }
    48. if (getConfig().getBoolean("spawn.map1")) {
    49. double x = getConfig().getDouble("map1.x");
    50. double y = getConfig().getDouble("map1.y");
    51. double z = getConfig().getDouble("map1.z");
    52. String worldName = getConfig().getString("map1.world");
    53. World w = getServer().getWorld(worldName);
    54. if (w == null) {
    55. p.sendMessage(ChatColor.RED + "Couldn't find world \"" + worldName + "\" - check your config!");
    56. return true;
    57. }
    58. p.teleport(new Location(w, x, y, z));
    59. getServer().dispatchCommand(sender, getConfig().getString("Game"));
    60. }
    61. }
    62.  
    63. else if(cmd.getName().equalsIgnoreCase("bGame2")) {
    64. if (!p.hasPermission("Snipecraft.bgame2")) {
    65. p.sendMessage(ChatColor.RED + "You dont have permissoins!");
    66. return true;
    67. }
    68. getServer().dispatchCommand(sender, getConfig().getString("bGame"));
    69. }
    70. return true;
    71. }
    72. }
     
  24. Offline

    Tim4209

    Doesnt that code save the default config everytime u reload the server?
     
  25. Offline

    SnipsRevival

    saveDefaultConfig() will not overwrite existing values.
     
Thread Status:
Not open for further replies.

Share This Page