AutoConsoleCommand documentation page
AutoConsoleCommand executes console commands defined at config.
It has 2 modes.
Mode 1:
Broadcast a list of commands at a defined time
Mode 2:
Broadcast a list of commands at a defined interval
Config values: (config.yml)
consolecommand: timemode: enabled: true #enable command executing at a defined time times: {} #list of times at which commands will be executed and commands for them (see example at the end of page) intervalmode: enabled: true #enable command executing at a defined interval intervals: {} #list of intervals (in seconds) at which commands will be executed and commands for them (see example at the end of page)
timesmode example
timemode: enabled: true times: '14:31': - say time is 14:31 - wg reload - say kill all those mobs - butcher '00:00': - say time is 00:00 - say good night
intervalmode example
intervalmode: enabled: true intervals: '10': - say this message is broadcasted every 10 seconds '3600': - say removing drop - remove drop -1
A issue: When i put '00:00' on timeslist and same on timeslist list, the plugin always change to 00:00 without ''(quotes)!!
Any idea what can be?
---- Edit... i solved: The format is 0:00 and not 00:00@FabioZumbi12 It doesn't matter if the quotes are there or not.
But config format will be changed in next release because of some bug with parsing current config.
@Shevchikden
Sorry again but, now i haveing other issue, wen i start my server or reload the plugin, the lineis in timemode are chenged by {}??
Why??
My server is lateste version of Craftbukkit 1.6.2
@FabioZumbi12 Maybe you ruined the YAML markup. What's your config?
@Shevchikden
This is my config:
Running: git-Bukkit-1.6.2-R0.1-b2838jnks (MC: 1.6.2) Java Version: 1.7.0_25 Plugins (52): GroupManager, MoreSounds, RecipeBack, TreeAssist, AutoMessage, SQLibrary, OpenInv, JustAFK, Votifier, mcMMO, GAListener, NightAttack, LetItRain, PTweaks, WebOp, TagAPI, SimpleClans2, SignEdit, CoreProtect, TimedRanker, VipZero, Lockette, AutoSaveWorld, TrophyHeads, Essentials, Vault, dynmap, WhatIsIt, EssentialsChat, EssentialsXMPP, WorldEdit, EssentialsProtect, EssentialsSpawn, Dynmap-Essentials, EssentialsGeoIP, redProtect, ScoreboardStats, EssentialsAntiBuild, WorldGuard, BKCommonLib, Herochat, ButtonWarp, MagicCarpet, Trade, RegionForSale, Sign Bank, ecoCreature, CraftBay, ChestShop, Dynmap-HeroChat, AuthMe, LimitedCreative
All plugins its runnin without errors and are updated to 1.6.2, but only your plugin reload the config file and delete this lines! I using the lateste dev version, but stills the problem!
This the initial config:
and after run server:
@FabioZumbi12 SOmething really gone wrong i just tested it and it failed. I will fix this today.
P.S. Your format is still not right
It should be
UPD: Fixed this in dev build.
@Shevchikden
Hooo man, very very thaks!! Its all ok now with 4.9.1!! My players are happy with xp rain again =D ( i cannot stay on console to do this)
I dont tested the backup function again because i disabled. The plugin are not making the selected number of backups from config(stay making 15 copies) and i cant take the risk of my virtual hd to be full... You have a position about this?...its ok...or not...?
Man, AWESOME PLUGIN, congrats!!
@FabioZumbi12 Maybe you misconfigured AutoBackup, for example putting extfolders paths with / at the end may cause this.
(Foe example if you put /home/username/backups/ as ther backup folder it will still do backups but won't remove previous, because path should be /home/username/backups)
awesome update! you are my hero.
[22:22:43 WARN]: [AutoSaveWorld] Task #4918 for AutoSaveWorld v4.14.2 generated an exception
org.bukkit.command.CommandException: Unhandled exception executing command 'ram' in plugin RAMManager v1.1
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[mcserver.jar:git-Spigot-f950f8e-58bff62]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[mcserver.jar:git-Spigot-f950f8e-58bff62]
at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand(CraftServer.java:649) ~[mcserver.jar:git-Spigot-f950f8e-58bff62]
at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:581) ~[mcserver.jar:git-Spigot-f950f8e-58bff62]
at autosaveworld.utils.CommandUtils.dispatchCommandAsConsole(CommandUtils.java:31) ~[?:?]
at autosaveworld.threads.consolecommand.AutoConsoleCommandThread$1.run(AutoConsoleCommandThread.java:84) ~[?:?]
at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[mcserver.jar:git-Spigot-f950f8e-58bff62]
at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353) [mcserver.jar:git-Spigot-f950f8e-58bff62]
at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:730) [mcserver.jar:git-Spigot-f950f8e-58bff62]
at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [mcserver.jar:git-Spigot-f950f8e-58bff62]
at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:675) [mcserver.jar:git-Spigot-f950f8e-58bff62]
at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:574) [mcserver.jar:git-Spigot-f950f8e-58bff62]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_11_R1.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
at ystrike.ram.PluginCommand.onCommand(PluginCommand.java:15) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[mcserver.jar:git-Spigot-f950f8e-58bff62]
... 12 more
I am having a lot of trouble with this part.
when I type 10 between {} and reload it resets
when I type '10': it still resets
plz help
many thanks