Skocz do zawartości

Dołącz do społecznoś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 Config

Rekomendowane odpowiedzi

Opublikowano

Mam problem z jobsami , w consoli 0 problemow , w permissions 0 problemow i to samo w configu lecz dalej cos nie dziala :P w sumie plugin dziala lecz /jobs browse niedziala poprostu ciagle pisze ze niema pracy do ktorej moge dolaczyc ;/

 

Job Config

# Jobs configuration.
#
# Stores information about each job.
#
# NOTE: When having multiple jobs, both jobs will give the income payout to the player
# even if they give the pay for one action (make the configurations with this in mind)
# and each job will get the respective experience.
#
# e.g If player has 2 jobs where job1 gives 10 income and experience for killing a player
# and job2 gives 5 income and experience for killing a player. When the user kills a player
# they will get 15 income and job1 will gain 10 experience and job2 will gain 5 experience.
Jobs:
# must be one word
Woodcutter:
	# full name of the job (displayed when browsing a job, used when joining and leaving)
	# also can be used as a prefix for the user's name if the option is enabled.
	# Shown as a prefix only when the user has 1 job.
	#
	# NOTE: Must be 1 word
	fullname: Woodcutter
	# Shortened version of the name of the job. Used as a prefix when the user has more
	# than 1 job
	shortname: W
	# The colour of the name, for a full list of supported colours, go to the message config.
	ChatColour: GREEN
	# Option to let you choose what kind of prefix this job adds to your name.
	# options are: full, title, job, shortfull, shorttitle, shortjob and none
	chat-display: full
	# [OPTIONAL] - the maximum level of this class
	max-level: 50
	# [OPTIONAL] - the maximum number of users on the server that can have this job at
	# any one time (includes offline players).
	slots: 5
	# Equation used for calculating how much experience is needed to go to the next level.
	# Available parameters:
	#   numjobs - the number of jobs the player has
	#   joblevel - the level the player has attained in the job.
	# NOTE: Please take care of the brackets when modifying this equation.
	leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
	# Equation used for calculating how much income is given per action for the job level.
	# Available parameters:
	#   baseincome - the income for the action at level 1 (as set in the configuration).
	#   joblevel - the level the player has attained in the job.
	# NOTE: Please take care of the brackets when modifying this equation.
	income-progression-equation: baseincome*((0.10)^(joblevel-1))
	 # Equation used for calculating how much experience is given per action for the job level.
	# Available parameters:
	#   baseexperience - the experience for the action at level 1 (as set in the configuration).
	#   joblevel - the level the player has attained in the job.
	# NOTE: Please take care of the brackets when modifying this equation.
	experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
	########################################################################
	# Section used to configure what items the job gets paid for, how much
	# they get paid and how much experience they gain.
	#
	# For break and place, the block name or id is used.
	# You can select a sub-type by using a '-' between the id and the bit
	# value for the sub-type. e.g LOG-0 = usual log, LOG-2 = birch log
	# 17-2 = birch log.
	#
	# If no sub-type is give, the payout will be for all sub-types.
	#
	# To get a list of all available block types, check the
	# bukkit JavaDocs for a complete list of block types
	# http://jd.bukkit.org/apidocs/org/bukkit/Material.html
	#
	# For kill tags (Kill and custom-kill), the name is the name of the
	# mob.
	# Available mobs:
	#   Chicken
	#   Cow
	#   Pig
	#   Sheep
	#   Wolf
	#   Creeper
	#   Giant
	#   Skeleton
	#   Spider
	#   Zombie
	#   PigZombie
	#   Squid
	#   Ghast
	#   Player
	#   Slime
	#
	# NOTE: mob names are case sensitive.
	#
	# For custom-kill, it is the name of the job (also case sensitive).
	#
	# NOTE: If a job has both the pay for killing a player and for killing a
	# specific class, they will get both payments.
	########################################################################
	# payment for breaking a block
	Break:
		# block name/id (with optional sub-type)
		LOG:
			# base income
			income: 0.50
			# base experience
			experience: 0.50
	# payment for placing a block
	Place:
		SAPLING:
			income: 1.0
			experience: 0.10
		WOOD:
			income: -5.0
			experience: -5.0
Miner:
	fullname: Miner
	shortname: M
	ChatColour: DARK_GRAY
	chat-display: full
	max-level: 50
	slots: 20
	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:
		STONE:
			income: 0.20
			experience: 0.30
		COAL_ORE:
			income: 0.50
			experience: 0.75
		REDSTONE_ORE:
			income: 0.20
			experience: 1.5
		IRON_ORE:
			income: 0.20
			experience: 1.0
		GOLD_ORE:
			income: 1.0
			experience: 1.5
		LAPIS_ORE:
			income: 1.0
			experience: 1.5
		DIAMOND_ORE:
			income: 4.0
			experience: 5.0
		OBSIDIAN:
			income: 1.5
			experience: 0.20
		MOSSY_COBBLESTONE:
			income: 1.0
			experience: 1.0
	Place:
		RAILS:
			income: 1.0
			experience: 0.0
		IRON_ORE:
			income: -5.0
			experience: -10.0
		GOLD_ORE:
			income: -5.0
			experience: -10.0
