Zrips / Jobs

Jobs
Apache License 2.0
186 stars 216 forks source link

jobs only in certain worlds? #672

Closed resi23 closed 4 years ago

resi23 commented 4 years ago

Is it possible that jobs only work in certain worlds. For example, miners in the farm world only get XP, points and money. and hunters can only get xp, points and money in the nether.

montlikadani commented 4 years ago

You should use disabledWorlds option that found in generalConfig.

resi23 commented 4 years ago

But with disableworlds I can only generally exclude a world from all jobs. But I would like to ban various jobs in different worlds. Z.B in JobConfig.ym

Miner: fullname: Bergarbeiter shortname: Be description: Abbauen von Mineralien und Erze. ChatColour: DARK_GRAY chat-display: shortjob disableWorlds: world_nether

Hunter: fullname: Jäger shortname: J description: Tiere und Monster töten. ChatColour: RED chat-display: shortjob disableWorlds: farmwelt

montlikadani commented 4 years ago

You can change the behaviour of the disabledwords, so if you enable that option then you can disable that worlds.

resi23 commented 4 years ago

Sorry I don't understand you could give me an example. No matter how I do it, either all jobs go or none.

montlikadani commented 4 years ago

Find this: kép So, you should enable the Use option. Make sure the UseAsWhiteList is enabled, and put the world names to the List section, where the jobs works.

BijuuKrunos commented 4 years ago

I think you missunderstand waht Resi wants xD. He want to have some of the Jobs be only aktive in certein worlds. He is not speaking about disable/enable the plugin itself in the world.

for example:

the Miner gets xp in the overworld. But he cant get xp from mining Nether Quarz in the nether.

the Hunter dont get xp for killing mobs in the overworld. But he get xp from killing mobs in the nether.

He wants that job a get xp on world 1 and 2 but not on 3. Like this.

Hope you now understand 📦 Greetz the German Dude.

resi23 commented 4 years ago

I think you missunderstand waht Resi wants xD. He want to have some of the Jobs be only aktive in certein worlds. He is not speaking about disable/enable the plugin itself in the world.

for example:

the Miner gets xp in the overworld. But he cant get xp from mining Nether Quarz in the nether.

the Hunter dont get xp for killing mobs in the overworld. But he get xp from killing mobs in the nether.

He wants that job a get xp on world 1 and 2 but not on 3. Like this.

Hope you now understand 📦 Greetz the German Dude.

Yes that is what i mean