Teleporting from Cargo Ship puts you under mapSolved
Dont teleport home from the new cargoship. you cant play anymore. you are under the map then.

any fix for this ?
We are having the same issue. one of my admins is stuck, even when he logs out and logs back in.
Same, when teleporting of the cargoship, you'll be still considered being on ship and moving with it.
plugin needs to do check to see if you're on the boat and "dismount" player  from boat. maybe have config option to block tp from boat.
Same problem here.
Same issue. :)
Same. I think f1 kill worked.

Merged post

The following patch seems to work for me.  Interesting that an admin can noclip and will float above the ship and stay locked to it as well.  Anyway, this checks that the player is on the ship and will block teleport.

--- NTeleportation.cs   2018-10-06 07:16:55.447926426 -0500
+++ NTeleportation.cs.cargoship   2018-10-06 07:17:59.751919811 -0500
@@ -326,6 +326,7 @@
                 {"TPTargetBuildingBlocked", "You can't teleport in a building blocked zone!"},
                 {"TPTargetInsideBlock", "You can't teleport into a foundation!"},
                 {"TPSwimming", "You can't teleport while swimming!"},
+                {"TPCargoShip", "You can't teleport from the cargo ship!"},
                 {"TPCrafting", "You can't teleport while crafting!"},
                 {"TPBlockedItem", "You can't teleport while carrying: {0}!"},
                 {"TownTP", "You teleported to town!"},
@@ -2303,6 +2304,7 @@

         private string CheckPlayer(BasePlayer player, bool build = false, bool craft = false)
         {
+            var onship = player.GetComponentInParent<CargoShip>();
             if (!player.IsAlive())
                 return "TPDead";
             if (player.IsWounded())
@@ -2311,6 +2313,8 @@
                 return "TPBuildingBlocked";
             if (player.IsSwimming())
                 return "TPSwimming";
+            if (onship)
+                return "TPCargoShip";
             if (!craft && player.inventory.crafting.queue.Count > 0)
                 return "TPCrafting";
             return null;
In response to rfc1920 ():
Same. I think f1 kill worked.

Merged post

The following patch seems to work fo...
Thanks ;)
In response to rfc1920 ():
Same. I think f1 kill worked.

Merged post

The following patch seems to work fo...
What file is this and what exactly did you change? Could you make a link to that file so that we can download it?
In response to Kleementin ():
What file is this and what exactly did you change? Could you make a link to that file so that we can...
The plugin consists of only one file, namely: NTeleportation.cs
In response to xthedeus ():
The plugin consists of only one file, namely: NTeleportation.cs
No. There are also 3 different Config-files and a language file.
There is one config, four data files, and some lang files.  But, this was a patch for the .cs file.
In response to rfc1920 ():
Same. I think f1 kill worked.

Merged post

The following patch seems to work fo...
So, really...which file is this and do I just have to copy the whole writing and add it or what do I have to do?
Could really need help with this one. Thank you.
ts a bit more complicated than just throwing it in the code.

You have to add the lines with + into the existing code at/around the Lines shown 

@@ -326,6+326,7 @@
@@ -2303,6+2304,7 @@
@@ -2311,6+2313,8 @@

Use notepad++ to see the line numbers to correspond where to place the code additions.
@rfc1920
thanks ;)
Locked automatically