MobHunting

MobHunting

114k Downloads

unknown item minecraft:

Darcion opened this issue · 10 comments

commented

hi,

i get an error when command should drop items and i cannot find the error.

the console tells me:
unkown item 'minecraft:'
...d_Darcion Iron_ingot 1<--[Here]

commented

Let me see the complete section for the mob in your config.yml

commented

its your default configuration, nothing changed. Special Kill gave me a gold_ingot but the iron_ingots on normal kill does not work. btw. i got the creepercide Kill an saw in the console "[Test]", can you change that?

commented

to get things faster in dropchance i modified it to 100% and some different items/IDs here is my config and my debug log. if you need more, tell me.

### Sheep settings

sheep:
enabled: true
message: You killed a §1{killed}
money:
amount: '0'
chance: 1.0
commands:
- chance: '1.00'
cmd: give {player} Iron_ingot 1
- chance: '1.00'
cmd: give {player} 265 1
- chance: '1.00'
cmd: give {player} 35 1
head:
drophead: true
value: '0'
chance: 0.05
message: §aThe §1{killed} §adropped a skull on the ground

[20:58:49] [Server thread/INFO]: old_Darcion issued server command: /mobhunt debug
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] ======================== New kill ==========================�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] old_Darcion killed a Sheep (Minecraft)@(world:-473,72,201)�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] KillAllowed: Mob killed by old_Darcion was allowed by WorldGuard�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Permission 'mobhunting.mobs.*' or 'mobhunting.mobs.SHEEP' not set, defaulting to True.�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Basic Prize=0 for killing a Sheep�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Checking if player is grinding within a range of 15.0 blocks�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Kill not within 15.0 blocks from previous kill. DampenedKills reset to 0�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Multiplier: �[0;34;1mSneaky! = 2.0�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] old_Darcion has no Rank Multiplier�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Multiplier: Difficulty = 0.75�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Killstreak=0, level=0, multiplier=1.0 �[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Reward rounded to 0.0�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] RecordAchievement: hunting-level1-sheep has 3 kills�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] RecordKill: old_Darcion killed a Sheep (Minecraft) Cash=0�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Description to be send:�[0;32;1mYou killed a �[0;34;22m�[0;34;1mSheep�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] The money reward was 0 or less than old_Darcion (Bonuses=0.01)�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Command to be run:give old_Darcion Iron_ingot 1�[m
[20:58:57] [Server thread/INFO]: Unknown item 'minecraft:'
[20:58:57] [Server thread/INFO]: ...d_Darcion Iron_ingot 1<--[HERE]
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Command to be run:give old_Darcion 265 1�[m
[20:58:57] [Server thread/INFO]: Unknown item 'minecraft:265'
[20:58:57] [Server thread/INFO]: ...d_Darcion 265 1<--[HERE]
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Command to be run:give old_Darcion 35 1�[m
[20:58:57] [Server thread/INFO]: Unknown item 'minecraft:35'
[20:58:57] [Server thread/INFO]: ...d_Darcion 35 1<--[HERE]
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] Did not drop a head: random(0.8639278631877385)>chance(0.05)�[m
[20:58:57] [Server thread/INFO]: �[0;33;22m[MobHunting]�[m[Debug] ======================= kill ended (37)=====================�[m

commented

Im not able to check all you configuratons (I dont have the time). So I need to see the section which you think causes the bug.

The creepercide does not print [test] in the console.https://github.com/Rocologo/MobHunting/blob/master/src/one/lindegaard/MobHunting/achievements/Creepercide.java

So it must be from something else. (And I dont think its my plugins, I always write the [pluginname] first.)

I need more information to help you. Which mob did you kill? Please enable debug (/mh debug) and then kill a mob and let me see the output in the console from just before you kill the mob until you get this error.

commented

You have misunderstood something. The give command has nothing to do with MobHunting. It's a server command and you should be able to run the command directly from your console.

  1. please check that you can run the command from the console. If not, mobhunting will never be able either

My guess is that your server does not know an iron ingot. Alt all. ? What server version are you using?

commented

You have misunderstood something. The give command has nothing to do with MobHunting. It's a server command and you should be able to run the command directly from your console.

1. please check that you can run the command from the console. If not, mobhunting will never be able either

My guess is that your server does not know an iron ingot. Alt all. ? What server version are you using?

i think you dont understand me. the give command works properly and i tried the command already via console and why dont you check the code for your special kills with gold_ingot? this had worked properly. i am on the newest spigot version. Btw. i told you i tried this with ID already and this has nothing to do with "iron_ingot".

grafik

commented

btw. i found your Bug. for me its iron_ingot and in your "standard" config its Iron_ingot. it seems that your plugin has problems with case sensetiv. Here you write gold_ingot, thats why the special Kills work ;)

update your config from Iron_ingot to iron_ingot and everything will work

commented

Aug i just Remember if you don't use Essentials you might need to change the give command. Standard minecraft give command does probably not know the iron_ingot. So you just change iron ingot to what ever you like

Is my assumption correct that you don't use Essentials ?

commented

Aug i just Remember if you don't use Essentials you might need to change the give command. Standard minecraft give command does probably not know the iron_ingot. So you just change iron ingot to what ever you like

Is my assumption correct that you don't use Essentials ?

correct, i dont use it but i tried ID numbers, same problem. Your plugin worked with your special kills here i got the gold_ingot.

commented

Well it's not a real bug, because I can not know what is supported on everyone server. But I have changed to lowercase characters in default config in 6.7.3. Thank you for the info.