Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Pytanie] Jak zablokować komendę?


mateuszp120

Rekomendowane odpowiedzi

Opublikowano

 

Skrypt:

 

 

 

Tu masz coś lepszego:

on command /plugins:
    if player has permission "pl.uzyj":
    else:
        cancel event
        send "Nie mozesz uzywac tej komendy!"
on command /pl:
    if player has permission "pl.uzyj":
    else:
        cancel event
        send "Nie mozesz uzywac tej komendy!"
on command /pluginy:
    if player has permission "pl.uzyj":
    else:
        cancel event
        send "Nie mozesz uzywac tej komendy!"

Tamto nie zadziała, bo alias dla /pl itp jest już ustawiony i nawet jeśli by sie wykonało, to byłby cancel event tylko dla tej komendy, a /pl by sie wykonało.

To wygląda jak sygnatura!

Opublikowano

Tu masz coś lepszego:

on command /plugins:
    if player has permission "pl.uzyj":
    else:
        cancel event
        send "Nie mozesz uzywac tej komendy!"
on command /pl:
    if player has permission "pl.uzyj":
    else:
        cancel event
        send "Nie mozesz uzywac tej komendy!"
on command /pluginy:
    if player has permission "pl.uzyj":
    else:
        cancel event
        send "Nie mozesz uzywac tej komendy!"

Tamto nie zadziała, bo alias dla /pl itp jest już ustawiony i nawet jeśli by sie wykonało, to byłby cancel event tylko dla tej komendy, a /pl by sie wykonało.

 

Po wgraniu i zresetowaniu serwera błędy : 

[Skript] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (blokada.sk, line 2: if player has permission "pl.uzyj":')
[Skript] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (blokada.sk, line 7: if player has permission "pl.uzyj":')
[Skript] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (blokada.sk, line 12: if player has permission "pl.uzyj":')
[Skript] '/plugins' is not a text (blokada.sk, line 1: on command /plugins:')
[Skript] '/pl' is not a text (blokada.sk, line 6: on command /pl:')
[Skript] '/pluginy' is not a text (blokada.sk, line 11: on command /pluginy:')

 

w pexie...

zrób tak:

-bukkit:plugins

-bukkit:?

-bukkit:help

-bukkit:pl

 

:D

 

Zrobiłem i gracz nadal może używać komend 

bez reklam

Opublikowano

Masz prosty skrypt. ;)

Pewności czy zadziała nie mam.

command /pl:
    aliases: plugins, bukkit, version
    trigger:
        send "&7Przechwycono probe sprawdzenia &cpluginow &7/ &cwersji silnika&7!"
        send "&7Twoje IP: &c%ip of player%"
Opublikowano

 

Masz prosty skrypt. ;)

Pewności czy zadziała nie mam.

command /pl:
    aliases: plugins, bukkit, version
    trigger:
        send "&7Przechwycono probe sprawdzenia &cpluginow &7/ &cwersji silnika&7!"
        send "&7Twoje IP: &c%ip of player%"

Jest dobrze tylko gracze nadal mogą używać komendy /?

bez reklam

Opublikowano

 

Dodaj kolejny alias do skryptu.

Po version dajesz przecinek, potem spacja i to, co chcesz zablokować.

    aliases: plugins, bukkit, version

 

Dodałem lecz i tak dalej mogą używać..

bez reklam

Opublikowano

Przeładowałeś skrypt? Do tego dodaj jeszcze alias help.

command /pl:
    aliases: plugins, bukkit, version, help, ?
    trigger:
        send "&7Przechwycono probe sprawdzenia &cpluginow &7/ &cwersji silnika&7!"
        send "&7Twoje IP: &c%ip of player%"

Przeładowałem już któryś raz i nic nadal mogą używać, nie mogą tylko używać komendy :

 

/pl oraz /bukkit

bez reklam

Opublikowano

_____________________________________________________________________________________________________________________

http://www.mpcforum.pl/topic/1300329-mcpadaambonet/
_____________________________________________________________________________________________________________________
Chcecie Survival + Gildie ? Jesli tak to napisz jaki,oraz co chciałbyś na nim zobaczyc  :)

_____________________________________________________________________________________________________________________

Opublikowano

Po wgraniu i zresetowaniu serwera błędy : 

[Skript] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (blokada.sk, line 2: if player has permission "pl.uzyj":')
[Skript] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (blokada.sk, line 7: if player has permission "pl.uzyj":')
[Skript] Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (blokada.sk, line 12: if player has permission "pl.uzyj":')
[Skript] '/plugins' is not a text (blokada.sk, line 1: on command /plugins:')
[Skript] '/pl' is not a text (blokada.sk, line 6: on command /pl:')
[Skript] '/pluginy' is not a text (blokada.sk, line 11: on command /pluginy:')

Zrobiłem i gracz nadal może używać komend 

 

Zapomniałem spakować "/pl" itp w "" xD

 

Dodaj do /pl, /plugins/ pluginy "": "/pl", "/plugins", "/pluginy".

To wygląda jak sygnatura!

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...