Skip to content

Commit

Permalink
Added CreatingIsland Message
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachesMLG committed Aug 11, 2023
1 parent c28eabe commit 42264e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ public class Messages extends com.iridium.iridiumteams.configs.Messages {

public Messages() {
super("Island", "is", "IridiumSkyblock", "&9");

teamCreated = "%prefix% &7Island Creation Completed!";
}

public String voidTeleport = "%prefix% &7You have fallen off your island. Teleporting home...";
Expand All @@ -18,4 +20,5 @@ public Messages() {
public String unknownSchematic = "%prefix% &7No schematic with that name exists.";
public String noSafeLocation = "%prefix% &7Could not find a safe location to teleport to.";
public String cannotHurtPlayers = "%prefix% &7You cannot hurt players on your Island.";
public String creatingIsland = "%prefix% &7Creating Island, please wait...";
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ public List<Island> getTeams() {

@Override
public CompletableFuture<Island> createTeam(@NotNull Player owner, String name) {
owner.sendMessage(StringUtils.color(IridiumSkyblock.getInstance().getMessages().creatingIsland
.replace("%prefix%", IridiumSkyblock.getInstance().getConfiguration().prefix)
));
CompletableFuture<String> schematicNameCompletableFuture = new CompletableFuture<>();
owner.openInventory(new CreateGUI(owner.getOpenInventory().getTopInventory(), schematicNameCompletableFuture).getInventory());
return CompletableFuture.supplyAsync(() -> {
Expand Down

0 comments on commit 42264e1

Please sign in to comment.