Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Commented out unused but future code
  • Loading branch information
DrZoddiak authored Oct 9, 2017
1 parent 60904bd commit 63b9d13
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/gmail/drzoddiak/soulbound/Reference.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Reference
//@Plugin data parameters
static final String NAME = "Main";
static final String ID = "soulbound";
static final String VERSION = "0.7";
static final String VERSION = "0.7.1";
static final String DESC = "Binds items to the users soul!";
static final String AUTHORS = "DrZoddiak & Burpingdog1";

Expand Down
18 changes: 9 additions & 9 deletions src/main/java/com/gmail/drzoddiak/soulbound/SBConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static void saveToFile()
{
cfg = getCfgMgr().load();
cfg.getNode("Bind Upon Use").setValue(Reference.sb_use);
cfg.getNode("Bind Upon Equip").setValue(Reference.sb_equip);
//cfg.getNode("Bind Upon Equip").setValue(Reference.sb_equip);
cfg.getNode("Bind Upon Pickup").setValue(Reference.sb_pickup);
getCfgMgr().save(cfg);
}
Expand All @@ -80,8 +80,8 @@ void configCheck()
cfg.getNode("Bind Upon Equip").setValue(new ArrayList<String>(){{add(ItemTypes.DIAMOND_HELMET.getId());}});
cfg.getNode("Modules", "Permission-check", "Use-Enabled").setValue(false);
cfg.getNode("Modules", "Permission-check", "Pickup-Enabled").setValue(false);
cfg.getNode("Modules", "Permission-check", "Equip-Enabled").setValue(false);
cfg.getNode("Modules", "Permission-check", "KeepUponDeath-Enabled").setValue(false);
//cfg.getNode("Modules", "Permission-check", "Equip-Enabled").setValue(false);
//cfg.getNode("Modules", "Permission-check", "KeepUponDeath-Enabled").setValue(false);
getLogger().info("Config created.");
getCfgMgr().save(cfg);
}
Expand All @@ -108,12 +108,12 @@ void configCheck()
cfg.getNode("Modules", "Permission-check", "Pickup-Enabled").setValue(false);
pickup_perm = cfg.getNode("Modules", "Permission", "Pickup-Enabled").getBoolean();

if(cfg.getNode("Modules", "Permission-check", "Equip-Enabled").isVirtual())
cfg.getNode("Modules", "Permission-check", "Equip-Enabled").setValue(false);
equip_perm = cfg.getNode("Modules", "Permission", "Equip-Enabled").getBoolean();

if(cfg.getNode("Modules", "Permission-check", "KeepUponDeath-Enabled").isVirtual())
cfg.getNode("Modules", "Permission-check", "KeepUponDeath-Enabled").setValue(false);
//if(cfg.getNode("Modules", "Permission-check", "Equip-Enabled").isVirtual())
// cfg.getNode("Modules", "Permission-check", "Equip-Enabled").setValue(false);
//equip_perm = cfg.getNode("Modules", "Permission", "Equip-Enabled").getBoolean();
//
//if(cfg.getNode("Modules", "Permission-check", "KeepUponDeath-Enabled").isVirtual())
// cfg.getNode("Modules", "Permission-check", "KeepUponDeath-Enabled").setValue(false);
//keep_perm = cfg.getNode("Modules", "Permission-check", "KeepUponDeath-Enabled").getBoolean();

getCfgMgr().save(cfg);
Expand Down

0 comments on commit 63b9d13

Please sign in to comment.