Skip to content

Commit

Permalink
Added a way to configure teams options.
Browse files Browse the repository at this point in the history
Closes #7.
  • Loading branch information
AmauryCarrade committed Aug 10, 2014
1 parent 9074573 commit 73bf2ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/me/azenet/UHPlugin/UHTeam.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public UHTeam(String name, String displayName, ChatColor color, UHPlugin plugin)

Team t = sb.getTeam(this.name);
t.setDisplayName(this.displayName);
t.setCanSeeFriendlyInvisibles(true);
t.setAllowFriendlyFire(true);
t.setCanSeeFriendlyInvisibles(plugin.getConfig().getBoolean("teams-options.canSeeFriendlyInvisibles", true));
t.setAllowFriendlyFire(plugin.getConfig().getBoolean("teams-options.allowFriendlyFire", true));
t.setPrefix(this.color + "");
}

Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ gameplay-changes:
# Else, the craft will be standard and the compass will show the spawn point of the team/player (not the world spawn point).
compass: true

teams-options:
canSeeFriendlyInvisibles: true
allowFriendlyFire: true

slow-start:
delayBetweenTP: 3 # in seconds

Expand Down

0 comments on commit 73bf2ae

Please sign in to comment.