Skip to content

Commit

Permalink
Send a message when player is expelled
Browse files Browse the repository at this point in the history
  • Loading branch information
Euphillya committed Jan 5, 2025
1 parent 5e111c3 commit ff5cbc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public static void expelPlayer(Main plugin, Island island, Player bPlayerToExpel
}

PlayerUtils.teleportPlayerSpawn(bPlayerToExpel);
LanguageToml.sendMessage(executor, LanguageToml.messageExpelPlayerSuccess);
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public class LanguageToml {
public static String messageVisitIslandSuccess = "You have been teleported to the island of %player%.";
public static String messageExpelPlayerFailed = "The player cannot be expelled from your island.";
public static String messageExpelPlayerFailedNotInIsland = "The player is not on your island.";
public static String messageExpelPlayerSuccess = "You have expelled %player% from your island";
public static String messageExpelCommandNotEnoughArgs = "The command is incomplete: /skyllia expel <player>";
public static String messagePlayerNotConnected = "The player is not connected";
public static String messageLocationNotSafe = "The location is not safe! Teleportation impossible.";
Expand Down Expand Up @@ -303,6 +304,7 @@ private static void islandDeleteLanguage() {
private static void islandExpelLanguage() {
messageExpelCommandNotEnoughArgs = getString("island.expel.not-enough-args", messageExpelCommandNotEnoughArgs);
messageExpelPlayerFailed = getString("island.expel.player-failed", messageExpelPlayerFailed);
messageExpelPlayerSuccess = getString("island.expel.success", messageExpelPlayerSuccess);
messageExpelPlayerFailedNotInIsland = getString("island.expel.player-not-in-island", messageExpelPlayerFailedNotInIsland);
messageCannotDeleteIslandWithMembers = getString("island.delete.cannot-delete-with-members", messageCannotDeleteIslandWithMembers);
}
Expand Down

0 comments on commit ff5cbc2

Please sign in to comment.