Adds an option for silent stargates which don't print teleportation messages or errors to the player's chat #7

This commit is contained in:
2021-11-05 23:39:18 +01:00
parent 4566c15350
commit 8c4cf16375
10 changed files with 71 additions and 19 deletions

View File

@ -121,7 +121,8 @@ public final class PortalFileHelper {
builder.append(options.isShown()).append(':');
builder.append(options.isNoNetwork()).append(':');
builder.append(options.isRandom()).append(':');
builder.append(options.isBungee());
builder.append(options.isBungee()).append(':');
builder.append(options.isSilent());
}
/**
@ -249,7 +250,8 @@ public final class PortalFileHelper {
//Load extra portal data
String destination = (portalData.length > 8) ? portalData[8] : "";
String network = (portalData.length > 9 && !portalData[9].isEmpty()) ? portalData[9] : Stargate.getDefaultNetwork();
String network = (portalData.length > 9 && !portalData[9].isEmpty()) ? portalData[9] :
Stargate.getDefaultNetwork();
String ownerString = (portalData.length > 10) ? portalData[10] : "";
//Get the owner from the owner string