Skip to content

Commit

Permalink
update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Dec 26, 2020
1 parent 0fcac02 commit 7adab71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<dependency>
<groupId>xyz.acrylicstyle</groupId>
<artifactId>api</artifactId>
<version>0.5.22</version>
<version>0.7.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Sound;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;
import util.ICollectionList;
import xyz.acrylicstyle.simplecommands.SimpleCommands;
import xyz.acrylicstyle.simplecommands.utils.Utils;
import xyz.acrylicstyle.tomeito_api.TomeitoAPI;
Expand All @@ -19,18 +17,6 @@
import java.util.UUID;

public class Texture implements CommandExecutor {
public static Sound BLOCK_NOTE_PLING;

static {
if (ICollectionList.asList(Sound.values()).map(Enum::name).contains("BLOCK_NOTE_BLOCK_PLING")) {
BLOCK_NOTE_PLING = Sound.valueOf("BLOCK_NOTE_BLOCK_PLING");
} else if (ICollectionList.asList(Sound.values()).map(Enum::name).contains("BLOCK_NOTE_PLING")) {
BLOCK_NOTE_PLING = Sound.valueOf("BLOCK_NOTE_PLING");
} else {
BLOCK_NOTE_PLING = Sound.valueOf("NOTE_PLING");
}
}

public static final List<UUID> confirm = new ArrayList<>();

@Override
Expand Down Expand Up @@ -71,7 +57,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
+ ChatColor.YELLOW + "//texture" + ChatColor.GOLD + "をもう一度打ってください。");
player.sendMessage("");
player.sendMessage("" + ChatColor.GOLD + ChatColor.BOLD + "==============================");
player.playSound(player.getLocation(), BLOCK_NOTE_PLING, 100, 1);
player.playSound(player.getLocation(), xyz.acrylicstyle.tomeito_api.sounds.Sound.BLOCK_NOTE_PLING, 100, 1);
confirm.add(player.getUniqueId());
new BukkitRunnable() {
@Override
Expand Down

0 comments on commit 7adab71

Please sign in to comment.