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]MyCommand - Permissions


Rekomendowane odpowiedzi

Opublikowano

Witam, czy wie ktoś jak dodać permisje graczowi do danej komendy??

Komenda to /niebiescy

jest to 21 komenda w komendach pluginu "MyCommand"

1377531174-U173186.png


Opublikowano

 

mycommand.cmd.niebiescy

Chyba tak powinna wygladac permisja

2oj6rbvptyvi.png


W razie pytan pisz smialo GG: 36558269


Proszę o zdjęcie paru % bardzo się staram ; ) ||| Jesli Ci pomoglem daj Like -->>-->>


Opublikowano

config:

 

# MyCommand v3.7.1 Plugin Config File 
# The worlds in 'ignoredworlds' will be ignored by MyCommand
options:
  disablepermission: false
  disabledebugmessage: true
  autogeneratecommands: true
  signheader: '[MYCMD]'
  disableconsolesupport: false
  disabledebugmessageconsole: false
  disableminecartevent: false
  disablemoveevent: true
ignoredworlds:
  active: false
  list:
  - world
  - world_nether
economy:
  allowdebit: false
scheduler:
  active: false
  dateformat: d M yyyy
  launchonstartin: 60
  launchcheckoneveryNhours: 12
  launchcheckoneveryNmin: 60
language:
  prefix: '[MyCmd]'
  timer1: ' The command will be performed in : '
  timer2: ' You have bypassed the timer'
  economy1: ' This command cost %s New Balance %s'
  economy2: ' You need %s$ for run this command.'
  execute: ' Execute: '
  args1: 'No Args...Please use :'
  args2: '-> Output Commands :'
  item1: ' There are no Command on Items'
  perm1: ' Ops,check your permissions.'
  sign1: ' Sign Removed!.'
  sign2: All line it's empty.
  block1: ' Block Removed!.'
  spout1: ' No Spoutcraft client found'
  blockset1: You must wait %s sec for re-use this
blockset:
  delay: 5
items:
  rightclickinteraction:
  - 69
  - 77
  - 143
  - 64
  - 28
  physicalinteraction:
  - 70
  - 72



Bloody i taylor, już to dawno próbowałem i nic :/

1377531174-U173186.png


Opublikowano

Tym którzy mają op to działa, ale zwykłym graczom już nie.

Tutaj masz komendy:

# MyCommand v3.7.1 Commands Config File
# - commandsnumber (default 20) it's number of command you want make 
#  - Don't forget the '/' on runcmd line , example command: /myhelp
# - type accept = text , runcommand , broadcast-text , runcommand-text , runcommand-broadcast-text , perm-broadcast-text --
# - , addpermission , addtimer , runconsole , runcommand-perm-broadcast-text , runcommand-random ,runasoperator 
# - Additional type accept if you use Spoutplugin = spout-text , spout-notification.
# - runcommand type example -> If command: /l and runcmd: /list,when you type /l mycommand execute /list 
# - runcmd support custom argument in game.($arg1,$arg2,$arg3,$arg4,$arg5,$multiargs) Example - runcmd : /time $arg1
# - For Delayed command add $delay$ before the command in runcmd Example : - $delay$/list
# - Set delay time with delaytimer: 5 (5 = seconds)
# - Use the dot . for decimal cost Example = cost : 5.5 
# - http://dev.bukkit.org/server-mods/mycommand/pages/configuration-and-example/
options:
  commandsnumber: 50
'1':
  command: /mycmd-sampletext
  type: text
  text:
  - $red Hello $darkgreen$player!
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'2':
  command: /mycmd-dice
  type: text
  text:
  - $red You got $darkgreen$rnd6 !
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'3':
  command: /mycmd-runcommand
  type: runcommand
  text:
  - $red Text of command $black3
  runcmd:
  - /list
  cost: 0
  delaytimer: 5
'4':
  command: /mycmd-args
  type: runcommand
  text:
  - $red Text of command $black4
  runcmd:
  - /time $arg1 $arg2
  cost: 0
  delaytimer: 5
'5':
  command: /mycmd-runcmdtimer
  type: runcommand
  text:
  - $red Text of command $black5
  runcmd:
  - $delay$/say 3..
  - $delay$/say 2..
  - $delay$/say 1..
  cost: 0
  delaytimer: 1
'6':
  command: /mycmd-broadcast
  type: broadcast-text
  text:
  - $blue MyCommand Broadcast Test
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'7':
  command: /mycmd-spoutsample
  type: spout-text
  text:
  - $darkgreen -Spout Text-
  - $red MyCommand!
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'8':
  command: /mycmd-runconsole
  type: runconsole
  text:
  - $red Text of command $black8
  runcmd:
  - /say This /say it's performed by console.
  cost: 0
  delaytimer: 5
'9':
  command: /mycmd-addtimer
  type: text
  text:
  - $gold Put your command over /mycmd-addtimer
  - '$gold And change type : from text to addtimer'
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'10':
  command: /mycmd-addpermission
  type: text
  text:
  - $gold Put your command over /mycmd-addpermission
  - '$gold And change type : from text to addpermission'
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'11':
  command: /mycmd-textargs
  type: text
  text:
  - 'Player Name : $player'
  - 'World : $world'
  - 'Health : $health Food : $food'
  - 'Exp : $exp Level : $level'
  - 'Gamemode : $gamemode'
  - 'LastDamage : $lastdamage'
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'12':
  command: /mycmd-online
  type: text
  text:
  - $red There are $online players online.
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'13':
  command: /mycmd-clearchat
  type: broadcast-text
  text:
  - ''
  - ''
  - ''
  - ''
  - ''
  - ''
  - ''
  - ''
  - ''
  - ''
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'14':
  command: /mycmd-shortcut
  type: runcommand
  text:
  - $red Text of command $black14
  runcmd:
  - /say $multiargs
  cost: 0
  delaytimer: 5
'15':
  command: /mycmd-random
  type: runcommand-random
  text:
  - $red Text of command $black15
  runcmd:
  - /say 1 $multiargs
  - /say 2 $multiargs
  - /say 3 $multiargs
  cost: 0
  delaytimer: 5
'16':
  command: /mycmdsample16
  type: text
  text:
  - $red Text of command $black16
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'17':
  command: /mycmdsample17
  type: text
  text:
  - $red Text of command $black17
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'18':
  command: /mycmdsample18
  type: text
  text:
  - $red Text of command $black18
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'19':
  command: /mycmdsample19
  type: text
  text:
  - $red Text of command $black19
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'20':
  command: /mycmdsample20
  type: text
  text:
  - $red Text of command $black20
  runcmd:
  - /sample
  cost: 0
  delaytimer: 5
'21':
  command: /niebiescy
  type: runcommand
  runcmd:
  - /warp niebiescy
'22':
  command: /czerwoni
  type: runcommand
  runcmd:
  - /warp czerwoni

1377531174-U173186.png


Opublikowano

dodaj do gracza

 

 

 - mycommand.cmd.21
 

 

 

wpisz /mycmd reload i po problemie. Wszystko powinno działać, jak nie to spróbuj restarta, bo czasami mi nie chciał działać reload :)

  • 7 miesięcy temu...
Opublikowano

Możesz też Wyłonczyć Permissie W cofigu. 4 Linijke Z "disablepermission: false" Zmien na "disablepermission: true" Wtedy Każdy ma dostęp do komęd.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...