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

[Problem] Jobs


Rekomendowane odpowiedzi

Opublikowano

Witam!

Wgrałem na serwer plugin Jobs ale jak daje /jobs join fish lub inne to mi pisze ze nie ma takiej pracy, a  jak zrobic prace itp?

 

Pomogłem daj like!

Opublikowano

 

Plik generalConfig.yml
Spoiler
# The general configuration for the jobs plugin mostly includes how often the plugin
# saves user data (when the user is in the game), the storage method, whether
# to broadcast a message to the server when a user goes up a skill level.
# It also allows admins to set the maximum number of jobs a player can have at
# any one time.

# storage method, can be MySQL, sqlite, h2
storage-method: sqlite
# Requires Mysql.
mysql-username: root
mysql-password: ''
mysql-url: jdbc:mysql://localhost:3306/minecraft
mysql-table-prefix: ''
# How often in minutes you want it to save, 0 disables periodic saving and
# the system will only save on logout
save-period: 10
# Do all players get a message when somone goes up a skill level?
broadcast-on-skill-up: false
# Do all players get a message when somone goes up a level?
broadcast-on-level-up: true
# Maximum number of jobs a player can join.
# Use 0 for no maximum
max-jobs: 1
# Hide jobs from player if they lack the permission to join the job
hide-jobs-without-permission: false
# option to allow payment to be made when killing mobs from a spawner
enable-pay-near-spawner: false
# option to allow payment to be made in creative mode
enable-pay-creative: false
# Modifys chat to add chat titles. If you're using a chat manager, you may add the tag {jobs} to your chat format and disable this.
modify-chat: false
# Changes how how many players are paid per payment batch. Setting this too high may cause tick lag.
economy-batch-size: 1
# Changes how often, in seconds, players are paid out. Default is 5 seconds.
# Setting this too low may cause tick lag. Increase this to improve economy performance (at the cost of delays in payment)
economy-batch-delay: 5

max-jobs: 1
Maksymalna liczba prac

modify-chat: false
Nie zmienia nam nic na chacie(żadnych prefixów z Jobsów które są zbędne)

Jak już mamy skonfigurowany ten plik możemy przejść do messageConfig.yml którego nie musimy konfigurować.
Spoiler

# Configuration file for the messages
#
# Replace the messages if you want.
#
# ChatColor. will make any words following (including spaces that colour).
#
# Supported colors:
# BLACK
# DARK_BLUE
# DARK_GREEN
# DARK_AQUA
# DARK_RED
# DARK_PURPLE
# GOLD
# GRAY
# DARK_GRAY
# BLUE
# GREEN
# AQUA
# RED
# LIGHT_PURPLE
# YELLOW
# WHITE
#
# Each message has slightly different parameters. The parameters available
# are the ones that are already in the message (and none others)
#
# NOTE:
# Any character other than normal characters will not get read and will crash the
# configuration.


