You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 23, 2023. It is now read-only.
Communication.SendPrivateInformation(userId,string.Format("You do not have permission to use '{0}'. You must either own all the beacons or they must be shared with faction.",pylonName));
96
+
Communication.SendPrivateInformation(userId,$"You do not have permission to use '{pylonName}'. You must either own all the beacons or they must be shared with faction.");
Communication.SendPrivateInformation(userId,string.Format("The docking zone '{0}' intersects with docking zone '{1}'. Make sure you place your docking zones so they don't overlap.",pylonName,testList.ElementAt(intersectElement).Key));
105
+
Communication.SendPrivateInformation(userId,$"The docking zone '{pylonName}' intersects with docking zone '{testList.ElementAt(intersectElement).Key}'. Make sure you place your docking zones so they don't overlap.");
Communication.SendPrivateInformation(userId,string.Format("The ship '{0}' is too large for it's carrier. The ship's bounding box must fit inside the docking zone bounding box!",dockingEntity.DisplayName));
168
+
Communication.SendPrivateInformation(userId,$"The ship '{dockingEntity.DisplayName}' is too large for it's carrier. The ship's bounding box must fit inside the docking zone bounding box!");
Communication.SendPrivateInformation(userId,string.Format("The ship '{0}' is not fully inside the docking zone '{1}'. Make sure the ship is fully contained inside the docking zone",dockingEntity.DisplayName,pylonName));
174
+
Communication.SendPrivateInformation(userId,$"The ship '{dockingEntity.DisplayName}' is not fully inside the docking zone '{pylonName}'. Make sure the ship is fully contained inside the docking zone");
Communication.SendPrivateInformation(userId,string.Format("The ship you're trying to dock is too heavy for it's carrier. The ship mass must be less than half the large ship / stations mass! (DM={0}kg CM={1}kg)",dockingMass,parentMass));
183
+
Communication.SendPrivateInformation(userId,$"The ship you're trying to dock is too heavy for it's carrier. The ship mass must be less than half the large ship / stations mass! (DM={dockingMass}kg CM={parentMass}kg)");
194
184
returntrue;
195
185
}
196
186
197
187
// Check to see if the ship is piloted, if it is, error out.
198
188
// TODO: Check to see if we can get a real time copy of this entity?
199
189
List<IMySlimBlock>blocks=newList<IMySlimBlock>();
200
-
dockingEntity.GetBlocks(blocks, x =>x.FatBlock!=null&&x.FatBlock.BlockDefinition.TypeId==typeof(MyObjectBuilder_Cockpit));
201
-
foreach(IMySlimBlockslim_cbeinblocks)
190
+
dockingEntity.GetBlocks(blocks, x =>x.FatBlockisMyCockpit);
//MyObjectBuilder_Cockpit c = (MyObjectBuilder_Cockpit)slim.FatBlock.GetObjectBuilderCubeBlock();
194
+
varc=(MyShipController)slim.FatBlock;
204
195
if(c.Pilot!=null)
205
196
{
206
-
Communication.SendPrivateInformation(userId,string.Format("Ship in docking zone '{0}' has a pilot! Please exit the ship before trying to dock. (Sometimes this can lag a bit. Wait 10 seconds and try again)",pylonName));
197
+
Communication.SendPrivateInformation(userId,$"Ship in docking zone '{pylonName}' has a pilot! Please exit the ship before trying to dock. (Sometimes this can lag a bit. Wait 10 seconds and try again)");
Communication.SendPrivateInformation(userId,string.Format("No ships in docking zone '{0}'.",pylonName));
253
+
Communication.SendPrivateInformation(userId,$"No ships in docking zone '{pylonName}'.");
265
254
}
266
255
}
267
256
elseif(beaconList.Count>4)
268
257
{
269
-
Communication.SendPrivateInformation(userId,string.Format("Too many beacons with the name or another zone with the name '{0}'. Place only 4 beacons to create a zone or try a different zone name.",pylonName));
258
+
Communication.SendPrivateInformation(userId,$"Too many beacons with the name or another zone with the name '{pylonName}'. Place only 4 beacons to create a zone or try a different zone name.");
Communication.SendPrivateInformation(userId,string.Format("You do not have permission to use '{0}'. You must either own all the beacons or they must be shared with faction.",pylonName));
85
+
Communication.SendPrivateInformation(userId,$"You do not have permission to use '{pylonName}'. You must either own all the beacons or they must be shared with faction.");
List<DockingItem>dockingItems=Docking.Instance.Find( d =>d.PlayerId==ownerId&&d.TargetEntityId==parent.EntityId&&d.DockingBeaconIds.Intersect(beaconListIds).Count()==4);
107
96
if(dockingItems.Count<1)
108
97
{
109
-
Communication.SendPrivateInformation(userId,string.Format("You have no ships docked in docking zone '{0}'.",pylonName));
98
+
Communication.SendPrivateInformation(userId,$"You have no ships docked in docking zone '{pylonName}'.");
Communication.SendPrivateInformation(userId,string.Format("The ship '{0}' has been undocked from docking zone '{1}'",dockingItem.DockedName,pylonName));
190
+
Communication.SendPrivateInformation(userId,$"The ship '{dockingItem.DockedName}' has been undocked from docking zone '{pylonName}'");
elseif(beaconList.Count>4)// Too many beacons, must be 4
249
238
{
250
239
Communication.SendPrivateInformation(userId,
251
-
string.Format("Too many beacons with the name or another zone with the name '{0}'. Place only 4 beacons to create a zone or try a different zone name.",
252
-
pylonName));
240
+
$"Too many beacons with the name or another zone with the name '{pylonName}'. Place only 4 beacons to create a zone or try a different zone name.");
0 commit comments