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:
		@@ -376,6 +376,12 @@ bungeeDisabled=BungeeCord support is disabled.
 | 
				
			|||||||
bungeeDeny=You do not have permission to create BungeeCord gates.
 | 
					bungeeDeny=You do not have permission to create BungeeCord gates.
 | 
				
			||||||
bungeeEmpty=BungeeCord gates require both a destination and network.
 | 
					bungeeEmpty=BungeeCord gates require both a destination and network.
 | 
				
			||||||
bungeeSign=Teleport to
 | 
					bungeeSign=Teleport to
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					portalInfoTitle=[STARGATE INFO]
 | 
				
			||||||
 | 
					portalInfoName=Name: %name%
 | 
				
			||||||
 | 
					portalInfoDestination=Destination: %destination%
 | 
				
			||||||
 | 
					portalInfoNetwork=Network: %network%
 | 
				
			||||||
 | 
					portalInfoServer=Server: %server%
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Changes
 | 
					# 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
 | 
					- 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
 | 
					- 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 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
 | 
					#### \[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
 | 
					        //Display portal information as a portal without a sign does not display any
 | 
				
			||||||
        if (portal.getOptions().hasNoSign() && !portal.getOptions().isSilent()) {
 | 
					        if (portal.getOptions().hasNoSign() && !portal.getOptions().isSilent()) {
 | 
				
			||||||
            MessageSender sender = Stargate.getMessageSender();
 | 
					            MessageSender sender = Stargate.getMessageSender();
 | 
				
			||||||
            sender.sendSuccessMessage(player, ChatColor.GOLD + "[STARGATE INFO]");
 | 
					            sender.sendSuccessMessage(player, ChatColor.GOLD + Stargate.getString("portalInfoTitle"));
 | 
				
			||||||
            sender.sendSuccessMessage(player, String.format("Stargate name: %s", portal.getName()));
 | 
					            sender.sendSuccessMessage(player, Stargate.replaceVars(Stargate.getString("portalInfoName"), 
 | 
				
			||||||
            sender.sendSuccessMessage(player, String.format("Stargate destination: %s", portal.getDestinationName()));
 | 
					                    "%name%", portal.getName()));
 | 
				
			||||||
            sender.sendSuccessMessage(player, String.format("Stargate network: %s", portal.getNetwork()));
 | 
					            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.
 | 
					bungeeDeny=You do not have permission to create BungeeCord gates.
 | 
				
			||||||
bungeeEmpty=BungeeCord gates require both a destination and network.
 | 
					bungeeEmpty=BungeeCord gates require both a destination and network.
 | 
				
			||||||
bungeeSign=Teleport to
 | 
					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.
 | 
					bungeeDeny=Du har ikke tillatelse til å opprette BungeeCord porter.
 | 
				
			||||||
bungeeEmpty=BungeeCord porter behøver bade en destinasjon og et nettverk.
 | 
					bungeeEmpty=BungeeCord porter behøver bade en destinasjon og et nettverk.
 | 
				
			||||||
bungeeSign=Teleporter til
 | 
					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.
 | 
					bungeeDeny=Du har ikkje løyve til å opprette BungeeCord portar.
 | 
				
			||||||
bungeeEmpty=BungeeCord portar treng bade ein destinasjon og eit nettverk.
 | 
					bungeeEmpty=BungeeCord portar treng bade ein destinasjon og eit nettverk.
 | 
				
			||||||
bungeeSign=Teleporter til
 | 
					bungeeSign=Teleporter til
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					portalInfoTitle=[STJERNEPORT INFO]
 | 
				
			||||||
 | 
					portalInfoName=Namn: %name%
 | 
				
			||||||
 | 
					portalInfoDestination=Destinasjon: %destination%
 | 
				
			||||||
 | 
					portalInfoNetwork=Nettverk: %network%
 | 
				
			||||||
 | 
					portalInfoServer=Server: %server%
 | 
				
			||||||
		Reference in New Issue
	
	Block a user