stats-no-job: ChatColor.REDPlease join a job first.
stats-job: 'lvl%joblevel% %jobcolour%%jobname%ChatColor.WHITE : %jobexp%/%jobmaxexp%
exp'
browse-no-jobs: There are no jobs you can join.
browse-jobs-header: 'You are allowed to join the following jobs :'
browse-jobs-footer: For more information type in /jobs info [JobName]
admin-command-success: Your command has been performed.
admin-command-failed: ChatColor.REDThere was an error in the command.
fire-target: You have been fired from %jobcolour%%jobname%.
fire-target-no-job: Plyer does not have the job %jobcolour%%jobname%.
employ-target: You have been employed in %jobcolour%%jobname%.
promote-target: You have been promoted %levelsgained% levels in %jobcolour%%jobname%.
demote-target: You have been demoted %levelslost% levels in %jobcolour%%jobname%.
grantxp-target: You have been granted %expgained% experience in %jobcolour%%jobname%.
removexp-target: You have lost %explost% experience in %jobcolour%%jobname%.
transfer-target: You have been transferred from %oldjobcolour%%oldjobname% to %newjobcolour%%newjobname%.
join-too-many-jobs: ChatColor.REDYou have already joined too many jobs.
break-header: 'Break:'
place-header: 'Place:'
kill-header: 'Kill:'
fish-header: 'Fish:'
craft-header: 'Craft:'
smelt-header: 'Smelt:'
brew-header: 'Brew:'
enchant-header: Enchant
break-info-no-sub: ChatColor.WHITE %item% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
break-info-sub: ChatColor.WHITE %item%:%subitem% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
place-info-no-sub: ChatColor.WHITE %item% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
place-info-sub: ChatColor.WHITE %item%:%subitem% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
kill-info-no-sub: ChatColor.WHITE %item% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
kill-info-sub: ChatColor.WHITE %item%:%subitem% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
fish-info-no-sub: ChatColor.WHITE %item% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
fish-info-sub: ChatColor.WHITE %item%:%subitem% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
craft-info-no-sub: ChatColor.WHITE %item% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
craft-info-sub: ChatColor.WHITE %item%:%subitem% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
smelt-info-no-sub: ChatColor.WHITE %item% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
smelt-info-sub: ChatColor.WHITE %item%:%subitem% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
brew-info-no-sub: ChatColor.WHITE %item% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
brew-info-sub: ChatColor.WHITE %item%:%subitem% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
enchant-info-no-sub: ChatColor.WHITE %item% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
enchant-info-sub: ChatColor.WHITE %item%:%subitem% - %income% ChatColor.GREENincomeChatColor.WHITE. %experience% ChatColor.YELLOWexp
break-none: '%jobcolour%%jobname%ChatColor.WHITE does not get money for breaking anything.'
place-none: '%jobcolour%%jobname%ChatColor.WHITE does not get money for placing anything.'
kill-none: '%jobcolour%%jobname%ChatColor.WHITE does not get money for killing anything.'
fish-none: '%jobcolour%%jobname%ChatColor.WHITE does not get money for fishing.'
craft-none: '%jobcolour%%jobname%ChatColor.WHITE does not get money from crafting.'
smelt-none: '%jobcolour%%jobname%ChatColor.WHITE does not get money from smelting.'
brew-none: '%jobcolour%%jobname%ChatColor.WHITE does not get money from brewing.'
enchant-none: '%jobcolour%%jobname%ChatColor.WHITE does not get money from enchanting.'
at-max-level: ChatColor.YELLOW-- You have reached the maximum level --
skill-up-broadcast: '%playername% has been promoted to a %titlecolour%%titlename%
%jobcolour%%jobname%ChatColor.WHITE.'
skill-up-no-broadcast: Congratulations, you have been promoted to a %titlecolour%%titlename% %jobcolour%%jobname%ChatColor.WHITE.
level-up-broadcast: '%playername% is now a level %joblevel% %jobcolour%%jobname%ChatColor.WHITE.'
level-up-no-broadcast: You are now a level %joblevel% %jobcolour%%jobname%ChatColor.WHITE.
join-job-success: You have joined the job %jobcolour%%jobname%ChatColor.WHITE.
join-job-failed-already-in: You are already in the job %jobcolour%%jobname%ChatColor.WHITE.
join-job-failed-too-many: You have already joined too many jobs.
join-job-failed-no-slots: You cannot join the job %jobcolour%%jobname%ChatColor.WHITE, there are no slots available.
leave-job-sucess: You have left the job %jobcolour%%jobname%ChatColor.WHITE.
error-no-job: ChatColor.REDThe job you have selected does not exist!
error-no-permission: ChatColor.REDYou do not have permission to do that!
join-too-many-job: ChatColor.REDYou have joined too many jobs.
leave-job-failed-too-many: ChatColor.REDYou have joined too many jobs!
leave-job-success: You have left the job %jobcolour%%jobname%ChatColor.WHITE.

W tym pliku możemy spolszczyć informacje o dołączeniu,wyjściu a nawet zdobyciu kolejnego poziomu w pracy.

Najważdniejszym plikiem jest jobConfig.yml.Na moim serwerze plik ten wygląda następująco.
Spoiler

# Jobs configuration.
#
# Stores information about each job.
#
# For example configurations, visit http://dev.bukkit.org/server-mods/jobs/.

Jobs:
Drwal:
fullname: Drwal
shortname: D
ChatColour: GREEN
chat-display: none
max-level: 30
leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
income-progression-equation: baseincome*((1.05)^(joblevel-1))
experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
Break:
LOG:
income: 0.1
experience: 0.1
Place:
SAPLING:
income: 0.1
experience: 0.1
Gornik:
fullname: Gornik
shortname: G
ChatColour: BLACK
chat-display: none
max-level: 50
leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
income-progression-equation: baseincome*((0.80)^(joblevel-1))
experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
Break:
COAL_ORE:
income: 0.1
experience: 0.1
GLOWING_REDSTONE_ORE:
income: 0.1
experience: 0.1
IRON_ORE:
income: 0.1
experience: 0.1
GOLD_ORE:
income: 0.1
experience: 0.1
LAPIS_ORE:
income: 0.1
experience: 0.1
DIAMOND_ORE:
income: 0.1
experience: 0.1
OBSIDIAN:
income: 0.1
experience: 0.1
MOSSY_COBBLESTONE:
income: 0.1
experience: 0.1
Place:
IRON_ORE:
income: -5.0
experience: -5.0
GOLD_ORE:
income: -6.0
experience: -6.0
Farmer:
fullname: Farmer
shortname: F
ChatColour: YELLOW
chat-display: none
max-level: 20
leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
income-progression-equation: baseincome*((0.80)^(joblevel-1))
experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
Break:
CROPS-7:
income: 0.1
experience: 0.1
Place: {}
Kill:
Chicken:
income: 0.1
experience: 0.1
Cow:
income: 0.1
experience: 0.1
Sheep:
income: -2.0
experience: -5.0
Pig:
income: 0.01
experience: 0.01
Lowca:
fullname: Lowca
shortname: L
ChatColour: RED
chat-display: none
max-level: 100
leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
income-progression-equation: baseincome*((0.80)^(joblevel-1))
experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
Kill:
Chicken:
income: 0.1
experience: 0.1
Cow:
income: 0.1
experience: 0.1
Pig:
income: 0.1
experience: 0.1
Sheep:
income: 0.1
experience: 0.1
Wolf:
income: 0.1
experience: 0.1
Creeper:
income: 0.3
experience: 0.3
Skeleton:
income: 0.3
experience: 0.3
Spider:
income: 0.3
experience: 0.3
Zombie:
income: 0.3
experience: 0.3
Blaze:
income: 0.5
experience: 0.5
Enderman:
income: 0.5
experience: 0.5
Slime:
income: 0.5
experience: 0.5
Ghast:
income: 0.5
experience: 0.5
Rybak:
fullname: Rybak
shortname: R
ChatColour: AQUA
chat-display: none
max-level: 20
leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
income-progression-equation: baseincome*((0.80)^(joblevel-1))
experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
Fish:
RAW_FISH:
income: 0.1
experience: 0.1
Kill:
Squid:
income: 0.1
experience: 0.1
Kowal:
fullname: Kowal
shortname: K
ChatColour: DARK_GRAY
chat-display: none
max-level: 30
leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
income-progression-equation: baseincome*((0.80)^(joblevel-1))
experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
Craft:
WOOD_SWORD:
income: 0.2
experience: 0.2
IRON_SWORD:
income: 0.2
experience: 0.2
GOLD_SWORD:
income: 0.2
experience: 0.2
DIAMOND_SWORD:
income: 0.2
experience: 0.2

