Adds translation for portal information shown when right-clicking
Adds a distinction between network and server when displaying portal information Adds translated portal info strings for english and both flavors of Norwegian
This commit is contained in:
parent
4db6274dc3
commit
88bb02dfbd
@ -376,6 +376,12 @@ bungeeDisabled=BungeeCord support is disabled.
|
||||
bungeeDeny=You do not have permission to create BungeeCord gates.
|
||||
bungeeEmpty=BungeeCord gates require both a destination and network.
|
||||
bungeeSign=Teleport to
|
||||
|
||||
portalInfoTitle=[STARGATE INFO]
|
||||
portalInfoName=Name: %name%
|
||||
portalInfoDestination=Destination: %destination%
|
||||
portalInfoNetwork=Network: %network%
|
||||
portalInfoServer=Server: %server%
|
||||
```
|
||||
|
||||
# Changes
|
||||
@ -390,6 +396,7 @@ bungeeSign=Teleport to
|
||||
- Adds an option for stargates without a sign. Right-clicking such a stargate will display gate information
|
||||
- Fixes a bug causing signs to be re-drawn after they're broken
|
||||
- Makes buttons and signs be replaced by water instead of air when underwater
|
||||
- Makes portal info shown when right-clicking a stargate fully customizable
|
||||
|
||||
#### \[Version 0.9.0.5] EpicKnarvik97 fork
|
||||
|
||||
|
@ -314,10 +314,18 @@ public class PlayerEventListener implements Listener {
|
||||
//Display portal information as a portal without a sign does not display any
|
||||
if (portal.getOptions().hasNoSign() && !portal.getOptions().isSilent()) {
|
||||
MessageSender sender = Stargate.getMessageSender();
|
||||
sender.sendSuccessMessage(player, ChatColor.GOLD + "[STARGATE INFO]");
|
||||
sender.sendSuccessMessage(player, String.format("Stargate name: %s", portal.getName()));
|
||||
sender.sendSuccessMessage(player, String.format("Stargate destination: %s", portal.getDestinationName()));
|
||||
sender.sendSuccessMessage(player, String.format("Stargate network: %s", portal.getNetwork()));
|
||||
sender.sendSuccessMessage(player, ChatColor.GOLD + Stargate.getString("portalInfoTitle"));
|
||||
sender.sendSuccessMessage(player, Stargate.replaceVars(Stargate.getString("portalInfoName"),
|
||||
"%name%", portal.getName()));
|
||||
sender.sendSuccessMessage(player, Stargate.replaceVars(Stargate.getString("portalInfoDestination"),
|
||||
"%destination%", portal.getDestinationName()));
|
||||
if (portal.getOptions().isBungee()) {
|
||||
sender.sendSuccessMessage(player, Stargate.replaceVars(Stargate.getString("portalInfoServer"),
|
||||
"%server%", portal.getNetwork()));
|
||||
} else {
|
||||
sender.sendSuccessMessage(player, Stargate.replaceVars(Stargate.getString("portalInfoNetwork"),
|
||||
"%network%", portal.getNetwork()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -35,3 +35,9 @@ bungeeDisabled=BungeeCord support is disabled.
|
||||
bungeeDeny=You do not have permission to create BungeeCord gates.
|
||||
bungeeEmpty=BungeeCord gates require both a destination and network.
|
||||
bungeeSign=Teleport to
|
||||
|
||||
portalInfoTitle=[STARGATE INFO]
|
||||
portalInfoName=Name: %name%
|
||||
portalInfoDestination=Destination: %destination%
|
||||
portalInfoNetwork=Network: %network%
|
||||
portalInfoServer=Server: %server%
|
@ -35,3 +35,9 @@ bungeeDisabled=BungeeCord støtte er slått av.
|
||||
bungeeDeny=Du har ikke tillatelse til å opprette BungeeCord porter.
|
||||
bungeeEmpty=BungeeCord porter behøver bade en destinasjon og et nettverk.
|
||||
bungeeSign=Teleporter til
|
||||
|
||||
portalInfoTitle=[STJERNEPORT INFO]
|
||||
portalInfoName=Navn: %name%
|
||||
portalInfoDestination=Destinasjon: %destination%
|
||||
portalInfoNetwork=Nettverk: %network%
|
||||
portalInfoServer=Server: %server%
|
@ -35,3 +35,9 @@ bungeeDisabled=BungeeCord støtte er slått av.
|
||||
bungeeDeny=Du har ikkje løyve til å opprette BungeeCord portar.
|
||||
bungeeEmpty=BungeeCord portar treng bade ein destinasjon og eit nettverk.
|
||||
bungeeSign=Teleporter til
|
||||
|
||||
portalInfoTitle=[STJERNEPORT INFO]
|
||||
portalInfoName=Namn: %name%
|
||||
portalInfoDestination=Destinasjon: %destination%
|
||||
portalInfoNetwork=Nettverk: %network%
|
||||
portalInfoServer=Server: %server%
|
Loading…
x
Reference in New Issue
Block a user