change the despawn delay/ticks for an Item Entity

Discussion in 'Archived: Plugin Requests' started by Mbros, Aug 12, 2014.

  1. Offline

    Mbros

    Plugin category: items

    Suggested name: Item Despawn Count

    What I want: I want a quick little plugin that lets you set the time items on the ground despawn. So basically you can set it to a minute, hour, or even a few seconds.

    Ideas for commands: something real simple

    Ideas for permissions: not sure

    When I'd like it by: If anyone can do this asap that would be great I dont think it will be too hard, I just dont know how to do it. Thank you in advance :)
     
  2. Offline

    Mbros

    I was told that this was easy to do, is there anyone out there willing to help me with this? I would really appreciate it
     
  3. Offline

    15987632

  4. Offline

    Mbros

    15987632 thanks for that, but the plugin did not work for me :/ do you know of anyother, ive been looking cant find one
     
  5. Online

    timtower Administrator Administrator Moderator

    Could you say why it didn't work for you?
     
  6. Offline

    Mbros

    timtower im not entirely sure, im running 1.7.9 maybe that could been the reason, the plugin was made in 2013 so maybe it doesnt work for it.
     
  7. Online

    timtower Administrator Administrator Moderator

    Outdated doesn't mean broken till proven otherwise.
    If it is broken then it is giving errors. Please try the plugin, if not working please post your server log in http://pastebin.com or similar
     
  8. Offline

    Mbros

    timtower i get an ERROR Cannot load plugins/DropTime/config.yml
     
  9. Online

    timtower Administrator Administrator Moderator

    Mbros Please post your full server log, can't tell what is wrong by just looking at that line
     
  10. Offline

    Mbros

    timtower 15.08 00:44:45[Server] Startup Done (2.579s)! For help, type "help" or "?"
    15.08 00:44:44[Server]INFO ^ 15.08 00:44:44[Server]INFO " 15.08 00:44:44[Server]INFO in "<reader>", line 5, column 40: 15.08 00:44:44[Server]INFO could not found expected ':' 15.08 00:44:44[Server]INFO ^ 15.08 00:44:44[Server]INFO "dispenserrefill.general.dispenser" 15.08 00:44:44[Server]INFO in "<reader>", line 5, column 5: 15.08 00:44:44[Server]WARN Server permissions file permissions.yml is not valid YAML: while scanning a simple key 15.08 00:44:44[Server]INFO Finished loading DropTime v0.1 15.08 00:44:44[Server]INFO at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:182) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:282) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at net.minecraft.server.v1_7_R3.MinecraftServer.g(MinecraftServer.java:326) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at net.minecraft.server.v1_7_R3.MinecraftServer.n(MinecraftServer.java:352) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:389) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:455) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at com.nuclearw.droptime.DropTime.onEnable(DropTime.java:18) [DropTime.jar:?] 15.08 00:44:44[Server]INFO at com.nuclearw.droptime.Config.load(Config.java:13) [DropTime.jar:?] 15.08 00:44:44[Server]INFO at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:157) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:183) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:180) [craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:169) ~[craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:226) ~[craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:59) ~[craftbukkit-devBuild3098.jar:git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks] 15.08 00:44:44[Server]INFO org.bukkit.configuration.InvalidConfigurationException: Top level is not a Map. 15.08 00:44:44 [Server] ERROR Cannot load plugins/DropTime/config.yml15.08 00:44:44[Server]INFO Enabling DropTime v0.1 15.08 00:44:44[Server]INFO Enabling DispenserRefill v1.1.0-A4 15.08 00:44:44[Server]INFO 0 regions loaded for 'CaptureTheBlocks_the_end' 15.08 00:44:44[Server]INFO 0 regions loaded for 'CaptureTheBlocks_nether' 15.08 00:44:44[Server]INFO 41 regions loaded for 'CaptureTheBlocks' 15.08 00:44:44[Server]INFO Loaded configuration for world 'CaptureTheBlocks_the_end' 15.08 00:44:44[Server]INFO (CaptureTheBlocks_the_end) Fire spread is UNRESTRICTED. 15.08 00:44:44[Server]INFO (CaptureTheBlocks_the_end) Lava fire is blocked. 15.08 00:44:44[Server]INFO (CaptureTheBlocks_the_end) Lighters are PERMITTED. 15.08 00:44:44[Server]INFO (CaptureTheBlocks_the_end) TNT ignition is PERMITTED. 15.08 00:44:44[Server]INFO Loaded configuration for world 'CaptureTheBlocks_nether' 15.08 00:44:44[Server]INFO (CaptureTheBlocks_nether) Fire spread is UNRESTRICTED. 15.08 00:44:44[Server]INFO (CaptureTheBlocks_nether) Lava fire is blocked. 15.08 00:44:44[Server]INFO (CaptureTheBlocks_nether) Lighters are PERMITTED. 15.08 00:44:44[Server]INFO (CaptureTheBlocks_nether) TNT ignition is PERMITTED. 15.08 00:44:44[Server]INFO Loaded configuration for world 'CaptureTheBlocks' 15.08 00:44:44[Server]INFO (CaptureTheBlocks) Fire spread is UNRESTRICTED. 15.08 00:44:44[Server]INFO (CaptureTheBlocks) Lava fire is blocked. 15.08 00:44:44[Server]INFO (CaptureTheBlocks) Lighters are PERMITTED. 15.08 00:44:44[Server]INFO (CaptureTheBlocks) TNT ignition is PERMITTED. 15.08 00:44:44[Server]INFO Enabling WorldGuard v5.9 15.08 00:44:44[Server]INFO WEPIF: Using the Bukkit Permissions API. 15.08 00:44:44[Server]INFO Enabling WorldEdit v5.6.3 15.08 00:44:44[Server]INFO Preparing start region for level 2 (Seed: 4981790191098108619) 15.08 00:44:43[Server]INFO ----- ------------------- ----- 15.08 00:44:43[Server]INFO If you would like to disable this warning, simply set 'suggest-channels' to false in bukkit.yml. 15.08 00:44:43[Server]INFO With that set, you will be told whenever a new version is available for download, so that you can always keep up to date and secure with the latest fixes. 15.08 00:44:43[Server]INFO If you would like to be kept informed about new Development Build releases, it is recommended that you change 'preferred-channel' in your bukkit.yml to 'dev'. 15.08 00:44:43[Server]INFO It appears that you're running a Development Build, when you've specified in bukkit.yml that you prefer to run Recommended Builds. 15.08 00:44:43[Server]INFO ----- Bukkit Auto Updater ----- 15.08 00:44:43[Server]INFO Preparing start region for level 1 (Seed: 4981790191098108619) 15.08 00:44:43[Server]INFO Preparing start region for level 0 (Seed: -9033285547890040301) 15.08 00:44:43[Server]INFO Preparing level "CaptureTheBlocks" 15.08 00:44:42[Server]INFO Loading DropTime v0.1 15.08 00:44:42[Server]INFO Loading DispenserRefill v1.1.0-A4 15.08 00:44:42[Server]INFO Loading WorldGuard v5.9 15.08 00:44:42[Server]INFO Loading WorldEdit v5.6.3 15.08 00:44:42[Server]INFO This server is running CraftBukkit version git-Bukkit-1.7.9-R0.2-11-g3fd9db2-b3098jnks (MC: 1.7.9) (Implementing API version 1.7.9-R0.3-SNAPSHOT) 15.08 00:44:42[Server]INFO Starting Minecraft server on 162.244.167.81:65506 15.08 00:44:42[Server]INFO Generating keypair 15.08 00:44:42[Server]INFO Default game type: SURVIVAL 15.08 00:44:42[Server]INFO Loading properties 15.08 00:44:42[Server]INFO Starting minecraft server version 1.7.9 15.08 00:44:34[Server]INFO Loading libraries, please wait... 15.08 00:44:33[Multicraft] Loaded config for "Default" 15.08 00:44:33[Multicraft] Starting server! 15.08 00:44:33[Multicraft] Loading server pro
     
  11. Online

    timtower Administrator Administrator Moderator

    Mbros Please edit that post so it will contain a link to http://pastebin.com or similar with your log. This is unreadable for me.
     
  12. Offline

    Mbros

  13. Online

    timtower Administrator Administrator Moderator

    Mbros Please post your config, the error says that the config is wrong.
     
  14. Offline

    Mbros

    timtower
    # Number of seconds a player's dropped items should remain
    persist-seconds:30
     
  15. Online

    timtower Administrator Administrator Moderator

    Mbros Try this config:
    Code:
    persist-seconds: 30
     
  16. Offline

    Mbros

    timtower It still does not work. I no longer get the error for config but does not work
     
  17. Online

    timtower Administrator Administrator Moderator

    Then I don't know it either. How are you testing it? Source looks fine to me.
     
  18. Offline

    Mbros

    timtower I am dropping items and waiting 30 seconds but they take the full 5, and also killing the player in case it needs the player dead to work but still takes 5mins
     
  19. Online

    timtower Administrator Administrator Moderator

    Mbros Then I can't help you further with this.
     
  20. Offline

    Mbros

    timtower thank you for trying :) and can I ask how long have you been programming?
     
  21. Online

    timtower Administrator Administrator Moderator

    Mbros Around 2-3 years I think. Further conversations about my programming stuff on my profile page please, not the PM. profile page.
     
  22. Offline

    danieltabrizian

    i can do thiis its so easy timtower why did u even take the time to go on bukkit lookup the plugin its like 1 event and i use a method in loads of my personal plugins for other servers so i will do this after i had lunch.
     
  23. Online

    timtower Administrator Administrator Moderator

    danieltabrizian I didn't lookup the plugin. And I have nothing better to do anyways
     

Share This Page