Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Using /give command #16

Open
Seceroth opened this issue Dec 19, 2021 · 3 comments
Open

[BUG] Using /give command #16

Seceroth opened this issue Dec 19, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@Seceroth
Copy link

Seceroth commented Dec 19, 2021

Describe the bug
I'm using the Give command to give some items during first join. Using this command:
"/give ${player} minecraft:golden_hoe 1"
Expected result would be that the player receives 1 Golden hoe. Actual result is that the player receives 2 Golden hoes.

To Reproduce
Steps to reproduce the behavior:

  1. Use this for first_join:
"first_join": {
    "actions": [
        "§9Welcome to Vanilla",
        "/give ${player} minecraft:golden_hoe 1"
    ],
    "broadcast_to_everyone": false,
    "pick_message_randomly": false
  },
  1. Join server for first time
  2. Receive 2 Golden hoes

Expected behaviour
First time the player joins, exactly one Golden hoe should be given tot the player.

Versions:
Player Events 2.2.2
Minecraft 1.18.1

@Seceroth Seceroth added the bug Something isn't working label Dec 19, 2021
@IotaBread
Copy link
Owner

I'll look into it

@PortableGames
Copy link

PortableGames commented Jan 2, 2022

PE 2.2.2, MC 1.18.1 FAPI 0.44 SETTINGS:

"first_join": {
"actions": [
"§8§l[§c§li§8§l] §eVítej na serveru §f${player}",
"§8■ §7Nezapomínejte na naše pravidla:",
"§e 1) §7Buďte uctiví",
"§e 2) §7Chovejte se eticky",
"§e 3) §7Používejte zdravý rozum",
"§8Tímto připomínáme všem hráčům, že se jedná o privátní snapshot server. Na tomto serveru neudělujeme varování ani dočasné tresty, pokud nám způsobíte problémy (jakýmkoli způsobem), budete ze serveru trvale vykázáni!",

"/give ${player} stone_sword 1",
"/give ${player} stone_pickaxe 1",
"/give ${player} stone_axe 1",
"/give ${player} bread 32",
"/give ${player} spyglass 1",
"/give ${player} dark_oak_boat 1"
],
"broadcast_to_everyone": true

},

ALL WORKS FINE ;)
ip: mc.planetcraft.cz

@IotaBread
Copy link
Owner

I haven't looked into it yet, and I won't be able to for a few more days. Without looking at your full config, I'm guessing you have the give command in the actions for the first_join and join events, which IIRC are fired at the same time when joining for the first time. This is obviously not ideal, so I'd still have to change that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants