uMod Polska
    • Ostatnie
    • Tagi
    • Użytkownicy
    • Grupy
    • Zarejestruj się
    • Zaloguj się

    Problem z konfiguracją permisji pluginu ExtTeleport

    Zaplanowany Przypięty Zablokowany Przeniesiony Wsparcie
    5 Posty 3 Uczestników 357 Wyświetlenia 1 Obserwuje
    Załaduj więcej postów
    • Najpierw najstarsze
    • Najpierw najnowsze
    • Najwięcej głosów
    Odpowiedz
    • Odpowiedz, zakładając nowy temat
    Zaloguj się, aby odpowiedzieć
    Ten temat został usunięty. Mogą go zobaczyć tylko użytkownicy upoważnieni do zarządzania tematami.
    • Blondynaundefined Niedostępny
      Blondyna
      ostatnio edytowany przez Blondyna

      Nazwa pluginu: ExtTeleport
      Wersja pluginu: 3.9.1

      Witam posiadam problem z konfiguracją permisji odnośnie "tpr". W momencie kiedy wpisuje /tpr wyskakuje mi Misc - No Permission. Ogólnie plugin działa. Sprawdzone na /tprhere i /setwarp. Załączam plugin.[0_1584129133639_ExtTeleport.cs](Wysyłanie 100%)

      youhosiundefined 1 odpowiedź Ostatnia odpowiedź Odpowiedz Cytuj 0
      • youhosiundefined Niedostępny
        youhosi Administrator @Blondyna
        ostatnio edytowany przez

        @Blondyna Ustawiłaś odpowiednie permisje na komendę tpr?

        1 odpowiedź Ostatnia odpowiedź Odpowiedz Cytuj 0
        • Blondynaundefined Niedostępny
          Blondyna
          ostatnio edytowany przez

          No właśnie tak czy mam grupę admin czy player nie działa. Prześlę część odpowiadającą za tą komendę.

          [ChatCommand("tpr")]
                  private void CommandPlayerRequest(PlayerSession session, string command, string[] args)
                  {
                      var canTPHook = Interface.Oxide.CallHook("canExtTeleport", session);
          
                      if (canTPHook != null)
                      {
                          return;
                      }
          			
                      if (!_helpers.HasPermission(session, "player"))
                      {
                          _helpers.SendChatMessage(session,
                              lang.GetMessage("Misc - No Permission", this, _helpers.GetPlayerId(session)));
                          return;
                      }			
          
                      if (!_helpers.GetConfig(true, "Player", "Enabled"))
                      {
                          _helpers.SendChatMessage(session,
                              lang.GetMessage("Misc - Not Enabled", this, _helpers.GetPlayerId(session)));
                      }
                      if (args.Length != 1)
                      {
                          _helpers.SendChatMessage(session,
                              lang.GetMessage("Misc - Syntax", this, _helpers.GetPlayerId(session))
                                  .Replace("{syntax}", "/tpr <player>"));
                          return;
                      }
          
                      var pSession = _helpers.GetPlayerSession(session, args.First());
          
                      if (pSession != null)
                      {
                          var playerId = _helpers.GetPlayerId(session);
                          var teleportation = GetTeleportation(playerId);
                          var tPlayerId = _helpers.GetPlayerId(pSession);
                          var tTeleportation = GetTeleportation(tPlayerId);
          
                          if (_helpers.SessionEquals(session, pSession))
                          {
                              _helpers.SendChatMessage(pSession, lang.GetMessage("Player - Request Self", this, tPlayerId));
                              return;
                          }
                          if (tTeleportation.HasPendingPlayer(session))
                          {
                              _helpers.SendChatMessage(session,
                                  lang.GetMessage("Player - Already Pending", this, playerId)
                                      .Replace("{name}", pSession.Name));
                              return;
                          }
                          if (!CanTeleport(ETeleportType.Player, session, pSession, teleportation,
                              pSession.WorldPlayerEntity.transform.position, true))
                          {
                              return;
                          }
          
                          _helpers.SendChatMessage(session,
                              lang.GetMessage("Player - Request Sent", this, playerId).Replace("{name}", pSession.Name));
                          _helpers.SendChatMessage(pSession,
                              tTeleportation.GetPendingCount() > 0
                                  ? lang.GetMessage("Player - Request Got Multiple", this, tPlayerId)
                                      .Replace("{name}", session.Name)
                                  : lang.GetMessage("Player - Request Got Single", this, tPlayerId)
                                      .Replace("{name}", session.Name));
          
                          tTeleportation.AddPending(session);
          
                          timer.Once(_helpers.GetConfig(30f, "Player", "Pending Timer"), delegate
                          {
                              if (tTeleportation.HasPendingPlayer(session))
                              {
                                  tTeleportation.RemovePending(session);
                                  _helpers.SendChatMessage(session,
                                      lang.GetMessage("Player - Request To Ran Out", this, playerId)
                                          .Replace("{name}", pSession.Name));
                                  _helpers.SendChatMessage(pSession,
                                      lang.GetMessage("Player - Request From Ran Out", this, tPlayerId)
                                          .Replace("{name}", session.Name));
                              }
                          });
                      }
                  }
          
          1 odpowiedź Ostatnia odpowiedź Odpowiedz Cytuj 0
          • Mrocznyundefined Niedostępny
            Mroczny Administrator
            ostatnio edytowany przez

            Jeżeli plugin odpowiada Misc - No Permission to znaczy że coś nie tak z lokalizacją która jest w katalogu
            /oxide/lang/en/ExtTeleport trzeba by tam sprawdzić linijkę Misc - No Permission.

            W kwestii uprawnień trzeba by je najpierw sprawdzić czy grupa default - czyli gracz posiada dostęp do komendy.
            Sprawdzenie czy default posiada uprawnienia: /o.show group default
            Komenda na dodanie uprawnień: /o.group add default extteleport.player

            Tu są opisane uprawnienia: Klik

            1 odpowiedź Ostatnia odpowiedź Odpowiedz Cytuj 1
            • Blondynaundefined Niedostępny
              Blondyna
              ostatnio edytowany przez

              Dziękuję. Udało się ^_^

              1 odpowiedź Ostatnia odpowiedź Odpowiedz Cytuj 1
              • uModundefined uMod zablokował ten temat dnia

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Zarejestruj się Zaloguj się
              • Pierwszy post
                Ostatni post
              Sugerowane tematy
              • Nie działa już give w f1?
                Termalundefined
                Termal
                0
                6
                126

              • Paczka z pluginami
                Mrocznyundefined
                Mroczny
                0
                4
                339

              • PROBLEM z eac
                Mrocznyundefined
                Mroczny
                0
                3
                403

              • Problem z połączeniem serwera steam/nonsteam przez serverproject
                ktosnapewnoundefined
                ktosnapewno
                0
                9
                641

              • Automatyczny restart serwera
                Mrocznyundefined
                Mroczny
                0
                4
                426

              Prywatność · Regulamin · Pliki cookies

              uMod Polska © 2025