Merge branch 'master' of https://github.com/gnembon/fabric-carpet
This commit is contained in:
commit
8d930ac72e
3 files changed
+8
-8
No files matched your search
@@ -4217,7 +4217,7 @@ Reads the `property` of the `team` if no `value` is specified. If a `value` is a
|
||||
|
||||
* `color`
|
||||
* Type: String
|
||||
* Options: See [team command](https://minecraft.gamepedia.com/Commands/team#Arguments) (same strings as `'teamcolor'` [command argument](https://github.com/gnembon/fabric-carpet/blob/master/docs/scarpet/Full.md#command-argument-types] options))
|
||||
* Options: See [team command](https://minecraft.gamepedia.com/Commands/team#Arguments) (same strings as `'teamcolor'` [command argument](https://github.com/gnembon/fabric-carpet/blob/master/docs/scarpet/Full.md#command-argument-types) options)
|
||||
|
||||
* `displayName`
|
||||
* Type: String or FormattedText, when querying returns FormattedText
|
||||
|
||||
@@ -69,7 +69,7 @@ Reads the `property` of the `team` if no `value` is specified. If a `value` is a
|
||||
|
||||
* `color`
|
||||
* Type: String
|
||||
* Options: See [team command](https://minecraft.gamepedia.com/Commands/team#Arguments) (same strings as `'teamcolor'` [command argument](https://github.com/gnembon/fabric-carpet/blob/master/docs/scarpet/Full.md#command-argument-types] options))
|
||||
* Options: See [team command](https://minecraft.gamepedia.com/Commands/team#Arguments) (same strings as `'teamcolor'` [command argument](https://github.com/gnembon/fabric-carpet/blob/master/docs/scarpet/Full.md#command-argument-types) options)
|
||||
|
||||
* `displayName`
|
||||
* Type: String or FormattedText, when querying returns FormattedText
|
||||
|
||||
@@ -262,7 +262,7 @@ public class Scoreboards {
|
||||
if(!(propertyVal instanceof StringValue)) throw new InternalExpressionException("'team_property' requires a string as the second argument");
|
||||
|
||||
switch (propertyVal.getString()) {
|
||||
case "collision_rule":
|
||||
case "collisionRule":
|
||||
if(!modifying) {
|
||||
Value ret = new StringValue(team.getCollisionRule().name);
|
||||
return (_c, _t) -> ret;
|
||||
@@ -287,7 +287,7 @@ public class Scoreboards {
|
||||
team.setColor(color);
|
||||
|
||||
break;
|
||||
case "death_message_visibility":
|
||||
case "deathMessageVisibility":
|
||||
if(!modifying) {
|
||||
Value ret = new StringValue(team.getDeathMessageVisibilityRule().name);
|
||||
return (_c, _t) -> ret;
|
||||
@@ -300,7 +300,7 @@ public class Scoreboards {
|
||||
team.setDeathMessageVisibilityRule(deathMessageVisibility);
|
||||
|
||||
break;
|
||||
case "display_name":
|
||||
case "displayName":
|
||||
if(!modifying) {
|
||||
Value ret = new FormattedTextValue(team.getDisplayName());
|
||||
return (_c, _t) -> ret;
|
||||
@@ -319,7 +319,7 @@ public class Scoreboards {
|
||||
team.setDisplayName(displayName);
|
||||
|
||||
break;
|
||||
case "friendly_fire":
|
||||
case "friendlyFire":
|
||||
if(!modifying) {
|
||||
Value ret = new NumericValue(team.isFriendlyFireAllowed());
|
||||
return (_c, _t) -> ret;
|
||||
@@ -330,7 +330,7 @@ public class Scoreboards {
|
||||
boolean friendlyFire = settingVal.getBoolean();
|
||||
team.setFriendlyFireAllowed(friendlyFire);
|
||||
break;
|
||||
case "nametag_visibility":
|
||||
case "nametagVisibility":
|
||||
if(!modifying) {
|
||||
Value ret = new StringValue(team.getNameTagVisibilityRule().name);
|
||||
return (_c, _t) -> ret;
|
||||
@@ -361,7 +361,7 @@ public class Scoreboards {
|
||||
|
||||
team.setPrefix(prefix);
|
||||
break;
|
||||
case "see_friendly_invisibles":
|
||||
case "seeFriendlyInvisibles":
|
||||
if(!modifying) {
|
||||
Value ret = new NumericValue(team.shouldShowFriendlyInvisibles());
|
||||
return (_c, _t) -> ret;
|
||||
|
||||
Reference in new issue
Block a user