Skip to content

Commit

Permalink
add server.view_distance tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 6, 2019
1 parent 3f372bc commit 3abb4d1
Showing 1 changed file with 12 additions and 1 deletion.
Expand Up @@ -1494,13 +1494,24 @@ else if (attribute.startsWith("source")) {
// @attribute <server.motd>
// @returns ElementTag
// @description
// Returns the server's current MOTD
// Returns the server's current MOTD.
// -->
if (attribute.startsWith("motd")) {
event.setReplaced(new ElementTag(Bukkit.getServer().getMotd()).getAttribute(attribute.fulfill(1)));
return;
}

// <--[tag]
// @attribute <server.view_distance>
// @returns ElementTag(Number)
// @description
// Returns the server's current view distance.
// -->
if (attribute.startsWith("motd")) {

This comment has been minimized.

Copy link
@Morphan1

Morphan1 Sep 6, 2019

Contributor

pls test

event.setReplaced(new ElementTag(Bukkit.getServer().getViewDistance()).getAttribute(attribute.fulfill(1)));
return;
}

// <--[tag]
// @attribute <server.entity_is_spawned[<entity>]>
// @returns ElementTag(Boolean)
Expand Down

0 comments on commit 3abb4d1

Please sign in to comment.