Propojení pluginů

Technická podpora k herním serverům Minecraft a Tekkit
Message
Autor
WizGigabyte
Příspěvky: 133
Registrován: 09 čer 2015, 16:31
Reputation: 0

Propojení pluginů

#1 Příspěvekod WizGigabyte » 20 črc 2015, 23:37

Server IP: 82.208.17.10:27397

Zdravím, chci se zeptat jak propojit plugin ChestCommands s PlayerPoints
Prostě aby místo peněz to bralo ty points

Díky
Obrázek

Smexhy
Příspěvky: 5602
Věk: 26
Registrován: 31 říj 2012, 15:50
Reputation: 20
Bydliště: Slovensko
Kontaktovat uživatele:

Re: Propojení pluginů

#2 Příspěvekod Smexhy » 21 črc 2015, 00:00

No, mohol by si to trohu viac popísať, čo kde aby bralo?

WizGigabyte
Příspěvky: 133
Registrován: 09 čer 2015, 16:31
Reputation: 0

Re: Propojení pluginů

#3 Příspěvekod WizGigabyte » 21 črc 2015, 00:13

No prostě.. hráči by dostávali za hlasování body (PlayerPoints)
A za ty body by si mohli kupovat věci v tom ChestCommands
Obrázek

Smexhy
Příspěvky: 5602
Věk: 26
Registrován: 31 říj 2012, 15:50
Reputation: 20
Bydliště: Slovensko
Kontaktovat uživatele:

Re: Propojení pluginů

#4 Příspěvekod Smexhy » 21 črc 2015, 00:15

Ak to už máš nastavené na tie peniaze, hoď sem config ChestCommands

WizGigabyte
Příspěvky: 133
Registrován: 09 čer 2015, 16:31
Reputation: 0

Re: Propojení pluginů

#5 Příspěvekod WizGigabyte » 21 črc 2015, 00:52

Config:
Spoiler: zobrazit
# ChestCommands configuration file.
# Tutorial: http://dev.bukkit.org/bukkit-plugins/chest-commands

default-color:
lore: '&7'
name: '&f'
use-only-commands-without-args: true
multiple-commands-separator: ;
anti-click-spam-delay: 200
update-notifications: true
use-console-colors: true
Obrázek

Smexhy
Příspěvky: 5602
Věk: 26
Registrován: 31 říj 2012, 15:50
Reputation: 20
Bydliště: Slovensko
Kontaktovat uživatele:

Re: Propojení pluginů

#6 Příspěvekod Smexhy » 21 črc 2015, 01:02

Myslím config tých inventárov

WizGigabyte
Příspěvky: 133
Registrován: 09 čer 2015, 16:31
Reputation: 0

Re: Propojení pluginů

#7 Příspěvekod WizGigabyte » 21 črc 2015, 01:23

No nevím co myslíš ale je tam původní... example.yml

Spoiler: zobrazit
######################
#+ +#
# MENU SETTINGS #
#+ +#
######################

menu-settings:

# name - appears as the title - REQUIRED
name: '&2Dream-Craft CZK Obchod'

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

# command - OPTIONAL (you can remove this or set it to '')
# Bind multiple commands using ; (command: 'menu; m; me')
command: 'czk'

# auto-refresh - OPTIONAL
# How frequently the menu will be refreshed, in seconds.
# Useful if you have variables in items' descriptions.
auto-refresh: 5

# This command command will be execute when the menu is opened.
# Supports all the icon command types.
open-action: 'sound: note pling; tell: &eYou opened the example menu.'

# open-with-item - OPTIONAL
# The menu will open only right-clicking with orange wool [35:1]
open-with-item:
id: wool:1
left-click: false
right-click: true


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


spawncmd:
COMMAND: 'points pay WizGigabyte 10'
COMMAND: 'i 58'
ENCHANTMENTS: durability, 10
NAME: '&bSuper Mec'
LORE:
- 'Tenhle mec se da ziskat pouze tady!'
ID: diamond sword
PRICE: 10
POSITION-X: 1
POSITION-Y: 1


colored-enchanted-stacked-wool:
NAME: '&aWool with additional data'
LORE:
- 'This wool has a data value, an amount'
- 'greater than 1, and two enchantments.'
ID: wool
DATA-VALUE: 1
AMOUNT: 10
ENCHANTMENT: knockback, 10; durability, 10
POSITION-X: 2
POSITION-Y: 1


this-text-will-not-appear:
NAME: '&dFormatting codes'
LORE:
- 'You can use all the formatting codes!'
- '&fColors: &c#c &a#a &9#9 &e#e &f... ...'
- '&fRandom (#k): &kfy379!H'
- '&fBold (#l): &lexample'
- '&fStrikethrough (#m): &mexample'
- '&fUnderline (#n): &nexample'
- '&fItalic (#o): &oexample'
ID: paper
POSITION-X: 3
POSITION-Y: 1


test-from-console:
COMMAND: 'console: say Hello {player}!'
NAME: '&cRuns command from the console.'
LORE:
- 'It broadcasts your name with the command /say.'
ID: command block
POSITION-X: 4
POSITION-Y: 1


