7 Days to Die Oxide not working?Not An Issue
I have been struggling with this and with the documentation.. beating my head on the wall trying to figure what I'm doing wrong...

Then I tried tracing the object that we're "supposed" to be using per the documentation.. "player"..

I started pouring over the code from the github site and finally figured it must be in the "SevenDaysToDiePlugin.cs" file.

So I open it and look.... 

namespace Oxide.Plugins
{
    public abstract class SevenDaysPlugin : CSharpPlugin
    {
    }
}

..... nothing... heh.  Oh and I figure CSharpPlugin is included in an compiled binary dll somewhere.

So.. "player" is not declared anywhere, nor are there instructions to declare it..

What should I do to obtain access to "player" and be able to utilize the hooks and obtain the player's position and teleport?  Or when will you release the next working 7dtd Oxide? 

I assume this development is on hold while working on the uMod site, so it might be months.

Could someone give me a hint?  Would be something like --

     public SevenDaysPlayer player;

// check if already loaded in the player manager, if so assign player to that
// else assign new SevenDaysPlayer object.

Would the Rust Oxide source be the best example code?  Without looking I assume it has a "RustPlugin.cs" file..

Thanks all...

Roger
"player" isn't actually anything, that'd just be a variable name that is commonly from from whatever may pass a player object, such as hooks.

IPlayer on the other hand, is a player object that comes from the Covalence API we provide and would be available in specific hooks or if you use a method to find a object of that type.

7 Days to Die has its own player type as well, but I'm not sure what it is called off hand.

To answer your question though, it is working, hasn't changed, and you can either use Oxide's Covalence API with IPlayer.Position() or use the method that 7 Days to Die would have available for teleporting the player with their own player object. 

Here's how we do it with the universal (Covalence) API for 7 Days to Die:
        /// <summary>
        /// Teleports the player's character to the specified position
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <param name="z"></param>
        public void Teleport(float x, float y, float z)
        {
            EntityPlayer entity = Object as EntityPlayer;
            entity?.SetPosition(new Vector3(x, y, z));
        }​


To make a plugin for 7 Days to Die, you'd follow the same format as any other plugin on our site, with the plugin inheriting either SevenDaysToDiePlugin or CovalencePlugin for the class.

Locked automatically