MobHunting

MobHunting

114k Downloads

FactionUUID- Mob Hunting Not working

instantout opened this issue · 4 comments

commented

[14:19:07] [Server thread/INFO]: [MobHunting] [Debug] ======================== New kill ========================== [14:19:07] [Server thread/INFO]: [MobHunting] [Debug] Instantout killed a Skeleton (Minecraft)@(World:-1,64,781) [14:19:07] [Server thread/INFO]: [MobHunting] [Debug] KillAllowed: Mob killed by Instantout was allowed by WorldGuard [14:19:07] [Server thread/INFO]: [MobHunting] [Debug] player is in home faction / safe zone: [14:19:07] [Server thread/INFO]: [MobHunting] [Debug] KillBlocked: Instantout is hiding in Factions SafeZone [14:19:07] [Server thread/INFO]: [MobHunting] [Debug] Removing naturally dropped items [14:19:07] [Server thread/INFO]: [MobHunting] [Debug] Removing naturally dropped XP [14:19:07] [Server thread/INFO]: [MobHunting] [Debug] ======================= kill ended (7)======================

This happens when I'm in "Wilderness" and thinks i'm in a "safeZone" also I'm not in a Faction.
This also happens outside the WorldGuard regions.
also FactionsUUID Interrogation is on.
and This is the Faction plugin i use.
FactionsUUID Link - Github
Version you ask?
You are running Factions v1.6.9.5-U0.4.3-b171
This server is running 'MobHunting V6.8.3'.
This server is running CraftBukkit version git-Spigot-e5b1b5d-1ec1b05 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)

commented

Please test this snapshot
https://fractal.lindegaard.one:8181/job/MobHunting/891/
and let me know what you think

commented

Thank you, I have downloaded Build 171 and will start testing, to be able to reproduce and then fix the problem.

commented

I have limited knowledge of Factions. So I think we need to agree on how it should work, before I implement changes.

  1. If player is in Wilderness - he gets a reward
  2. If Player is in WarZone - he gets a reward
  3. If player is in a SafeZone - then I need to do aditional tests
    3.1 then check zone flags. (Im not sure if player always is protected agains damage or not)
    3.1.1 ) If Zone is "Peaceful" - no reward ?
    3.1.2) else give a reward

Is there other flags I should take into account?

commented
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] Instantout killed a Zombie (Minecraft)@(World:9,16,460)
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] KillAllowed: Mob killed by Instantout was allowed by WorldGuard
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] Basic Prize=$0.45 for killing a Zombie
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] Checking if player is grinding within a range of 15.0 blocks
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] Last Kill Area Center was null. DampenedKills reset to 0
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] RankMultiplier Key=mobhunting.multiplier.op Value=0 Player is OP
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] Multiplier: Rank = 0.0
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] Multiplier: Difficulty = 0.25
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] Killstreak=1, level=0, multiplier=1.0
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] Reward rounded to 0.0
[09:43:56] [Server thread/INFO]: [default]
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] RecordAchievement: huntbegins achieved.
[09:43:56] [Server thread/INFO]: [test]
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] RecordAchievement: fancypants achieved.
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] Command to be run:give Instantout gold_ingot 1
[09:43:56] [Server thread/INFO]: CONSOLE issued server command: /give Instantout gold_ingot 1
[09:43:56] [Server thread/INFO]: Giving 1 of gold ingot to Instantout.
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] RecordAchievement: hunting-level1-zombie has 1 kills
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] RecordKill: Instantout killed a Zombie (Minecraft) Cash=$0
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] Description to be send:¢¢¢ You killed a Zombie
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] The money reward was 0 or less than 'minimum_reward: Instantout'  (Bonuses=0.01)
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] The command did not run because random number (0.18416680093591375) was bigger than chance (0.05)
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] Did not drop a head: random(0.31745647425598456)>chance(0.01)
[09:43:56] [Server thread/INFO]: [MobHunting] [Debug] ======================= kill ended (37)=====================

=====================================================================================================================================================================================

[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] ======================== New kill ==========================
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] Instantout killed a Zombie (Minecraft)@(World:1,64,778)
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] KillAllowed: Mob killed by Instantout was allowed by WorldGuard
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] Basic Prize=$0.49 for killing a Zombie
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] Checking if player is grinding within a range of 15.0 blocks
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] DampenedKills=4
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] RankMultiplier Key=mobhunting.multiplier.op Value=0 Player is OP
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] Multiplier: Rank = 0.0
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] Multiplier: Difficulty = 0.25
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] Killstreak=1, level=0, multiplier=1.0
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] Reward rounded to 0.0
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] RecordAchievement: hunting-level1-zombie has 3 kills
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] RecordKill: Instantout killed a Zombie (Minecraft) Cash=$0
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] Description to be send:¢¢¢ You killed a Zombie
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] The money reward was 0 or less than 'minimum_reward: Instantout'  (Bonuses=0.01)
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] The command did not run because random number (0.40554671454564006) was bigger than chance (0.05)
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] Did not drop a head: random(0.7036492535098)>chance(0.01)
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] ======================= kill ended (37)=====================
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] Refreshed 0 leaderboards.
[09:47:32] [Server thread/INFO]: [MobHunting] [Debug] Refreshed 1 ranks.`

So I tested it inside the World Guard Region (First Kill)
and for the 2nd Kill I Did it outside in the same place.
there was a Problem. The mobs Didn't Drop The "Bag of Gold"
or Gave any money to the player.
I don't have "Bag of Gold Plugin" but i know that Bag of gold drops.
Does it not work with small Digits?

Edit: ok so,
`    rank_multiplier:
      mobhunting:
        multiplier:
          op: '0'
          donator: '0.25'
          staff: '0.10'
          guest: '0.05'
          guardian: '1.02'

this is a config i Did, This explains alot lol. Ok Everything works fine now.