test-as-op:
COMMAND: 'op: say Hello world!'
NAME: '&cRuns command as OP.'
LORE:
- 'Be careful with this type of commands.'
- 'It will ignore nearly all the permissions.'
ID: command block
POSITION-X: 5
POSITION-Y: 1


test-with-placeholder:
COMMAND: 'tell: &9Online players: &f{online}/{max_players}; tell: &9Your name: &f{player}; tell: &9The world you are in: &f{world}; tell: &9Money: &f{money}'
NAME: '&6This message contains some placeholders'
LORE:
- 'Placeholders will be replaced when the item'
- 'is clicked.'
ID: empty map
POSITION-X: 6
POSITION-Y: 1


economy-give:
COMMAND: 'tell: &aYou have paid 50$ for this command!; give: gold_ingot'
NAME: '&eEconomy & Give command'
LORE:
- 'This command will be executed'
- 'only if you have at least 50$!'
- 'It gives you a gold ingot.'
ID: gold ingot
PRICE: 50
POSITION-X: 7
POSITION-Y: 1


economy-take:
REQUIRED-ITEM: 'gold_ingot'
COMMAND: 'tell: &aYou have been paid 50$; givemoney: 50'
NAME: '&eEconomy & Required item'
LORE:
- 'This command is the opposite of the previous.'
- 'It will take you a gold ingot and give you $50.'
ID: gold ingot
POSITION-X: 8
POSITION-Y: 1


will-not-close:
NAME: '&2Info'
LORE:
- '&7The menu will not close'
- '&7clicking on this item.'
ID: sign
KEEP-OPEN: true
POSITION-X: 9
POSITION-Y: 1


a-talking-head:
COMMAND: 'tell: This is a simple message, without using commands!'
NAME: '&3Tells you something.'
LORE:
- '&7It tells you something without commands.'
ID: head
DATA-VALUE: 3
POSITION-X: 1
POSITION-Y: 2


a-talking-head:
COMMAND: 'tell: This is a simple message, without using commands!'
NAME: '&3Tells you something.'
LORE:
- '&7It tells you something without commands.'
ID: head
DATA-VALUE: 3
POSITION-X: 1
POSITION-Y: 2


test-multiple-command:
COMMAND: 'console: Say Did you know that...; console: say you can run multiple commands?;'
NAME: '&aMultiple commands'
LORE:
- 'Example of multiple commands.'
ID: golden apple
POSITION-X: 2
POSITION-Y: 2


permission:
COMMAND: 'tell: &a[v] You have the correct permission!'
NAME: '&8Permission test'
LORE:
- 'To use this item, you need the'
- 'permission "chestcommands.test".'
- 'Otherwise, a configurable error'
- 'message will be displayed.'
ID: iron bar
POSITION-X: 3
POSITION-Y: 2
PERMISSION: chestcommands.test
PERMISSION-MESSAGE: 'You don''t have the correct permission!'


menu-close-no-commands-no-lore:
NAME: '&6Close the menu'
ID: redstone lamp
LORE:
- 'Create an item without command,'
- 'the GUI will just close.'
POSITION-X: 9
POSITION-Y: 3
Obrázek

Uživatelský avatar
Arcas
Příspěvky: 1406
Věk: 27
Registrován: 13 bře 2012, 19:15
Reputation: 0

Re: Propojení pluginů

#8 Příspěvekod Arcas » 21 črc 2015, 09:29

Takže sis ani neprošel dokumentaci a rovnou zde žádáš o pomoc v naději, že za tebe někdo udělá tvou práci? Projdi si prvně dokumentaci pluginu, zkus si to nastavit sám a až pak se ozvi.
Čeština a jiné jazyky jsou Freeware, ale ne Opensource!!! To znamená, že s nimi můžete nakládat jak chcete, ale nesmíte je upravovat...

// no comment

Uranus-Portal.com
Obrázek

Uživatelský avatar
panChemicky
Příspěvky: 1737
Věk: 34
Registrován: 07 čer 2013, 12:32
Reputation: 1
Bydliště: Cheb
Kontaktovat uživatele:

Re: Propojení pluginů

#9 Příspěvekod panChemicky » 21 črc 2015, 10:41

Pořádně si projdi tu dokomentaci, jak ti tu psal Arcas, protože tam narazíš na spoustu tipů. Ten plugin je poměrně dost jednoduchý.

Co se týče toho shopu, tak když ho vytváříš v tom example, tak místo PRICE dáš POINT.
Dle tohoto: http://dev.bukkit.org/bukkit-plugins/ch ... ell-items/
ObrázekObrázek

WizGigabyte
Příspěvky: 133
Registrován: 09 čer 2015, 16:31
Reputation: 0

Re: Propojení pluginů

#10 Příspěvekod WizGigabyte » 22 črc 2015, 13:43

panChemicky

Díky ;) Akorád to bylo POINTS a né POINT ale moc děkuji ;)
Karma PLUS! ;)
Obrázek


Zpět na „Minecraft, Tekkit“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 19 hostů