Skip to content

Commit

Permalink
Fixed wrong spelling of "cantspectate"
Browse files Browse the repository at this point in the history
  • Loading branch information
Chipley committed Apr 9, 2013
1 parent 2a08a22 commit e8b5b77
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
13 changes: 11 additions & 2 deletions src/com/Chipmunk9998/Spectate/Spectate.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,19 @@ public void onEnable() {
getServer().getPluginManager().registerEvents(Listener, this);

conf = getConfig();

boolean canspectate = false;

if (conf.get("canspectate Permission Enabled?") != null) {

canspectate = conf.getBoolean("canspectate Permission Enabled?");
conf.set("canspectate Permission Enabled?", null);

if (conf.get("canspectate Permission Enabled?") == null) {
}

if (conf.get("cantspectate Permission Enabled?") == null) {

conf.set("canspectate Permission Enabled?", false);
conf.set("cantspectate Permission Enabled?", canspectate);

}

Expand Down
2 changes: 1 addition & 1 deletion src/com/Chipmunk9998/Spectate/SpectateAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public static ArrayList<Player> getSpectateablePlayers() {

}

if (getPlugin().conf.getBoolean("canspectate Permission Enabled?")) {
if (getPlugin().conf.getBoolean("cantspectate Permission Enabled?")) {

if (onlinePlayers.hasPermission("spectate.cantspectate")) {

Expand Down
4 changes: 2 additions & 2 deletions src/com/Chipmunk9998/Spectate/SpectateCommandExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ else if (args[1].equalsIgnoreCase("thirdpersonfront")) {

}

if (plugin.conf.getBoolean("canspectate Permission Enabled?") == true) {
if (plugin.conf.getBoolean("cantspectate Permission Enabled?") == true) {

if (targetPlayer.hasPermission("spectate.cantspectate")) {

Expand Down Expand Up @@ -728,7 +728,7 @@ else if (args[1].equalsIgnoreCase("thirdpersonfront")) {

}

if (plugin.conf.getBoolean("canspectate Permission Enabled?") == true) {
if (plugin.conf.getBoolean("cantspectate Permission Enabled?") == true) {

if (targetPlayer.hasPermission("spectate.cantspectate")) {

Expand Down

0 comments on commit e8b5b77

Please sign in to comment.