Permalink
Browse files

Document scoreboard team option values

  • Loading branch information...
PseudoKnight committed Nov 13, 2017
1 parent c78461f commit d23b40ce4746d8bf7503a7152e6ff49e09fed20d
@@ -1,16 +1,12 @@
package com.laytonsmith.abstraction.bukkit;
import com.laytonsmith.PureUtilities.Common.ReflectionUtils;
import com.laytonsmith.abstraction.MCObjective;
import com.laytonsmith.abstraction.MCScore;
import com.laytonsmith.abstraction.MCScoreboard;
import com.laytonsmith.abstraction.enums.MCDisplaySlot;
import com.laytonsmith.abstraction.enums.bukkit.BukkitMCDisplaySlot;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.scoreboard.DisplaySlot;
import org.bukkit.scoreboard.Objective;
import org.bukkit.scoreboard.Score;
public class BukkitMCObjective implements MCObjective {
@@ -1,7 +1,6 @@
package com.laytonsmith.abstraction.bukkit;
import com.laytonsmith.abstraction.MCObjective;
import com.laytonsmith.abstraction.MCOfflinePlayer;
import com.laytonsmith.abstraction.MCScore;
import com.laytonsmith.abstraction.MCScoreboard;
import org.bukkit.scoreboard.Score;
@@ -2,7 +2,6 @@
import com.laytonsmith.PureUtilities.Common.ReflectionUtils;
import com.laytonsmith.abstraction.MCObjective;
import com.laytonsmith.abstraction.MCOfflinePlayer;
import com.laytonsmith.abstraction.MCScore;
import com.laytonsmith.abstraction.MCScoreboard;
import com.laytonsmith.abstraction.MCTeam;
@@ -6,7 +6,6 @@
import com.laytonsmith.abstraction.enums.MCNameTagVisibility;
import com.laytonsmith.abstraction.enums.MCOption;
import com.laytonsmith.abstraction.enums.MCOptionStatus;
import com.laytonsmith.abstraction.enums.bukkit.BukkitMCNameTagVisibility;
import com.laytonsmith.abstraction.enums.bukkit.BukkitMCOption;
import com.laytonsmith.abstraction.enums.bukkit.BukkitMCOptionStatus;
import org.bukkit.Bukkit;
@@ -143,7 +142,7 @@ public void setDisplayName(String displayName) {
@Override
public void setNameTagVisibility(MCNameTagVisibility visibility) {
t.setNameTagVisibility(BukkitMCNameTagVisibility.getConvertor().getConcreteEnum(visibility));
t.setNameTagVisibility(NameTagVisibility.valueOf(visibility.name()));
}
@Override

This file was deleted.

Oops, something went wrong.
@@ -218,7 +218,7 @@ public Boolean runAsync() {
}
/**
* @return Array containing only {@link ExceptionType#CREScoreboardException}
* @return Array containing only {@link CREScoreboardException}
*/
@Override
public Class<? extends CREThrowable>[] thrown() {
@@ -1211,8 +1211,11 @@ public String getName() {
@Override
public String docs() {
return "void {teamName, array, [scoreboard]} Sets various options about the team from an array,"
+ " checking for keys 'friendlyfire', 'collisionrule', 'deathmessagevisibility', 'friendlyinvisibles' and 'nametagvisibility'. " + DEF_MSG;
return "void {teamName, array, [scoreboard]} Sets various options about the team from an array. The keys"
+ " 'friendlyfire' and 'friendlyinvisibles' must be booleans. The keys 'collisionrule' and"
+ " 'deathmessagevisibility' must be one of " + StringUtils.Join(MCOptionStatus.values(), ", ", ", or ")
+ ". The key 'nametagvisibility' must be one of " + StringUtils.Join(MCNameTagVisibility.values(), ", ", ", or ")
+ "." + DEF_MSG;
}
@Override

0 comments on commit d23b40c

Please sign in to comment.