Stránka 1 z 2

ChestCommands - effect

Napsal: 22 črc 2014, 11:04
od Misso
Server: IP:93.91.250.102:27140

Čaute. Pomocou pluginu ChestCommands som is spravil menu a dal som tam toto... (v spoilery)

Spoiler: zobrazit

Kód: Vybrat vše

######################
#+                  +#
#   MENU SETTINGS    #
#+                  +#
######################

menu-settings:

  # name - appears as the title - REQUIRED
  name: '&4&l&nServer Menu'

  # rows - the number of rows of the chest - REQUIRED
  rows: 2

  # command - OPTIONAL (you can remove this or set it to '')
  command: 'menu'

  # open-with-item - OPTIONAL (you can remove this or
  # set the item-id/data-value to 0)
  # In this case it will open with a book (right click)
  open-with-item:
    item-id: 347
    left-click: false
    right-click: true
#   data-value: 0

######################
#+                  +#
#       ITEMS        #
#+                  +#
######################

rychlost:
  NAME: '&dRychlost :)'
  COMMAND: 'effect %player% SPEED'
  LORE:
  ID: stone
  POSITION-X: 1
  POSITION-Y: 1


tak ked na servery na to hráč klikne tak mu to nič nedá. Nemám povolenie na effect. Ako to spraviť aby mu to išlo ?

Re: ChestCommands - effect

Napsal: 22 črc 2014, 12:25
od DenOwq
Když už tam se tam dává id
takže na speed můžeš dát

Kód: Vybrat vše

/effect %player% 1 10 2

tady to máš vysvětlené

Kód: Vybrat vše

/effect (hráč) (číslo effectu) (čas) (síla)

Re: ChestCommands - effect

Napsal: 22 črc 2014, 18:49
od Misso
ale ten hráč keď na to klikne tak mu to nefunguje
píše to že nemá permisse
sú nejaké permisse na effect ?

Re: ChestCommands - effect

Napsal: 22 črc 2014, 21:12
od AyACZE
Pokud na to dostane hráč permice tak to bude moct pouzívat i klasickým příkazem !!
Možná bude lepší nastavit aby se ten příkaz v chestcoomands provedl jako příkaz z konzole případně s jako OP

COMMAND: 'console:say Hello world!'
resp.
COMMAND: 'op:say Hello world!'

Příkazy si nastav dle libosti, jen připomínám, že na effect budeš muset také v příkazu použít proměnnou %player% ostatně to už ti radil DenOwq

Re: ChestCommands - effect

Napsal: 22 črc 2014, 21:31
od Misso
nejak mi to nejde.
už keď toto napíšem tak to nefunguje : op:say Hello world!

Re: ChestCommands - effect

Napsal: 23 črc 2014, 15:54
od nejento
Tak sem dej config.

Re: ChestCommands - effect

Napsal: 23 črc 2014, 16:07
od Misso
čoho config ?

Re: ChestCommands - effect

Napsal: 23 črc 2014, 16:08
od nejento
Těch chestcommands?

Re: ChestCommands - effect

Napsal: 23 črc 2014, 16:22
od Misso
/plugins/ChestCommands/config.yml

Spoiler: zobrazit

Kód: Vybrat vše

# Chest Commands by Filoghost
# Tutorial: dev.bukkit.org/bukkit-plugins/chest-commands
#                                                       .
update-notifications: true
try-to-hide-attributes: true
default-item-name-color: '&f'
default-lore-color: '&7'
messages:
  not-enough-money: '&cYou don''t have enough money (&e%price%&c) for this command.'
  no-item-permission: '&cTo use this item you need the permission &e%permission%&c.'
  no-required-item: '&cYou must have &e%amount%x %material% &c(ID: %id%, data value:
    %datavalue%) for this.'
  cost-bypassed: '&aYou have the permission &echestcommands.economy.bypass &aand you
    didn''t pay for the command.'
  no-inventory-space: '&cYou didn''t have enough space, items were dropped.'


tu je to menu kde to má byť :
Spoiler: zobrazit

Kód: Vybrat vše

######################
#+                  +#
#   MENU SETTINGS    #
#+                  +#
######################

menu-settings:

  # name - appears as the title - REQUIRED
  name: '&4&l&nServer Menu'

  # rows - the number of rows of the chest - REQUIRED
  rows: 2

  # command - OPTIONAL (you can remove this or set it to '')
  command: 'menu'

  # open-with-item - OPTIONAL (you can remove this or
  # set the item-id/data-value to 0)
  # In this case it will open with a book (right click)
  open-with-item:
    item-id: 347
    left-click: false
    right-click: true
#   data-value: 0

######################
#+                  +#
#       ITEMS        #
#+                  +#
######################

rychlost:
  NAME: '&dRychlost :)'
  COMMAND: 'effect %player% SPEED'
  LORE:
  ID: stone
  POSITION-X: 1
  POSITION-Y: 1

Re: ChestCommands - effect

Napsal: 23 črc 2014, 18:51
od AyACZE
Schválně sem to zkoušel, to tvý menu rychlost a funguje to.
Testováno na :arrow: Spigot 1.7.10-R0.1 Build 1554