[MECH] CustomDifficulty v4.5.0 - Monsters too strong or too weak for you? Change it! [1240]

Discussion in 'Inactive/Unsupported Plugins' started by Pasukaru, Jun 6, 2011.

  1. Offline

    Pasukaru

    CustomDifficulty
    The Plugin to adjust the difficulty in SMP
    Latest version: 4.5.0
    blank line
    [​IMG]
    BLANK LINE : D : D
    CustomDifficulty provides a lot of features to change the all around difficulty in Minecraft.
    You can change the monster's HP, damage, aggressiveness and more! You are also able to modify the player's damage.
    Each difficulty is stored in its own file - which enables you to create as many difficulties as you like! It's possible to set a difficulty for a certain region only (Use the built-in regions, or WorldGuard regions). This enables you - for example - to create hard dungeons with ease.
    For more information, take a look at the 'Features' section below.

    Please report any bugs you may encounter!

    If you are a developer and take a look at the source, please let me know if you have some improvements! I'm still new to this (Java/programming in general) and want to get better. :)

    Features:
    • Change monster's hp (200 HP is max - but that should be enough, a player has 20)
    • Change monster's damage - Let them beat you up - or not even scratch you :>
    • Change aggressiveness of monsters and animals. (Aggressive, Passive, Friendly)
    • Change if monsters burn in sunlight.
    • Spawn any mob, anywhere - naturally! Giant, 'monster' and sheep in any color included!
    • Define spawn chance.
    • Define min/max height for mobs to spawn.
    • Define min/max light level for mobs to spawn.
    • Define block types mobs will only/will never spawn on.
    • Define custom drops for each mob in each difficulty.
    • Define a loot-multiplier to let monsters drop more items!
    • Limit mobs per server/world/chunk
    • iConomy support! (For monster-killing rewards)
    • Change player's damage.
    • Multi-world support!
    • Permissions support!
    • WorldGuard support!
    • Create regions, each with a custom difficulty!
    • No need to restart/reload the server to apply changes, simply use the /difficulty reload command!
    • All (reasonable) commands can be used from the console!
    If you download, please also click the 'like' button at the lower right corner of this post - Thanks!

    If you need a more detailed explanation, feel free to drop me a message and I'll try to help as much as I can. :)
    This text is only used to have an empty line! :>
    How to use:
    Click me :)

    • Copy CustomDifficulty.jar into the /root/plugins folder.
    • Download WorldEdit (If you want to use regions) and place it into the /root/plugins folder as well.
    • Difficulties are located in the /root/plugins/CustomDifficulty/difficulties folder. Each difficulty is in its own [difficulty].yml file.
    • Simply change the values of the default configs and/or create new config files. The plugin will load all *.yml files inside the difficulties folder automatically on reload.
    • If you remove a configuration node, this plugin won't change anything of the corresponding event, thus preventing conflicts with other plugins.
    • You can create regions with the /difficulty region [regionCommand] commands and set difficulties for each of them independently! (See 'Commands and Permissions' below)
    Note that you must notuse tabs in *.yml (YAML) files. If you do, it will mess up the format and Bukkit will throw you a million errors (something like *snakeyaml* ) :>
    Important notes:
    Click me :)

    • All configuration nodes are case sensitive and your world's names shouldn't contain special character, as it might mess up the configuration nodes!
      If a configuration node does not exist, Bukkits default will be used - or nothing happens at all.
      The plugin will check if the monster/player is in a region first (if enabled - see below)
      If the monster/player is in no region, the world's difficulty settings will be used.
    • Slimes are handled according to their size.
    • Wolves are handled according to their tamed/untamed status.
    • Creepers are handled according to their powered/unpowered. status.
    • The last three points exclude the following nodes:
      spawnChance, spawnOnlyOn, spawnNotOn, lightLevelMin, lightLevelMax
    • Creepers have a floating point (e.g. 1.65) damage value and it's used as multiplier, not as fixed damage. This value applies to the damage only, not the explosion range/radius.
    • Wild wolves can be aggressive. They will attack a player on sight, but it is still possible to tame them - unless the player fights back.
    • Tamed wolves HP will always be read from the worlds difficulty! (To avoid exploits like healing it in a region where it as a maximum of 100 hp and then move to a region with a maximum of 50 hp)
    • Player's damage will be calculated like this:
      Round( (usualDamage * damageMultiply) + damageAdd )
      damageAdd is an integer.
      damageMultiply is a floating point value.
      usualDamage is the players default damage (e.g. 2 with fists, 5 with diamond pickaxe) - might be different if another plugin modified the event damage before CustomDifficulty did!
      You can use different values for Player vs Player and Player vs Monster. You can also set negative values - but a negative multiplier is not recommended.
    • Regions are disabled by default! If you want to use them, go to your config.yml(not difficulty.yml!) and set useRegions for the specified actions to 'true' (without quotes!)
      I disabled them by default do increase performance (a tiny, tiny bit :p, unless you have 1 million regions in one world) and I guess not everyone will use them.
    • Change difficulty of (regions or worlds) by using the corresponding command where difficulty = one of your /difficulties/[difficulty].yml without the ".yml" extension!
    Commands and Permissions:
    Click me :)
    Permission node to receive rewards: 'CustomDifficulty.reward'
    Ops can use all commands and permission nodes are case sensitive!
    bold = mandatory
    underlined = optional
    " | " = "or"

    Difficulty-related commands:
    • /difficulty help - Displays the help / lists commands and descriptions.
      Permission node: 'CustomDifficulty.help'
    • /difficulty - Displays difficulty of the world the player is currently in - or of all worlds if the command user is no player (e.g. console)
      Permission node: 'CustomDifficulty.check'
    • /difficulty check <World | all> - Displays the difficulty of <World>, <all> worlds or the world the player is currently in if <World> is not specified. If the command user is no player, it will list all worlds.
      Permission node: 'CustomDifficulty.check'
    • /difficulty <change | set><World> <Difficulty> - Change difficulty of <World>, or the world you are currently in if none specified.
      Permission node: 'CustomDifficulty.change'
    • /difficulty reload - Reloads the config files. Use this after changing/adding difficulties or other configurations!
      Permission node: 'CustomDifficulty.reload'
    • /difficulty performance - Counts the used time for each feature for the next 10 seconds. Use this if you think the plugin causes lag, and to find out which part of it.
    Region-related commands (These require WorldEdit and WorldGuard):
    All commands start with /difficulty region *** - Replace "***" with one of the below:
    • help - Displays help about region commands.
      Permission node: 'CustomDifficulty.region.help'
    • <set | change> <World> <Difficulty> - Change difficulty of world <World>, or the world you are currently in, if <World> is not specified, to <Difficulty>
      Permission node: 'CustomDifficulty.region.set'
    • info <World> <RegionName> - Displays some information about region <RegionName> on world <World> or the world you are currently in.
      Permission node: 'CustomDifficulty.region.list'
    Note:
    If you are using WorldGuard regions, only the region commands 'info' and 'set | change' are available. To define new regions, you WorldGuard's '/region define' command.
    Changelog:
    Version 4.5.0 | 10/6/2011
    • Fixed: Squid spawn - for real this time
    • Fixed: min/max spawn distance works now.
    • Fixed: Ghats can now be friendly. (passive too, but they will behave as friendly. :/) Friendly ghasts hardly move though.
    • Added: OPs will receive a message on login, if a new of CD is available. Can be turned off, config.yml -> global.checkForUpdates
    • Added: Some code to make squids follow their targets. They don't do that naturally like other mobs. -.-
    • Ghasts and PigZombies take damage over time to simulate burning in sunlight. (If enabled)
    Old versions (open)
    Version 4.4.0 | 9/28/2011
    • Changed: Mob limit configuration; Nodes you have to use now:
    Code:
    global:
        mobLimit: 500 #= server Limit
    worlds:
        [worldname]:
            mobAggressiveLimit: 75
            mobPassiveLimit: 75
            mobFriendlyLimit: 75
            mobChunkLimit: 1
    
    You can remove all other limit nodes, they aren't used anymore.
    • Added: A new config node inside the difficulty files:
    Code:
    global:
        dropOnlyWhenKilledByPlayer: false
    
    Should be self-explanatory, but you have to add it manually if you want to enable it.
    • Fixed: Squid spawning. Was checking for lava instead of water..
    • Fixed: A NPE inside the spawn algorithm.
    • Fixed: Another NPE inside spawn algorithm (dev build only)
    • Added: Multiverse-Core will now load before CD does.
    • Added: Register support. All major economy plugins should work with CD now.
    • Removed: iConomy5 support. If you use iConomy5, you also have to download and use Register.
    Version 4.3.0 | 9/24/2011
    • Fixed: Feeding wolf in 1.8; Item amount decreases and Raw Flesh added as food.
    • Fixed: Getting rewards with projectiles (arrows) works now.
    • Fixed: Giants spawning in walls and small caves. - Some still spawn in walls or weird locations and suffocate, but they will be removed immediately.
    • Added: Configuration nodes for the new mobs Enderman, CaveSpider and Silverfish.
    • Added: Now spawn-able: Electrified Creeper, Spider-Jockeys, coloured sheep.
    • Changed: Mobs will now spawn in at least 2 block high rooms instead 1 block only. (To prevent Zombies and other tall mobs to suffocate.)
    Version 4.2.3 | 7/28/2011
    • Changed: Giants attack players up to 3 blocks below them instead of 1.
    • Changed: config.yml nodes: spawnInterval, aggressivenessInterval and burnsInSunlightInterval are now in the worlds.worldname section. You can remove the global ones.
    • Probably fixed: ClassCastException in aggressiveness task. (?)
    • Changed: performance command.
    • Fixed: Another bug, I just don't remember which one... I should start writing it down immediately :eek:
    Version 4.2.2 | 7/27/2011
    • Fixed: BurnsInSunlight now reads the interval correctly from the config. (=Slight performance increase if you don't use an interval of 1. Default is 20.)
    • Fixed: Mobs can now spawn in snowy areas.
    • Added: Giants should attack players now, they don't do it naturally... (Please test this :))
    • Changed: Aggressiveness check is now performed every X ticks for every player, instead of every X move-events for the corresponding player only.
    Version 4.2.1 | 7/26/2011
    • Fixed: NPE in mobCleanup
    • Removed: Creation of unused node 'ignoreInvalidWorldDifficulty' in config.yml
    Version 4.2.0 | 7/25/2011
    • Added: command '/difficulty performance'
    • Added: another way of reading the difficulty of a mob (for testing purposes). change useOldGetDifficulty in your config.yml if you want.
    Version 4.1.0 | 7/15/2011
    • Removed built-in regions. (Use WorldGuard, it provides more features for regions)
    • Added customizable drops.
    • Added: Players will receive rewards if their wolf kills a mob
    • Changed spawn-algorithm, it will use the chunks around a random player per run, instead of chunks around all players.
    • Changed check for old iConomy versions.
    Version 4.0.6 | 7/13/2011
    • Fixed an 'out of bounds exception' in the reward calculations.
    • Mobs shouldn't suffocate anymore if they spawn next to a wall.
    Version 4.0.5 | 7/12/2011
    • fixed automatically created node burnInSunlight to burnsInSunlight in the config.yml
    • probable fix for a concurrent modification exception.
    Version 4.0.4 | 7/11/2011
    • Added fix for incompatible iConomy versions.
    Version 4.0.3 | 7/10/2011
    • Major bug fixed within the spawn-algorithm. To be specific: instead of reading the maximum light level for a mob to spawn, it was reading the minimum height - this, of course, messed everything up.
    Version 4.0.2 | 7/10/2011
    • NPE fix regarding the loot multiplier. - A weird one :confused:
    Version 4.0.1 7/9/2011
    • Mobs shouldn't spawn in water anymore if spawnNotOn WATER and/or STATIONARY_WATER is used.
    Version 4.0.0 | 7/9/2011
    • Aggressiveness is now split into aggressivenessDay and aggressivenessNight.
    • Added option on which blocks mobs will only spawn, or will never spawn on.
    • Reward now requires permission 'CustomDifficulty.reward' to receive it.
    • Added option for min/max light level for mobs to spawn.
    • Added option for min/max height for mobs to spawn.
    • large rewrite of the plugin.
    Version 3.6.0 | 7/7/2011
    • Depreciation of rewards if you kill the same mob type repeatedly.
    • Bugfix of the isDay() function which resulted in wrong calculations for the BurnInSunlight feature. (It was checking for night instead of day - fail)
    • SpawnChance will only affect naturally spawned mobs. (I was too stupid to find it previously - lol). Also, It will never affect the spawn behaviour of 'monster' and giant in any way, even if a plugin spawns them as 'naturally'. If you use another plugin to make them spawn, it should be possible to change the spawn amount there.
    • isAggressive and burnsInSunlight features are now available for animals as well.
    Version 3.5.1 | 5/7/2011
    • Added check for a nearby mob spawner for reward and lootMultiplier.
    • Added success-rate of a mob spawning.
    Version 3.5.0 | 7/5/2011
    • NPE fix within the reward system.
    • Added WorldGuard-Regions support.
    • Added option to disable startup messages.
    • Region Commands now have their own classes.
    • Difficulties with uppercase letters work properly.
    Version 3.4.2 | 7/3/2011
    • Fixed another bug regarding region-persistence. :eek:
    Version 3.4.1 | 7/3/2011
    • Fixed monsters (except skeletons & zombies) starting to burn during night if burnsInSunlight was set to true.
    Version 3.4.0 | 7/2/2011
    • Fixed regions not saving into database due to a wrong function call.
      Thanks to @Kytsune for spotting this bug!
    • Added iConomy support for mob-killing rewards.
    • Added lootMultiplier feature
    Version 3.3.1 | 7/1/2011
    • NPE fix
    Version 3.3.0 | 7/1/2011
    • Added some (possible) bugfixes
    • Added possibility to change if (hostile) monsters burn in sunlight.
    Version 3.2.0 | 6/24/2011
    • Added changeable aggressiveness.
    • Changed the way I hooked into WorldEdit / Permissions.
    • Different settings for wild wolves and tamed wolves.
    • Tested against RB 928.
    Version 3.1.0 | 06/16/2011
    • Added configuration nodes for "monster" (the 'human' mob)
    Version 3.0.0 | 06/16/2011
    • Added regions. (Requires WorldEdit and HSQLDB)
    • Added possibility to create as many difficulties as you want
    • Changed commands a bit to clean up source code - it was a mess!
    • Some minor bug fixes.
    • Something else I don't remember right now. :eek:
    Version 2.2.2 | 06/14/2011
    • Removed "Error in [world].yml - Check HP settings for [monster]" debug message.
    Version 2.2.1 | 06/07/2011
    • Added option to change Player's damage for each difficulty (multiply and [add or subtract damage] or both)
    • Added checks if config nodes are set. (If not - Plugin won't touch the corresponding event)
    • Changed "/difficulty" command - displays now the current world - or all worlds if the command user is no player (e.g. console)
    • Added "/difficulty all" - will display the difficulty on all worlds.
    • Priorities of 'CREATURE_SPAWN' and 'ENTITY_DAMAGE' events have been set to 'Lowest'.
    • Bug-fix - Fixed error with slimes - it was looking for node "slime[size]..." instead of "slime.[size]..."
    • Some minor changes in the source code (e.g. refactoring)
    Version 2.1.1 | 06/06/2011
    • Added Multi-World support.
    • Added Permissions support.
    • Bug-fix - Slimes are now handled according to their size.
    Version 1.0.0 | 06/05/2011
    • Initial release.

    To-do
    • Limit mob spawning to biomes.
    • Suggestions!
    • Change Player's HP | Out of the scope of this plugin as it requires a custom health system. I might add later though... who knows.
    If you like this plugin and want to help me a lil bit - please [​IMG]. Thanks!

    ~Pardon my imperfect English. :>
     
    Snatch, bluehasia, Smokie23 and 27 others like this.
  2. Offline

    darkrezzzz

    can someone give me a quick example what the code looks like to turn on regions?
     
  3. Offline

    Dimochka

    I've set useWorldGuardRegions to true and still
    Code:
    13:27:47 [INFO] [CustomDifficulty] will use built-in regions.
    on startup, although WG regions actually work with CustomDifficulty.

    1. Define a WorldGuard region: select cuboid corners with woodaxe and do `/region define t1 <owners>` to define a region named `t1` with specified owners.
    2. Write a difficulty file for your region and make sure CustomDifficulty loads it on startup, like:
    Code:
    13:27:47 [INFO] [CustomDifficulty] Found the following 2 difficulties:
    town, default.
    
    3. Do `/difficulty region set t1 town` to set difficulty in `t1` region to `town`.
    Check region information with `/difficulty region info t1` or just `/difficulty` while standing in area you want to inspect.

    What does
    Code:
    spawnAlgorithm:
    option under `useRegions` mean?
    Whether or not all region-specific `spawn*` options take effect or not?
    If we set `spawnAlgorithm: false`, will world `spawn*` option values be used instead?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  4. Offline

    darkrezzzz

    ok it tells me
    difficulty on world home: default
    difficulty at your current location: mobcastle

    but mobcastle is suppose to be a lot harder and when i hit a mob inside the region it dies like default mobs do in the normal world

    i am using worldgaurd 5.2.2 for the regions

    also if i change world to mobcastle it works fine for the hole world but i dont want that just want it in one region
     
  5. Offline

    Dimochka

    @darkrezzzz

    I think that's what `useRegions` section is for. By default it has `mobHP: false` which is why your mob has world HP
     
  6. Offline

    darkrezzzz

    i understand!! thx all when i would open the config file in notepad it was all messed up with spaces but with wordpad it all makes sense!
     
  7. Iam doing the same as u explain but all what i get is "An internal error occurred while attempting to perform this command"...what iam doing wrong oO?
     
  8. "If you remove a configuration node, this plugin won't change anything of the corresponding event, thus preventing conflicts with other plugins."

    I tried removing an entire world's config from the config file, restart, and it just adds it back.

    So I still don't really understand how I can just simply disable the ENTIRE plugin in ALL worlds apart from 1, for example...
     
  9. Offline

    Dimochka

    Try to read traceback at console if server gives you one
     
  10. did u mean this ?? i didnt understand anything from them ^^

    Code:
    15:16:23 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'difficulty' in plugin CustomDifficulty v4.1.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: com.sk89q.worldguard.bukkit.WorldGuardPlugin.getRegionManager(Lorg/bukkit/World;)Lcom/sk89q/worldguard/protection/managers/RegionManager;
            at Pasukaru.CustomDifficulty.hooks.WorldGuard.initializeFlags(WorldGuard.java:63)
            at Pasukaru.CustomDifficulty.hooks.WorldGuard.initialize(WorldGuard.java:48)
            at Pasukaru.CustomDifficulty.util.Manager.useWorldGuardRegions(Manager.java:282)
            at Pasukaru.CustomDifficulty.util.Manager.getDifficulty(Manager.java:244)
            at Pasukaru.CustomDifficulty.commands.Check.onCommand(Check.java:33)
            at Pasukaru.CustomDifficulty.commands.DifficultyCommands.onCommand(DifficultyCommands.java:17)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
     
  11. Offline

    Dimochka

    @Frezze try updating your WorldGuard
     
  12. u are geniues. i thought i already got the newst worldguard, but it was my mistake. i update worldgaurd and it works now [diamond] [diamond] [diamond] [diamond] [diamond] for u ;)
     
  13. Offline

    Latros

    Heya Pasakaru, I was wondering if I'd be able to commission you to custom-code a CustomDifficulty type plugin JUST for Battlecraft (you could release it if you want, I don't really care) that adjusts certain damage modifiers, but that DOESN'T have some of the features of CustomDifficulty that we don't need. It'd basically be copy-pasting some of the code you've already written, and we'd pay you for it. Let me know.
     
  14. Offline

    Pasukaru

    @locutus
    A small bug that will be fixed in the next release.
    [Edit]
    Seems like you're using an unsupported WorldGuard version, shouldn't happen with v 5.2.2.

    @Dimochka
    'naturalMobLimit' prevents mobs from spawning naturally if the limit is reached.
    'mobLimit' will prevent all mobs from spawning if the limit is reached (even mobs spawned by commands, other plugins)
    Yea, I changed the spawnalgorithm with verion 4.0.0. In fact, I completely overwrite the default one and use my own. That's why mobs will spawn in every biome now. If you want mobs - in your case wolves - to spawn less often, modify their spawnChance.
    I'm also working on a wiki right now. It's a lot of stuff to type and I'll need some more time to get it done.
    Choose whether you want to use spawnAlgorithm to check for a region when a monster will be spawned at position X. Check if X is inside a region - if so, and if useRegions.spawnAlgorithm is enabled - check for the difficulty in the region and use its configuration instead of the world's difficulty. (E.g. lightlevel, spawn height, etc)

    @Joy
    Stuff inside the config.yml will always be auto-generated. To disable everything for a world completely, set the difficulty of a world to something invalid. 'none' or 'awoeuhaewrh' will do fine, unless you really have a difficulty with a name like this. :p

    @Latros
    I'd like to do that, yea. Tell me what you have in mind and how exactly it should look like. (What features you want and the ones implemented in CustomDifficulty you don't need)

    To everyone with the 'mobs don't spawn' problem:
    I don't have anything to work with since you get no errors in console and it works just fine on both, my local server and my live-server. This makes it pretty hard to find the error.
    I'll upload a new version - more or less a re-compile only. I don't believe in miracles, but maybe it'll fix itself. If not - I'll add some debug commands and messages to make it possible for you to test some stuff.
     
  15. Offline

    darkrezzzz

    can someone give me a example what each number in drops mean like 4:0:1:100 what does this all mean? =)
    thx in advance
     
  16. Offline

    Pasukaru

  17. Offline

    fonesic

    Code:
    23:04:45 [SEVERE] Could not pass event WORLD_LOAD to CustomDifficulty
    java.lang.NullPointerException
            at Pasukaru.CustomDifficulty.hooks.WorldGuard.initializeFlags(WorldGuard.java:64)
            at Pasukaru.CustomDifficulty.hooks.WorldGuard.initialize(WorldGuard.java:48)
            at Pasukaru.CustomDifficulty.util.Manager.useWorldGuardRegions(Manager.java:282)
            at Pasukaru.CustomDifficulty.util.Manager.reload(Manager.java:116)
            at Pasukaru.CustomDifficulty.CustomDifficultyWorldListener.onWorldLoad(CustomDifficultyWorldListener.java:30)
            at org.bukkit.plugin.java.JavaPluginLoader$53.execute(JavaPluginLoader.java:612)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
            at org.bukkit.craftbukkit.CraftServer.createWorld(CraftServer.java:512)
            at org.bukkit.craftbukkit.CraftServer.createWorld(CraftServer.java:435)
            at org.bukkit.craftbukkit.CraftServer.createWorld(CraftServer.java:431)
            at com.onarandombox.Rigby.MultiVerse.MultiVerse.loadWorlds(MultiVerse.java:380)
            at com.onarandombox.Rigby.MultiVerse.MultiVerse.onEnable(MultiVerse.java:115)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I'm using worldguard 5.2.2 with CB 1000
     
  18. Offline

    darkrezzzz

    all my drops are not working any idea why?
    Code:
    global:
        rewardDepreciation: 0.0
        possibleSpawnCreatures:
        - chicken
        - creeper
        - pig
        - sheep
        - skeleton
        - slime
        - spider
        - squid
        - wolf
        - zombie
        - giant
        - ghast
        - monster
        - pigzombie
    player:
        vsMonsterDamageAdd: 0
        vsPlayerDamageAdd: 0
        vsPlayerDamageMultiply: 1.0
        vsMonsterDamageMultiply: 1.0
    zombie:
        hp: 90
        damage: 1
        spawnChance: 30.0
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - 272:0:1:1:10
        - 299:0:1:1:10
        - 298:0:1:1:10
        - 300:0:1:1:10
        - 301:0:1:1:10
        - 258:0:1:1:10
        - 257:0:1:1:10
        - 263:0:1:5:10
        - 350:0:1:2:30
    
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
    skeleton:
        hp: 70
        damage: 1
        spawnChance: 30.0
        burnsInSunlight: true
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - 299:0:1:1:10
        - 298:0:1:1:10
        - 301:0:1:1:10
        - 300:0:1:1:10
        - 261:0:1:1:10
        - 262:0:5:25:50
        - 260:0:1:2:30
        - 340:0:1:1:10
        - 30:0:1:3:10
    
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
    creeper:
        spawnChance: 50.0
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
        powered:
            hp: 40
            damage: 1.0
            burnsInSunlight: false
            aggressivenessDay: aggressive
            aggressivenessNight: aggressive
            reward: 0.0
            lootMultiplier: 1
            drops:
            - 337:0:1:5:30
            - 289:0:1:5:40
            - 264:0:1:1:2
            - 259:0:1:1:10
            - 331:0:1:3:10
            - 357:0:1:3:20
            - 278:0:1:1:20
            - 279:0:1:1:20
            - 277:0:1:1:20
    
        unpowered:
            hp: 10
            damage: 1.0
            burnsInSunlight: false
            aggressivenessDay: aggressive
            aggressivenessNight: aggressive
            reward: 0.0
            lootMultiplier: 1
            drops:
            - 337:0:1:5:30
            - 289:0:1:5:40
            - 264:0:1:1:2
            - 259:0:1:1:10
            - 331:0:1:3:10
            - 357:0:1:3:20
    
    spider:
        hp: 40
        damage: 1
        spawnChance: 10.0
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - 30:0:1:3:50
        - 349:0:1:2:30
        - 287:0:1:3:50
        - 319:0:1:1:50
        - 287:0:1:3:50
        - 288:0:1:1:20
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
    slime:
        spawnChance: 10.0
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        spawnOnlyOn:
        spawnNotOn:
        huge:
            hp: 100
            damage: 1
            burnsInSunlight: false
            reward: 0.0
            lootMultiplier: 1
            drops:
            - 306:0:1:1:10
            - 307:0:1:1:10
            - 308:0:1:1:10
            - 309:0:1:1:10
            - 267:0:1:1:10
            - 257:0:1:1:10
            - 258:0:1:1:10
            - 256:0:1:1:10
            - 341:0:1:5:50
    
        big:
            hp: 75
            damage: 1
            burnsInSunlight: false
            reward: 0.0
            lootMultiplier: 1
            drops:
            - 306:0:1:1:10
            - 307:0:1:1:10
            - 308:0:1:1:10
            - 309:0:1:1:10
            - 267:0:1:1:10
            - 257:0:1:1:10
            - 258:0:1:1:10
            - 256:0:1:1:10
            - 341:0:1:5:50
    
        average:
            hp: 50
            damage: 1
            burnsInSunlight: false
            reward: 0.0
            lootMultiplier: 1
            drops:
            - 306:0:1:1:10
            - 307:0:1:1:10
            - 308:0:1:1:10
            - 309:0:1:1:10
            - 267:0:1:1:10
            - 257:0:1:1:10
            - 258:0:1:1:10
            - 256:0:1:1:10
            - 341:0:1:5:50
    
        small:
            hp: 20
            damage: 0
            burnsInSunlight: false
            reward: 0.0
            lootMultiplier: 1
            reward: 1
            drops:
            - 306:0:1:1:10
            - 307:0:1:1:10
            - 308:0:1:1:10
            - 309:0:1:1:10
            - 267:0:1:1:10
            - 257:0:1:1:10
            - 258:0:1:1:10
            - 256:0:1:1:10
            - 341:0:1:5:50
    
    pigzombie:
        hp: 100
        damage: 1
        spawnChance: 20.0
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - 306:0:1:1:10
            - 314:0:1:1:10
            - 315:0:1:1:10
            - 316:0:1:1:10
            - 317:0:1:1:10
            - 283:0:1:1:10
            - 284:0:1:1:10
            - 285:0:1:1:10
            - 286:0:1:1:10
            - 320:0:1:2:50
    
        spawnOnlyOn:
        spawnNotOn:
    ghast:
        hp: 50
        damage: 4
        spawnChance: 1.0
        burnsInSunlight: false
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - 306:0:1:1:10
        - 311:0:1:1:10
        - 312:0:1:1:10
        - 313:0:1:1:10
        - 310:0:1:1:10
        - 276:0:1:1:10
        - 277:0:1:1:10
        - 278:0:1:1:10
        - 279:0:1:1:10
        - 354:0:1:1:100
    
    giant:
        hp: 200
        damage: 10
        spawnChance: 5.0
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - 311:0:1:1:10
        - 312:0:1:1:10
        - 313:0:1:1:10
        - 310:0:1:1:10
        - 276:0:1:1:10
        - 277:0:1:1:10
        - 278:0:1:1:10
        - 279:0:1:1:10
        - 354:0:1:1:100
    
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
    monster:
        hp: 130
        damage: 1
        spawnChance: 5.0
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - 302:0:1:1:10
        - 303:0:1:1:10
        - 304:0:1:1:10
        - 305:0:1:1:10
        - 276:0:1:1:10
        - 277:0:1:1:10
        - 278:0:1:1:10
        - 279:0:1:1:10
        - 322:0:1:1:20
    
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
    wolf:
        spawnChance: 20.0
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        spawnOnlyOn:
        - GRASS
        spawnNotOn:
        wild:
            hp: 20
            damage: 1
            burnsInSunlight: false
            aggressivenessDay: aggressive
            aggressivenessNight: aggressive
            reward: 0.0
            lootMultiplier: 1
            drops:
        tamed:
            hp: 120
            damage: 4
            burnsInSunlight: false
            aggressivenessDay: passive
            aggressivenessNight: passive
            reward: 0.0
            lootMultiplier: 1
            drops:
    cow:
        hp: 10
        damage: 0
        spawnChance: 20.0
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - 2:0:1:1:100
        - 3:0:1:3:50
        - 4:0:1:4:100
        spawnOnlyOn:
        - GRASS
        spawnNotOn:
    pig:
        hp: 10
        damage: 0
        spawnChance: 20.0
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        spawnOnlyOn:
        - GRASS
        spawnNotOn:
    chicken:
        hp: 10
        damage: 0
        spawnChance: 20.0
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        spawnOnlyOn:
        - GRASS
        spawnNotOn:
    sheep:
        hp: 10
        damage: 0
        spawnChance: 20.0
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        spawnOnlyOn:
        - GRASS
        spawnNotOn:
    squid:
        hp: 100
        damage: 6
        spawnChance: 100.0
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
     
  19. Offline

    Darcion

    with version 4.1.1 it diddnt working ether i got this info

    Code:
    2011-07-19 11:51:52 [WARNING] [CustomDifficulty] Difficulty not found for world free2playV2
    2011-07-19 11:51:52 [INFO] [CustomDifficulty] Spawning deactivated for world free2playV2
    2011-07-19 11:51:52 [WARNING] [CustomDifficulty] Difficulty not found for world free2playV2_nether
    2011-07-19 11:51:52 [INFO] [CustomDifficulty] Spawning deactivated for world free2playV2_nether
    2011-07-19 11:51:52 [WARNING] [CustomDifficulty] Difficulty not found for world free2fly
    2011-07-19 11:51:52 [INFO] [CustomDifficulty] Spawning deactivated for world free2fly

    i deleted all files an restarted but nothing worked

    no default.yml difficult or something was generated
     
  20. Offline

    ReKLiS

    4.1.1 doesn't seam to autocreate the difficulty.yml files in the difficulty folder. I had to download an old version to generate the files
     
  21. Offline

    Pasukaru

    @Darcion
    Did you restart the server, or reload?
    You shouldn't replace plugins while the server is running. :confused:

    @darkrezzzz
    Seems like yml has problems reading it when it starts with a number sometimes.
    Try it with quotes, like this:
    Code:
    zombie:
        hp: 90
        damage: 1
        spawnChance: 30.0
        burnsInSunlight: false
        aggressivenessDay: aggressive
        aggressivenessNight: aggressive
        reward: 0.0
        lootMultiplier: 1
        lightLevelMin: 0
        lightLevelMax: 15
        heightMin: 0
        heightMax: 127
        drops:
        - '272:0:1:1:10'
        - '299:0:1:1:10'
        - '298:0:1:1:10'
        - '300:0:1:1:10'
        - '301:0:1:1:10'
        - '258:0:1:1:10'
        - '257:0:1:1:10'
        - '263:0:1:5:10'
        - '350:0:1:2:30'
    
        spawnOnlyOn:
        spawnNotOn:
        - GLASS
        - STEP
        - WOOD_STAIRS
        - COBBLESTONE_STAIRS
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  22. Offline

    Darcion

    first reloaded then restartet but on post above your question @ReKLiS has the same issue
     
  23. Offline

    Pasukaru

    @Darcion
    Okay, I just realized that it doesn't generate the default file for me either, I'll fix it in a minute.

    [Edit]
    The default.yml file was missing in the jar, for whatever reason.

    Download again and it should be fine.
    (I didn't increment the version, because nothing of the plugin itself has changed)
     
  24. Offline

    Darcion

    after reload (/difficulty reload) with your new jar it crashed my server and started it new with a rollback...


    and atm it istn working

    2011-07-19 18:14:54 [WARNING] [CustomDifficulty] WorldGuard's region manager wasn't found for world free2fly!

    i am on trying all things atm to get it to work (no changes all standards)

    and with /difficulty reload

    2011-07-19 18:18:29 [WARNING] [CustomDifficulty] Difficulty not found for world free2playV2

    but its a default.yml in that folder

    ps: du könntest auch noch mal bei mir auf dem server vorbei schauen free2play.nitrado.net und dich davon mal überzeugen, sobald ich die welt auf eine schwierigkeit setzte spawnt gar nichts mehr und in den regionen tut sich nix, es nimmt die von world = none

    Code:
    
    2011-07-19 18:30:15 [INFO] [CustomDifficulty] Reloading...
    
    2011-07-19 18:30:15 [INFO] [CustomDifficulty] Found the following 2 difficulties: boss, default.
    
    2011-07-19 18:30:15 [INFO] [CustomDifficulty] Will use WorldGuard-Regions!
    
    2011-07-19 18:30:15 [INFO] [CustomDifficulty] Spawning activated for world free2playV2
    
    2011-07-19 18:30:15 [INFO] [CustomDifficulty] Spawning activated for world free2playV2_nether
    
    2011-07-19 18:30:15 [INFO] [CustomDifficulty] Spawning activated for world free2fly
    
    2011-07-19 18:30:15 [INFO] [CustomDifficulty] Reloading done. (0.046s)
    
    2011-07-19 18:30:15 [WARNING] [CustomDifficulty] Difficulty not found for world free2playV2
    
    2011-07-19 18:30:15 [INFO] [CustomDifficulty] Spawning deactivated for world free2playV2
    
    2011-07-19 18:30:15 [WARNING] [CustomDifficulty] Difficulty not found for world free2playV2_nether
    
    2011-07-19 18:30:15 [INFO] [CustomDifficulty] Spawning deactivated for world free2playV2_nether
    
    2011-07-19 18:30:15 [WARNING] [CustomDifficulty] Difficulty not found for world free2fly
    
    2011-07-19 18:30:15 [INFO] [CustomDifficulty] Spawning deactivated for world free2fly
    
    
    edit:
    ok now i know what that issue means, i have to change from none to default and restart the server, i will test it


    edit2:

    seems that i got it worked on my local server


    edit3:

    ich werd bescheuert auf dem richtigen server geht es nicht... keine monster mehr..., genau die gleichen dateien doch mit dem unterschied funktioniert nicht, es spawnen keine monster und es sind auch keine fehler im log
     
  25. Offline

    Pasukaru

    @Darcion
    Vielleicht ein anderes plugin, das quer schießt?
    Installier mal alle plugins, die du auf deinem live server hast, auf deinen localen server und probier mal obs da dann auch auch nich geht. (am besten mit den gleichen versionen)
     
  26. Offline

    Dimochka

    CustomDifficulty 4.1.0 seems to cause a lot of
    Code:
    17:19:18 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    on console.
    Also stopping server takes longer than without CustomDifficulty. Dunno about reasons or how to profile the plugin, but still the problem goes away when I remove it.
     
  27. Offline

    ReKLiS

    can you put more details on what each setting in the config.yml file actually does? I want to add more monsters to spawn in my world since monsters don't seem to spawn too frequently.
     
  28. Offline

    Darcion

    hab ich schon getan und immernoch das gleiche, leider kann ich nicht alle plugins zum laufen bekommen da einige mysql haben wollen und ich keinen server installiert habe, das wäre dann iconomy logblock mcmmo (was aber auch flatfile geht) jail lwc (geht auch flatfile) und jobs
     
  29. Offline

    Pasukaru

    @Dimochka
    You can try to reduce the mob limits, and/or increase spawnInterval/aggressivenessInterval.

    @ReKLiS
    I'm working on the wiki at the moment, I'll add a link to it on the first post.

    [Edit]
    @Darcion
    Hm, auf welchem OS läuft dein live server / localer server?

    Auf linux und Win7 läuft bei mir alles problemlos.

    [Edit2]
    Link to the Wiki added to first post.
     
  30. Offline

    Darcion

    auf win7 64bit lokal und auf linux bei nitrado.
     
  31. Offline

    Pasukaru

    @Darcion
    Dann fällt mir wirklich nix mehr ein, was noch probleme verursachen könnte...

    Benutzt du '/difficulty set xyz' um es für die welt zu setzen, oder änderst du einfach die file?
    Sollte zwar beides funktionieren, aber beim command wird überprüft, ob die difficulty auch existiert.
     

Share This Page