item on join and respawn

Discussion in 'Plugin Requests' started by bardiamgtgc, Jun 2, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    bardiamgtgc

    Minecraft version: 1.8.8

    Suggested name: itemanew

    What I want: i need a plugin that gives a player 3 items in a certain world in their first join and when they die
    there are many plugin that do the work like firstjoinplus and respawn command but they run in all world and cant be seperated with perworldplugins for some reason
    so this plugin needs a config file for setting worlds and items it should work on
    When I'd like it by: as soon as possible
     
  2. Offline

    Legendary_zotar

    Im on it @bardiamgtgc

    The plugin is done, Click here for the link (Outdated version, Scroll down through reply for update 1.1)

    How to use:
    Join Items: Whenever a player joins for the first time he gets these items.
    Respawn Items: Whenever a player respawns he gets these items.

    #IMPORTANT: ONLY PLAYERS WITH THE PERMISSION "ItemANew" CAN USE THE COMMANDS
    Use "/ItemAnew AddJoinItem <WorldName/~>" to add the item in your hand to that world's Join Items
    Use "/ItemANew AddRespawnItem <WorldName/~>" to add the item in your hand to that world's Respawn Items

    You can view all the worlds with respawn/join items using "/ItemANew Manager" then select a world (Left click to view its Join Items, or Right click to view its respawn items), Any item you click whilst in a world's "Join Items/Respawn Items" will be removed from that world's items

    Notes:-
    You can replace /ItemANew with /IAN
    You can use ~ as a WorldName to fill it with the world your currently in
    As said before only Players with the permission "ItemANew" can use the commands
    You can use different worlds like "Survival" or "Factions" aswell as different Dimension worlds "Survival_nether" or "Factions_nether"

    i hope i explained well enough, Just @ me if you have any questions

    Update 1.1 (Click here for the link):
    New Command: Use "ItemANew Reset <WorldName/~>" to reset the playerlist of that world, allowing players to get JoinItems again.

    Extra note: JoinItems are applied whenever a player enters the world, So either when the "Join the server into the world" or "Enter the world for the first time" like nether, You can use this feature as an achivement of some sort
     
    Last edited: Jun 3, 2020
  3. Offline

    bardiamgtgc

    thanks!

    @Legendary_zotar
    /ItemAnew AddJoinItem world
    /ItemANew AddRespawnItem world

    i did these but it doesnt seem to work should i put the world name in <>

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2020
  4. Offline

    Legendary_zotar

    @bardiamgtgc
    What error do you get? Your example should be working, can you check your console or does it send you a message in game?
    its working fine on my local server, Have you tried reloading/restarting your server after adding the plugin? and you do not need to put it between <> also world names are case sensitive, try replacing the worldname with ~ to use the current world you are in
    Here is an example (Must have perms btw)
    "/ian AddJoinItem world_nether" while holding Item in hand
     
    Last edited: Jun 3, 2020
  5. Offline

    bardiamgtgc

    @Legendary_zotar
    yes i added the plugin and restarted and i added all the stuff i can also check it in manager with /ian manager
    all stuff are there but it doesnt add it to the inventory

    also heres a picture of the plugin working
     

    Attached Files:

    Last edited by a moderator: Jun 3, 2020
  6. Offline

    Legendary_zotar

    @bardiamgtgc
    Did it work the first time? The plugin adds you to a config, so if you used it and got items the first time then removed the items, your still saved in the config, so it wont give you the "new items" since you already got the items before, try the RespawnItems to insure it works.

    Did you check if the config is being created? if so check for the config called PlayerFile.yml, open it up and see if it has anything in it, if so, try deleting it and saving then reload the server.

    READ BEFORE DOING ANYTHING:
    as per what was said above, I added a new command "/ItemANew Reset <World/~>" This will remove the list of all players who have joined the world, allowing them to get "FirstJoinItems" again
    Click here for the link of the updated plugin

    Extra note: JoinItems are applied whenever a player enters the world, So either when the "Join the server into the world" or "Enter the world for the first time" like nether, You can use this feature as an achivement of some sort

    Let me know of any updates
     
    Last edited: Jun 3, 2020
  7. Offline

    bardiamgtgc

    @Legendary_zotar
    config files have been created and i can see that they arent empty
    i will try the new file now
    edit:i just tested the new file and i added everything and i can see them in /ian manager but still not working no problem with world name
     
    Last edited: Jun 3, 2020
  8. Offline

    Legendary_zotar

    @bardiamgtgc
    delete the PlayerFile and try again, try using the RespawnItems to test
     
  9. Offline

    bardiamgtgc

  10. Offline

    Legendary_zotar

    @bardiamgtgc
    What Multi-World plugin to you use?
    And for perworldplugins, do you have it in 1 world or ALL (it should be used in all)
     
  11. Offline

    bardiamgtgc

  12. Offline

    Legendary_zotar

    @bardiamgtgc
    I ran it on my world and noticed a few things:
    1- Ofcourse with PerWorldPlugins, ItemANew it should be set to all worlds.
    2- Whenever reloading the server (1.8.8), PerWorldPlugins (1.3.0) would crash and disable all plugins (I dont think PerWorldPlugins officially supports 1.8.8)
    3- Everything seems to work just fine with PerWorldPlugins

    Possible fix : Stop and start the server, instead of using /Restart or /Reload (if you are doing that)
    Conclusion: You must have to stop and start the server whenever you want to restart.


    If it still persists try: Stop the server remove PerWorldPlugins then try.
    Conclusion: PerWorldPlugins doesn't support 1.8.8 and its affecting my plugin, and may affect others?

    And if you can check your console/log for any errors when trying the above and posting it on https://pastebin.com/ the world help out alot!


    Hope this helps!
     
  13. Offline

    bardiamgtgc

    @Legendary_zotar
    i just moved pwp to another directory and restarted the server and still nothing
     
  14. Offline

    timtower Administrator Administrator Moderator

    Then please post your logs.
     
  15. Offline

    bardiamgtgc

  16. Offline

    Legendary_zotar

    @bardiamgtgc
    From what i can see, they're are just a few plugins that aren't getting loading when starting the server (Might wanna solve those), They may cause the issue, But likely not.

    It must be conflicting with one of your other plugins.

    Im gonna upload a new version at the end of this message, Try it after this:
    Try Joining the server/World and checking the logs, if there is any "Errors" Please send me the log (use sourcebin again), Also this is what error messages look like:
    [​IMG]
    [​IMG]

    [​IMG]

    If not, try this version:
    https://www.dropbox.com/s/i9i54zqagg01wmi/ItemANew FA1.jar?dl=0
    And let me know if it works, Im sorry for the inconvenience
     
    Last edited: Jun 8, 2020
  17. Offline

    bardiamgtgc

    @Legendary_zotar
    non working plugins where alot more before i sent the logs lol
    i just joined a world and server different worlds and no error
    https://sourceb.in/59d173abee
    and with the new plugin
    https://sourceb.in/229b4517aa
    for some reason when i die or kill myself the kitpvp plugin gives an error
    now i limited kitpvp with perworldplugin and that issue is gone in its own world and other worlds
    but now when i join kitpvp world and select a kit (im guessing you havent worked with that plugins api https://www.spigotmc.org/resources/...gui-levels-kill-streaks-abilities-more.27107/ but this is the plugin)
    i get this error
    https://sourceb.in/397c0ed240
     
  18. Offline

    Legendary_zotar

    @bardiamgtgc
    Does the kitpvp one still work despite the error? (Also you should contact the developer of that plugin)
    it seems its conflicting with PerWorldPlugins.
    Also you should either try to fix/contact developers or remove non working plugins.

    Also my plugin seems to also be conflicting with PerWorldPlugins try this version:
    https://www.dropbox.com/s/23l7z9knhwmaele/ItemANew FA2.jar?dl=0

    Let me know if you find any errors again
     
  19. Offline

    bardiamgtgc

    @Legendary_zotar
    yes it works without any problem
    still nothing with new plugin no logs or anything
     
  20. Offline

    Legendary_zotar

    @bardiamgtgc
    Can you pastebin ItemANew's Configs (PlayerFile.yml, WorldItemsFile.yml)
     
  21. Offline

    bardiamgtgc

    @Legendary_zotar sorry i was away for some time i had no time for anything except work rough week
    ok anyways
    heres the WorldItemsFile.yml
    https://pastebin.com/DitJx34i
    other one is empty even when i join that world its still empty
     
  22. Offline

    Legendary_zotar

    I believe thats whats causing the problem, It could be that another plugin is messing with play joining or when a player changes a world, Theres only so much i can do without knowing what plugin might be doing that
     
  23. Offline

    bardiamgtgc

    @Legendary_zotar
    you can see plugins that get activated in log files but i can give you a full list if you want me to
     
  24. Offline

    Legendary_zotar

    @bardiamgtgc
    Well it depends on how each plugins work, but if you list me your plugins and ill see what i can find out
    Also by any chance are you using Bungee?
     
  25. Offline

    bardiamgtgc

    @Legendary_zotar
    no we dont use bungecord
    heres a list of plugins:
    adminessentials, antixray, betternick, bettershops, broadcast, chatcontrol, chatmessenger, commandnpc, citizens, coreprotect, custonbanplugin, digfordollars, effects, hawk, holographicdisplay, hub, holographic scoreboard, iconomy. instaspawn, itemanew, kitpvp, lagmeter, lobbys, luckperms, masssayreborn, multiverse, mute, mutechat, nodrop, noplugins, openinv, personaunshooter, perworldinventory, perworldplugins, placeholderapi, protocollib, screentext, spigotping, staffchat, sethome, supervanish, trading, trollcommandsplusplus, veinminer, votifier, viaversion, worldedit, worldguard, mcgroovy, message,
     
  26. Offline

    timtower Administrator Administrator Moderator

    Locked
    Protocol hacks are not supported by Bukkit
     
    Xp10d3 and Legendary_zotar like this.
Thread Status:
Not open for further replies.

Share This Page