This repository has been archived by the owner on Dec 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25a90a7
commit 059e76e
Showing
6 changed files
with
69 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.github.caaarlowsz.pvp; | ||
|
||
import org.bukkit.ChatColor; | ||
import org.bukkit.configuration.file.FileConfiguration; | ||
|
||
public final class Strings { | ||
|
||
private static FileConfiguration config = PvPClassic.getPlugin().getConfig(); | ||
|
||
public static String getJoinMessage() { | ||
return color(config.getString("join-message")); | ||
} | ||
|
||
public static String getQuitMessage() { | ||
return color(config.getString("quit-message")); | ||
} | ||
|
||
public static String getDeathMessage() { | ||
return color(config.getString("death-message")); | ||
} | ||
|
||
public static String getKillMessage() { | ||
return color(config.getString("kill-message")); | ||
} | ||
|
||
public static String getCommandOnlyPlayers() { | ||
return color(config.getString("command-only-players")); | ||
} | ||
|
||
public static String getSetSpawnSuccess() { | ||
return color(config.getString("setspawn-success")); | ||
} | ||
|
||
public static String getToSpawn() { | ||
return color(config.getString("to-spawn")); | ||
} | ||
|
||
public static String getWaitToSpawn() { | ||
return color(config.getString("wait-to-spawn")); | ||
} | ||
|
||
private static String color(String input) { | ||
return ChatColor.translateAlternateColorCodes('&', input); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
join-message: '&7{player_name} joined the server.' | ||
quit-message: '&7{player_name} left the server.' | ||
death-message: '&e{player_name} died.' | ||
kill-message: '&e{player_name} was killed by {killer_name}.' | ||
command-only-players: '&cCommand for players only.' | ||
setspawn-success: '&aYou set the spawn position to {x}, {y}, {z}.' | ||
wait-to-spawn: '&6Teleporting from spawn... &7(wait 3s)' | ||
to-spawn: '&aTeleported to spawn.' |