Main Forum

Ideas for isail commands

3 replies
Posts:
3
Gold:
0
Untagged users
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");
}
Yeah Lets Code This!!
2 votes
100%
Aint Nobody got time fo dat!
0 votes
0%
Number of voters: 2
Posted Nov 3, 13 · OP
Posts:
9
Gold:
+4
Admins
I like this idea but it should really be in the "server suggestions" area of the forum.
tumblr_m0ux1klNPN1rn95k2o1_250.gif
Posted Nov 4, 13
Posts:
3
Gold:
0
Untagged users
oh.. sorry i didnt see it.
Posted Nov 4, 13 · OP
Posts:
3
Gold:
0
Untagged users
I recommend you make a seperate class in the plugin for this i can tell you will need a lot of code
Posted Nov 4, 13 · OP
Top Posters
9 Posts
3 Posts
2 Posts
1 Posts
1 Posts
There are no birthdays today.
Upcoming birthdays (1)
Birthday on Sat 01 Jan, 2022
NoticeNotices