Teraz wytłumaczę jak możemy dodać i skonfigurować pracę.

Gornik:
fullname: Gornik
shortname: G
ChatColour: BLACK
chat-display: none
max-level: 50
leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
income-progression-equation: baseincome*((0.80)^(joblevel-1))
experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
Break:
COAL_ORE:
income: 0.1
experience: 0.1
GLOWING_REDSTONE_ORE:
income: 0.1
experience: 0.1
IRON_ORE:
income: 0.1
experience: 0.1
GOLD_ORE:
income: 0.1
experience: 0.1
LAPIS_ORE:
income: 0.1
experience: 0.1
DIAMOND_ORE:
income: 0.1
experience: 0.1
OBSIDIAN:
income: 0.1
experience: 0.1
MOSSY_COBBLESTONE:
income: 0.1
experience: 0.1
Place:
IRON_ORE:
income: -5.0
experience: -5.0
GOLD_ORE:
income: -6.0
experience: -6.0

Niektórzy zauważyli że na końcu za położenie rudy żelaza i złota otrzymujemy karę.
Wzór dodawania pracy:


NAZWA_PRACY:
fullname: NAZWA_PRACY
shortname: PIERWSZA_LITERA_NAZWY_PRACY
ChatColour: BLACK
chat-display: none
max-level: JAKI_MOŻNA_MIEĆ_MAKSYMALNY_POZIOM_W_PRACY
leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
income-progression-equation: baseincome*((0.80)^(joblevel-1))
experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
Break:
BLOK_DO_ROZWALENIA
income: ILE_PIENIĘDZY_ZA_ROZWALENIE_BLOKU
experience: DOŚWIADCZENIE_W_PRACY_ZA_ROZWALENIE_BLOKU
Place:
JAKI_BLOCK_DO_POSTAWIENIA:
income: NAGRODA_LUB_KARA_ZA_JEGO_POSTAWIENIE
experience: DOŚWIADCZENIE_JAKIE_DOSTAJEMY_W_NAGRODĘ_LUB_KARĘ


Uzupełniamy nazwę pracy,fullname,shortname,max-level,Break,Place
A teraz przykład w którym dam pracę górnik.Pieniądze dostaniemy za rozwalenie stone i rudy węgla.Nagrodę dostaniemy za postawienie stone,a karę za postawienie rudy żelaza


Gornik:
fullname: Gornik
shortname: G
ChatColour: BLACK
chat-display: none
max-level: 50
leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
income-progression-equation: baseincome*((0.80)^(joblevel-1))
experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
Break:
Stone:
income: 0.1
experience: 0.1
COAL_ORE:
income: 0.2
experience: 0.2
Place:
STONE:
income: 0.2
experience: 0.2
IRON_ORE:
income: -6.0
experience: -6.0

Za rozwalenie 1 stone dostaniemy 0.1$ oraz 0.1 doświadczenia w pracy.Rozwalając 1 rudę węgla dostaniemy 0.2$ oraz 0.2 doświadczenia w pracy.
Za postawienie 1 stone dostaniemy 0.2$ oraz 0.2 doświadczenia w pracy.A za postawienie rudy żelaza dostaniemy karę w wysokości 6.0$ oraz 6.0 doświadczenia.

 

oDYVDfv.gif

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...