Digger:
	fullname: Digger
	shortname: D
	ChatColour: GOLD
	chat-display: full
	max-level: 50
	slots: 20
	leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
	income-progression-equation: baseincome*((0.20)^(joblevel-1))
	experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
	Break:
		DIRT:
			income: 0.0
			experience: 0.1
		GRASS:
			income: 0.0
			experience: 0.1
		GRAVEL:
			income: 0.50
			experience: 0.20
		SAND:
			income: 0.50
			experience: 0.2
		CLAY:
			income: 1.00
			experience: 0.50  
Farmer:
	fullname: Farmer
	shortname: Fa
	ChatColour: BLUE
	chat-display: full
	max-level: 50
	slots: 20
	leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
	income-progression-equation: baseincome*((0.20)^(joblevel-1))
	experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
	Break:
		CROPS-7:
			income: 2.0
			experience: 0.5
		SUGAR_CANE_BLOCK:
			income: 1.0
			experience: 1.0
		Pumpkin:
			income: 1.0
			experience: 1.0
		Melon:
			income: 1.0
			experience: 1.0
	Place:
		SEEDS:
			income: 0.5
			experience: 1.0
		SUGAR_CANE_BLOCK:
			income: 1.0
			experience: 1.0
		MELON_SEEDS:
			income: 0.2
			experience: 1.0  
Hunter:
	fullname: Hunter
	shortname: H
	ChatColour: RED
	chat-display: full
	max-level: 80
	slots: 20
	leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
	income-progression-equation: baseincome*((0.20)^(joblevel-1))
	experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
	Kill:
		Chicken:
			income: 1.5
			experience: 1.5
		Cow:
			income: 1.5
			experience: 1.5
		Pig:
			income: 1.5
			experience: 1.5
		Sheep:
			income: 1.5
			experience: 1.5
		Wolf:
			income: 1.0
			experience: 1.0			  
Fisherman:
	fullname: Fisherman
	shortname: Fi
	ChatColour: AQUA
	chat-display: full
	max-level: 60
	slots: 20
	leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
	income-progression-equation: baseincome*((0.20)^(joblevel-1))
	experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
	Fish:
		RAW_FISH:
			income: 3.5
			experience: 2.5			
Assasin:
	fullname: Assasin
	shortname: An
	ChatColour: YELLOW
	chat-display: none
	max-level: 110
	slots: 20
	leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
	income-progression-equation: baseincome*((0.50)^(joblevel-1))
	experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
	Kill:
		Player:
			income: 30.0
			experience: 20.0
Guard:
	fullname: Guard
	shortname: G
	ChatColour: RED
	chat-display: full
	max-level: 80
	slots: 20
	leveling-progression-equation: 100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))
	income-progression-equation: baseincome*((0.50)^(joblevel-1))
	experience-progression-equation: baseexperience*((1.05)^(joblevel-1))
	Kill:
		Slime:
			income: 1.0
			experience: 5.0
		Ghast:
			income: 1.0
			experience: 5.0
		Giant:
			income: 5.0
			experience: 5.0
		PigZombie:
			income: 1.0
			experience: 2.0
		Wolf:
			income: 1.0
			experience: 5.0
		Creeper:
			income: 5.0
			experience: 5.0
		Skeleton:
			income: 1.0
			experience: 5.0
		Spider:
			income: 1.0
			experience: 5.0
		Zombie:
			income: 1.0
			experience: 3.0
	custom-kill:
		Assasin:
			income: 30.0
			experience: 30.0

 

General Config

 

# General configuration.
#
#   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, h2
storage-method: h2
# Requires Mysql.
mysql-username: root
mysql-password:
mysql-database: minecraft
mysql-url: jdbc:mysql://localhost:3306/
#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: true
# Do all players get a message when somone goes up a job level?
broadcast-on-level-up: false
# maximum number of jobs a player can join
max-jobs: 1
# option to enable the stats and achievements plugin.
#enable-stats: true
# option to allow payment to be made when near a spawner
#enable-pay-near-spawner: true
# choose, which economy plugin should be used as default (optional)
# if not set, will use iConomy first
# available options: iConomy, BOSEconomy, Essentials
#economy: iConomy

 

Permissions !!

