Skip to content

Commit

Permalink
1.13.2
Browse files Browse the repository at this point in the history
  • Loading branch information
BenceX100 committed Aug 11, 2024
1 parent 450c7bb commit f260473
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.artillexstudios</groupId>
<artifactId>AxGraves</artifactId>
<version>1.13.1</version>
<version>1.13.2</version>
<packaging>jar</packaging>

<name>AxGraves</name>
Expand Down Expand Up @@ -106,7 +106,7 @@
<dependency>
<groupId>com.artillexstudios.axapi</groupId>
<artifactId>axapi</artifactId>
<version>1.4.292</version>
<version>1.4.329</version>
<scope>compile</scope>
<classifier>all</classifier>
</dependency>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/artillexstudios/axgraves/AxGraves.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public void disable() {
}

public void updateFlags() {
FeatureFlags.USE_LEGACY_HEX_FORMATTER.set(true);
FeatureFlags.PACKET_ENTITY_TRACKER_ENABLED.set(true);
FeatureFlags.HOLOGRAM_UPDATE_TICKS.set(5L);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.artillexstudios.axgraves.grave.SpawnedGraves;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import revxrsal.commands.annotation.Command;
Expand All @@ -21,21 +22,21 @@ public class Commands {

@DefaultFor({"~", "~ help"})
@CommandPermission("axgraves.help")
public void help(@NotNull Player sender) {
public void help(@NotNull CommandSender sender) {
for (String m : MESSAGES.getStringList("help")) {
sender.sendMessage(StringUtils.formatToString(m));
}
}

@Subcommand("reload")
@CommandPermission("axgraves.reload")
public void reload(@NotNull Player sender) {
public void reload(@NotNull CommandSender sender) {
new SubCommandReload().subCommand(sender);
}

@Subcommand("list")
@CommandPermission("axgraves.list")
public void list(@NotNull Player sender) {
public void list(@NotNull CommandSender sender) {
new SubCommandList().subCommand(sender);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ public UpdateNotifier(AxPlugin instance, int id) {
this.newest = isLatest(current);

if (latest == null || newest) return;
Bukkit.getConsoleSender().sendMessage(getMessage());
Scheduler.get().runLaterAsync(t2 -> {
Bukkit.getConsoleSender().sendMessage(getMessage());
}, 50L);
t.cancel();
}, 50L, time);
}, 0, time);
}

@EventHandler
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ grave-list:
grave: "&#FF00FF[TP] &#FFAAFF%player% &7- &#FFAAFF%world% %x%, %y%, %z% &7(%time%)"
no-graves: "&#FFAAFFThere are no graves!"

update-notifier: "&#FF88FFThere is a new version of the plugin available! &#DDDDDD(&#FFFFFFcurrent: &#FF0000%current% &#DDDDDD| &#FFFFFFlatest: &#00FF00%latest%&#DDDDDD)"
update-notifier: "&#FF88FFThere is a new version of AxGraves available! &#DDDDDD(&#FFFFFFcurrent: &#FF0000%current% &#DDDDDD| &#FFFFFFlatest: &#00FF00%latest%&#DDDDDD)"

# do not edit
version: 4

0 comments on commit f260473

Please sign in to comment.