Renames Portal to Stargate when displaying information about a clicked portal
Some checks failed
EpicKnarvik97/Stargate/pipeline/head There was a failure building this commit

This commit is contained in:
Kristian Knarvik 2021-11-07 14:02:33 +01:00
parent fc744b04dc
commit 9c963c9e8c

View File

@ -314,10 +314,10 @@ 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 + "[PORTAL INFO]");
sender.sendSuccessMessage(player, String.format("Portal name: %s", portal.getName()));
sender.sendSuccessMessage(player, String.format("Portal destination: %s", portal.getDestinationName()));
sender.sendSuccessMessage(player, String.format("Portal network: %s", portal.getNetwork()));
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()));
}
}