HWTeleportation

Moved

Total Downloads: 12,623 - First Release: Dec 12, 2015 - Last Update: Nov 5, 2017

5/5, 35 likes
  1. Teleportation plug-in shows no access to how to open
     
  2. Put the file into your oxide/plugins/ folder.
    Then add the permissions that are on the plugin's page.
     
  3. type /sethome "No Permission": "You don't have permission to use this command.",
     
  4. Hi, guy,

    You need to create a group ->

    /group add YourGroup

    And you need to grant the permission teleportation.tpr & teleportation.home type that ->

    /grant group YourGroup teleportation.tpr
    and
    /grant group YourGroup teleportation.home

    To assign a player to a group, type /usergroup add Player YourGroup

    Bye :)
     
  5. anyone can help me?
    I'd try to insert a cheking stake radius, from player try /home in base of other player. But no sucess.
    Used this function: !HasStakeAuthority(player) or !HasStakeAuthority(Null)
    /home:
    Code:
    [ChatCommand("home")]
            void cmdHome(PlayerSession player, string command, string[] args)
            {            if (args.Length != 1)
                {
                    SendChatMessage(player, "Syntax: /home <home>");
                    return;
                }
              
              
                string home = args[0].ToLower();            if(!GetHomes(player).Contains(home))
                {
                    SendChatMessage(player, msg("Unknown Home", player.SteamId.ToString()).Replace("{home}", home));
                    return;
                }            Location homeloc = homes[id(player)][home] as Location;            if ((bool)Config["Settings", "Home : Cooldown Enabled"])
                {
                    if (lastHome.ContainsKey(player))
                    {
                        DateTime dateTime = lastHome[player];
                        TimeSpan ts = DateTime.Now.Subtract(dateTime);
                        float cooldown = Convert.ToSingle(Config["Settings", "Home : Cooldown in minutes"]);
                        float nextHome = (cooldown - Convert.ToSingle(ts.Minutes));                    if (ts.Minutes <= cooldown)
                        {
                            SendChatMessage(player, msg("Home Cooldown", player.SteamId.ToString()).Replace("{time}", nextHome.ToString()));
                            return;
                        }
                    }
                    else
                    {
                        lastHome[player] = DateTime.Now;
                    }
                }
                SendChatMessage(player, msg("Teleporting Soon", player.SteamId.ToString()).Replace("{time}", homeTeleportTimer.ToString()));            timer.Once(homeTeleportTimer, () => {
                    Teleport(player, homeloc.vector);
                    SendChatMessage(player, msg("Home Teleported", player.SteamId.ToString()).Replace("{home}", home));
                });
            }
    {/spoiler]
     
  6. NVM Works well!
     
    Last edited by a moderator: Dec 28, 2015
  7. Can you add immunity for tphere pls ?
     
  8. /home works here to, but i need any cheking to dont take /home in stake of other player... for exemple:
    if has no stake or has your stake u can take /home normaly
    but if in area of stake that other player u can't take /home and give any msg error.

    In RUST have this, u can't accept tp in radius on wardrobe of other player
     
  9. where is plugin's page?
     
  10. Wulf

    Wulf Community Admin

    The Overview tab at the top of this thread.
     
  11. thanks,Let me try....
     
  12. sorry I can't speak English. google translate...

    "No Permission": "You don't have permission to use this command.",
    This message appears to continue.
    What should I do

    i am server admin...
     
  13. Why do not correct errors in fashion? When 60 players online, these errors lead to paint (fall) server.
    Code:
    16:23 [Error] Failed to call hook 'cmdTpr' on plugin 'Teleportation v1.1.11' (NullReferenceException: Object reference not set to an instance of an object)
    16:23 [Debug]   at Oxide.Plugins.Teleportation+<GetPlayer>c__AnonStorey3.<>m__0 (.PlayerSession player) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[PlayerSession].MoveNext () [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[PlayerSession].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[PlayerSession]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.ToList[PlayerSession] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Teleportation.GetPlayer (System.String searchedPlayer, .PlayerSession executer) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Teleportation.cmdTpr (.PlayerSession player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Teleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    16:23 [Error] Failed to call hook 'cmdTpr' on plugin 'Teleportation v1.1.11' (NullReferenceException: Object reference not set to an instance of an object)
    16:23 [Debug]   at Oxide.Plugins.Teleportation+<GetPlayer>c__AnonStorey3.<>m__0 (.PlayerSession player) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[PlayerSession].MoveNext () [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[PlayerSession].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[PlayerSession]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.ToList[PlayerSession] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Teleportation.GetPlayer (System.String searchedPlayer, .PlayerSession executer) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Teleportation.cmdTpr (.PlayerSession player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Teleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    16:23 [Error] Failed to call hook 'cmdTpr' on plugin 'Teleportation v1.1.11' (NullReferenceException: Object reference not set to an instance of an object)
    16:23 [Debug]   at Oxide.Plugins.Teleportation+<GetPlayer>c__AnonStorey3.<>m__0 (.PlayerSession player) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[PlayerSession].MoveNext () [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[PlayerSession].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[PlayerSession]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.ToList[PlayerSession] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Teleportation.GetPlayer (System.String searchedPlayer, .PlayerSession executer) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Teleportation.cmdTpr (.PlayerSession player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Teleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    16:23 [Error] Failed to call hook 'cmdTpr' on plugin 'Teleportation v1.1.11' (NullReferenceException: Object reference not set to an instance of an object)
    16:23 [Debug]   at Oxide.Plugins.Teleportation+<GetPlayer>c__AnonStorey3.<>m__0 (.PlayerSession player) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[PlayerSession].MoveNext () [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[PlayerSession].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[PlayerSession]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.ToList[PlayerSession] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Teleportation.GetPlayer (System.String searchedPlayer, .PlayerSession executer) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Teleportation.cmdTpr (.PlayerSession player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Teleportation.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  14. I apologize if this is has been covered.

    I need to completely reset the teleportation data on my server. I have uninstalled this plugin completely, but the data persists even though the plugin is gone, and the .json is gone.

    How do I go about permanently resetting the data to default values?
     
  15. Wulf

    Wulf Community Admin

    Data for plugins is cached while the plugin is loaded, so you'd either need to unload the plugin then delete it, or shutdown the server then delete it.
     
  16. @Wulf ok I am fouling this up obviously.

    I shut the server down, and deleted the plugin, and the .json.
    I started the server. I uploaded the plugin (version that u can download on this site).
    I then did a /home 1 and it teleported me back to my old house location.

    Do I need to completely wipe oxide at this point?
    [DOUBLEPOST=1451418201][/DOUBLEPOST]Is it possible to make different permission groups for the /home max# of homes? Would be nice to let vip's have like 8 homes or something.
     
  17. Wulf

    Wulf Community Admin

    I'm not sure why you're having issues, but that should be all that is needed.

    There aren't any permissions for per-user home limits yet.
     
  18. @Wulf I don't know either I'm going to wipe the server and start it from scratch..only thing I can think to do now. Thank u for the help Wulf
     
  19. error teleportation
     

    Attached Files:

  20. when i type /tpr in the console it says that i dont have premission how do i fix this?