groups:
   default:
    permissions:
	    simpleregionmarket.create: true
	    simpleregionmarket.sell: true
	    simpleregionmarket.buy: true
	    iConomy.payment: true
	    iConomy.holdings: true
	    permissions.*: true
	    ChestShop.shop.*: true
	    commandbook.who: true
	    commandbook.motd: true
	    commandbook.time.check: true
	    commandbook.biome: true
	    commandbook.biome.other: true
	    commandbook.msg: true
	    commandbook.away: true
	    commandbook.home.teleport: true
	    commandbook.home.set: true
	    jail.usercmd.jailstatus: true
	    jobs.browse.*: true
	    jobs.join.*: true
	    jobs.world.*: true

 

w kazdej chwili moge podac wiecej informacji

dziekuje !!!

Edytowane przez Vebi

Opublikowano
  • Autor

mi sie wydaje ze wszystko jest ok ale i tak nie dziala -.-

Edytowane przez Vebi

  • 6 miesięcy temu...
Opublikowano

Spróbuj tego. Pamietaj że wielkośc liter ma znaczenie /jobs join Hunter, jak chcesz zmienic np hunter na lowce to zmieniaj tylko w

"fullname": "Hunter", na "fullname": "Lowca", i wpisuj /jobs join Lowca

{
 "Jobs": {
   "Hunter": {
     "max-level": 80, 
     "income-progression-equation": "baseincome*((0.20)^(joblevel-1))", 
     "leveling-progression-equation": "100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))", 
     "fullname": "Hunter", 
     "experience-progression-equation": "baseexperience*((1.05)^(joblevel-1))", 
     "ChatColour": "RED", 
     "Kill": {
       "Sheep": {
         "experience": 1.5, 
         "income": 1.5
       }, 
       "Chicken": {
         "experience": 1.5, 
         "income": 1.5
       }, 
       "Wolf": {
         "experience": 1.0, 
         "income": 1.0
       }, 
       "Cow": {
         "experience": 1.5, 
         "income": 1.5
       }, 
       "Pig": {
         "experience": 1.5, 
         "income": 1.5
       }
     }, 
     "shortname": "H", 
     "slots": 20, 
     "chat-display": "full"
   }, 
   "Miner": {
     "max-level": 50, 
     "income-progression-equation": "baseincome*((1.05)^(joblevel-1))", 
     "leveling-progression-equation": "100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))", 
     "fullname": "Miner", 
     "experience-progression-equation": "baseexperience*((1.05)^(joblevel-1))", 
     "Break": {
       "STONE": {
         "experience": 0.29999999999999999, 
         "income": 0.20000000000000001
       }, 
       "GOLD_ORE": {
         "experience": 1.5, 
         "income": 1.0
       }, 
       "LAPIS_ORE": {
         "experience": 1.5, 
         "income": 1.0
       }, 
       "REDSTONE_ORE": {
         "experience": 1.5, 
         "income": 0.20000000000000001
       }, 
       "IRON_ORE": {
         "experience": 1.0, 
         "income": 0.20000000000000001
       }, 
       "MOSSY_COBBLESTONE": {
         "experience": 1.0, 
         "income": 1.0
       }, 
       "COAL_ORE": {
         "experience": 0.75, 
         "income": 0.5
       }, 
       "OBSIDIAN": {
         "experience": 0.20000000000000001, 
         "income": 1.5
       }, 
       "DIAMOND_ORE": {
         "experience": 5.0, 
         "income": 4.0
       }
     }, 
     "ChatColour": "DARK_GRAY", 
     "Place": {
       "IRON_ORE": {
         "experience": -10.0, 
         "income": -5.0
       }, 
       "RAILS": {
         "experience": 0.0, 
         "income": 1.0
       }, 
       "GOLD_ORE": {
         "experience": -10.0, 
         "income": -5.0
       }
     }, 
     "shortname": "M", 
     "slots": 20, 
     "chat-display": "full"
   }, 
   "Assasin": {
     "max-level": 110, 
     "income-progression-equation": "baseincome*((0.50)^(joblevel-1))", 
     "leveling-progression-equation": "100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))", 
     "fullname": "Assasin", 
     "experience-progression-equation": "baseexperience*((1.05)^(joblevel-1))", 
     "ChatColour": "YELLOW", 
     "Kill": {
       "Player": {
         "experience": 20.0, 
         "income": 30.0
       }
     }, 
     "shortname": "An", 
     "slots": 20, 
     "chat-display": "none"
   }, 
   "Guard": {
     "max-level": 80, 
     "income-progression-equation": "baseincome*((0.50)^(joblevel-1))", 
     "leveling-progression-equation": "100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))", 
     "fullname": "Guard", 
     "experience-progression-equation": "baseexperience*((1.05)^(joblevel-1))", 
     "ChatColour": "RED", 
     "custom-kill": {
       "Assasin": {
         "experience": 30.0, 
         "income": 30.0
       }
     }, 
     "Kill": {
       "Giant": {
         "experience": 5.0, 
         "income": 5.0
       }, 
       "Skeleton": {
         "experience": 5.0, 
         "income": 1.0
       }, 
       "Creeper": {
         "experience": 5.0, 
         "income": 5.0
       }, 
       "Spider": {
         "experience": 5.0, 
         "income": 1.0
       }, 
       "Slime": {
         "experience": 5.0, 
         "income": 1.0
       }, 
       "Zombie": {
         "experience": 3.0, 
         "income": 1.0
       }, 
       "Ghast": {
         "experience": 5.0, 
         "income": 1.0
       }, 
       "PigZombie": {
         "experience": 2.0, 
         "income": 1.0
       }, 
       "Wolf": {
         "experience": 5.0, 
         "income": 1.0
       }
     }, 
     "shortname": "G", 
     "slots": 20, 
     "chat-display": "full"
   }, 
   "Fisherman": {
     "slots": 20, 
     "max-level": 60, 
     "income-progression-equation": "baseincome*((0.20)^(joblevel-1))", 
     "leveling-progression-equation": "100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))", 
     "fullname": "Fisherman", 
     "experience-progression-equation": "baseexperience*((1.05)^(joblevel-1))", 
     "ChatColour": "AQUA", 
     "shortname": "Fi", 
     "Fish": {
       "RAW_FISH": {
         "experience": 2.5, 
         "income": 3.5
       }
     }, 
     "chat-display": "full"
   }, 
   "Farmer": {
     "max-level": 50, 
     "income-progression-equation": "baseincome*((0.20)^(joblevel-1))", 
     "leveling-progression-equation": "100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))", 
     "fullname": "Farmer", 
     "experience-progression-equation": "baseexperience*((1.05)^(joblevel-1))", 
     "Break": {
       "Melon": {
         "experience": 1.0, 
         "income": 1.0
       }, 
       "SUGAR_CANE_BLOCK": {
         "experience": 1.0, 
         "income": 1.0
       }, 
       "CROPS-7": {
         "experience": 0.5, 
         "income": 2.0
       }, 
       "Pumpkin": {
         "experience": 1.0, 
         "income": 1.0
       }
     }, 
     "ChatColour": "BLUE", 
     "Place": {
       "SEEDS": {
         "experience": 1.0, 
         "income": 0.5
       }, 
       "SUGAR_CANE_BLOCK": {
         "experience": 1.0, 
         "income": 1.0
       }, 
       "MELON_SEEDS": {
         "experience": 1.0, 
         "income": 0.20000000000000001
       }
     }, 
     "shortname": "Fa", 
     "slots": 20, 
     "chat-display": "full"
   }, 
   "Woodcutter": {
     "max-level": 50, 
     "income-progression-equation": "baseincome*((0.10)^(joblevel-1))", 
     "leveling-progression-equation": "100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))", 
     "fullname": "Woodcutter", 
     "experience-progression-equation": "baseexperience*((1.05)^(joblevel-1))", 
     "Break": {
       "LOG": {
         "experience": 0.5, 
         "income": 0.5
       }
     }, 
     "ChatColour": "GREEN", 
     "Place": {
       "SAPLING": {
         "experience": 0.10000000000000001, 
         "income": 1.0
       }, 
       "WOOD": {
         "experience": -5.0, 
         "income": -5.0
       }
     }, 
     "shortname": "W", 
     "slots": 5, 
     "chat-display": "full"
   }, 
   "Digger": {
     "max-level": 50, 
     "income-progression-equation": "baseincome*((0.20)^(joblevel-1))", 
     "leveling-progression-equation": "100*((1.13+(0.01*(numjobs-1)))^(joblevel-1))", 
     "fullname": "Digger", 
     "experience-progression-equation": "baseexperience*((1.05)^(joblevel-1))", 
     "Break": {
       "DIRT": {
         "experience": 0.10000000000000001, 
         "income": 0.0
       }, 
       "SAND": {
         "experience": 0.20000000000000001, 
         "income": 0.5
       }, 
       "GRASS": {
         "experience": 0.10000000000000001, 
         "income": 0.0
       }, 
       "GRAVEL": {
         "experience": 0.20000000000000001, 
         "income": 0.5
       }, 
       "CLAY": {
         "experience": 0.5, 
         "income": 1.0
       }
     }, 
     "ChatColour": "GOLD", 
     "shortname": "D", 
     "slots": 20, 
     "chat-display": "full"
   }
 }
}

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Konto

Nawigacja

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.