I would like to see a command addition for isail that lets you add to a ship party and teleport to a ship
the code is a little bumpy due to my insufficient knowledge of mc coding. Note: It would be easier to make a separate class for this
YML;
Basic: Shiptp
description: Teleport to a ship.
usage: /ship tp [Ship name]
permission: isail.basic
permission-message: You don't have <permission>
Code
public static Shiptp(string targetship,) {
this.targetship = targetship;
targetship.getcoords(shipcoordx -= 1)//would find the actual ship using if statements and would define a variable called shipcoords;
if(//whatever tests that the ship exists, //also if the player is on the crew or allowed) {
sender.targetlocation(shipcoords);
sender.sendmessage("Teleporting");
}
else
{
sender.sendmessage("Ship does not exise or is not valid");
}
1 of 4 Announcement

