MobHunting

MobHunting

114k Downloads

RandomBounty ?

SlimeDog opened this issue ยท 2 comments

commented

Spigot 1.15.2
MobHunting 7.5.0-b1024

Despite disabling bounties in configuration

bounties:
  enable_player_bounties: false
  enable_random_bounty: false

this appears in the console log

[17:38:16] [Server thread/INFO]: [BagOfGoldCore] Adding RandomBounty Player to BagOfGoldCore Database.

BagOfGold/bagofgoldcore.db does not contain player RandomBounty, but MobHunting/mobhunting.db does

sql> select * from mh_Players ;
UUID        NAME          PLAYER_ID   LEARNING_MODE  MUTE_MODE   TEXTURE     SIGNATURE 
----------  ------------  ----------  -------------  ----------  ----------  ----------
            RandomBounty  0           0              0                                 

and my reports show kills and bounties assigned to it

.width 10 20 20 8 8
	SELECT
		strftime('%Y-%m-%d',julianday((substr(d.ID,1,4) || '-01-01')) -1 +substr(d.ID,5,3)) date,
		p.name player,
		m.MOBTYPE mob,
		d.TOTAL_KILL kills,
		d.TOTAL_CASH rewards
	FROM	mh_Players p,
		mh_Daily d,
		mh_Mobs m
	WHERE	p.PLAYER_ID=d.PLAYER_ID
	AND	d.MOB_ID=m.MOB_ID
	AND	date = "${DATE}"
	ORDER BY
		date,
		player,
		mob
	;
date        player                mob                   kills     rewards 
----------  --------------------  --------------------  --------  --------
2020-06-23  RandomBounty          WitherSkeleton        5         250.0   
2020-06-23  RandomBounty          ZombiePigman          29        1460.0

Please explain.

commented

Understood, but RandomBounty should not receive any rewards. I have deleted the mobhunting.db entries. No new entries have been created.

commented

I create i player called "RandomBounty" with PLAYER_ID = 0 in mh_PlayerSettings which is used as owner of Bounties created randomly if this is enabled in MobHunting config.yml