elchilen0 / automessage Goto Github PK
View Code? Open in Web Editor NEWEasily schedule server wide broadcasts to players
Easily schedule server wide broadcasts to players
when i edit the texst with a / in it, it will give me a error that its a command:
regular:
enabled: true
interval: 45
expiry: -1
random: false
messages:
- 'to ignore players, use /ignore'
conzole wil say like: __ ⬆
this is wrong bla bla bla error
[18:30:39 INFO]: kevin issued server command: /am reload
[18:30:39 INFO]: --- --- --- ---
[18:30:39 INFO]: There was an error loading your configuration.
[18:30:39 INFO]: A detailed description of your error is shown below.
[18:30:39 INFO]: --- --- --- ---
[18:30:39 WARN]: org.bukkit.configuration.InvalidConfigurationException: while p
arsing a block mapping
in 'string', line 54, column 5:
enabled: true
^
expected , but found Scalar
in 'string', line 59, column 32:
- 'to ignore players, use '/ignore'
^[18:30:39 WARN]: at org.bukkit.configuration.file.YamlConfiguration.loadF
romString(YamlConfiguration.java:56)
[18:30:39 WARN]: at org.bukkit.configuration.file.FileConfiguration.load(
FileConfiguration.java:184)
[18:30:39 WARN]: at org.bukkit.configuration.file.FileConfiguration.load(
FileConfiguration.java:130)
[18:30:39 WARN]: at com.TeamNovus.AutoMessage.AutoMessage.loadConfig(Auto
Message.java:65)
[18:30:39 WARN]: at com.TeamNovus.AutoMessage.Commands.PluginCommands.onR
eloadCmd(PluginCommands.java:25)
[18:30:39 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
[18:30:39 WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown S
ource)
[18:30:39 WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unkno
wn Source)
[18:30:39 WARN]: at java.lang.reflect.Method.invoke(Unknown Source)
[18:30:39 WARN]: at com.TeamNovus.AutoMessage.Commands.Common.CommandMana
ger.execute(CommandManager.java:93)
[18:30:39 WARN]: at com.TeamNovus.AutoMessage.Commands.Common.BaseCommand
Executor.onCommand(BaseCommandExecutor.java:58)
[18:30:39 WARN]: at org.bukkit.command.PluginCommand.execute(PluginComman
d.java:44)
[18:30:39 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
mmandMap.java:141)
[18:30:39 WARN]: at org.bukkit.craftbukkit.v1_9_R1.CraftServer.dispatchCo
mmand(CraftServer.java:645)
[18:30:39 WARN]: at net.minecraft.server.v1_9_R1.PlayerConnection.handleC
ommand(PlayerConnection.java:1350)
[18:30:39 WARN]: at net.minecraft.server.v1_9_R1.PlayerConnection.a(Playe
rConnection.java:1185)
[18:30:39 WARN]: at net.minecraft.server.v1_9_R1.PacketPlayInChat.a(Packe
tPlayInChat.java:45)
[18:30:39 WARN]: at net.minecraft.server.v1_9_R1.PacketPlayInChat.a(Packe
tPlayInChat.java:1)
[18:30:39 WARN]: at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.
run(SourceFile:13)
[18:30:39 WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(U
nknown Source)
[18:30:39 WARN]: at java.util.concurrent.FutureTask.run(Unknown Source)
[18:30:39 WARN]: at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile
:45)
[18:30:39 WARN]: at net.minecraft.server.v1_9_R1.MinecraftServer.D(Minecr
aftServer.java:721)
[18:30:39 WARN]: at net.minecraft.server.v1_9_R1.DedicatedServer.D(Dedica
tedServer.java:400)
[18:30:39 WARN]: at net.minecraft.server.v1_9_R1.MinecraftServer.C(Minecr
aftServer.java:660)
[18:30:39 WARN]: at net.minecraft.server.v1_9_R1.MinecraftServer.run(Mine
craftServer.java:559)
[18:30:39 WARN]: at java.lang.Thread.run(Unknown Source)
[18:30:39 WARN]: Caused by: while parsing a block mapping
in 'string', line 54, column 5:
enabled: true
^
expected , but found Scalar
in 'string', line 59, column 32:
- 'to ignore players, use '/ignore'
^[18:30:39 WARN]: at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappin
gKey.produce(ParserImpl.java:570)
[18:30:39 WARN]: at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(Parser
Impl.java:158)
[18:30:39 WARN]: at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(Parse
rImpl.java:143)
[18:30:39 WARN]: at org.yaml.snakeyaml.composer.Composer.composeMappingNo
de(Composer.java:224)
[18:30:39 WARN]: at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
oser.java:155)
[18:30:39 WARN]: at org.yaml.snakeyaml.composer.Composer.composeMappingNo
de(Composer.java:229)
[18:30:39 WARN]: at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
oser.java:155)
[18:30:39 WARN]: at org.yaml.snakeyaml.composer.Composer.composeMappingNo
de(Composer.java:229)
[18:30:39 WARN]: at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
oser.java:155)
[18:30:39 WARN]: at org.yaml.snakeyaml.composer.Composer.composeDocument(
Composer.java:122)
[18:30:39 WARN]: at org.yaml.snakeyaml.composer.Composer.getSingleNode(Co
mposer.java:105)
[18:30:39 WARN]: at org.yaml.snakeyaml.constructor.BaseConstructor.getSin
gleData(BaseConstructor.java:120)
[18:30:39 WARN]: at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:450)[18:30:39 WARN]: at org.yaml.snakeyaml.Yaml.load(Yaml.java:369)
[18:30:39 WARN]: at org.bukkit.configuration.file.YamlConfiguration.loadF
romString(YamlConfiguration.java:54)
[18:30:39 WARN]: ... 26 more
[18:30:39 INFO]: [AutoMessage] Disabling AutoMessage v2.5.5
Hey, I try to set a new line with the hover event and at least in the "json" auto-messages it does not work. I tried "\n". I don't get errors in the server.log but when the message displays, it doesn't look like it has to be... v2.5.1
When I use %n in messages in my minecraft chat it will display an dashed sqaure with CR in it. Can you please solve this?
Double apostrophes are reported to not be working ( '' ) although told that it should be used instead of ( ' ) for apostrophes in broadcasts.
Long Automatic Messages, with multiple lines and spacings such as this one:
Will not display correctly on chat.
How ever, they will display correctly when they are set as a simple message.
The issue here is that they won't display well when they are suposed to have a "click to open page" function.
Hello, I can't use Æ Ø Å (Danish characters)... What can i do?
Look at it here https://gyazo.com/b1dfecd831aa74d935f84e4bfe7a5979
When I try to use %n in my config, the output simply becomes %n, no space.
I can't use normal spaces (spacebar lol) to create spaces in the beginning of a new line (\n, which works fine)
This spams regularly. I'm pretty sure it happens when certain messages are displayed:
https://gist.github.com/MithrandirCraft/066db34f722f16158329355de6b27bc2
Did you will to add feature for players be able to hide separate join, separate quit, separate death-PvE and separate death-PvP messages ?? (And maybe some customization and randomization for this )
No one plugin don't have this feature brought to idea! In HideStream players can only hide or only shown ALL of this messages. And no customization!
In DeathMessages no data storage. All players toggle is reset after reload.
it doesn't help negotiating or removing /not adding the permission nodes to my operators. AM constantly shows everything to the op's.
using essentials and groupmanager.
In version 2.4.0 every message longer than 128 signs is not recognized and will be questionmarked in the config. Could you increase the sign limit please?
Every time the server restarts or the AutoMessanger cfg is reloaded, the cfg restores itself back to default. I have tested my config using the YAML format tester, and it comes up clean.
This is the cfg:
message-lists:
regular:
enabled: true
interval: 120
expiry: -1
random: false
prefix: ' '
suffix: ' '
messages:
- '&1WyvernCraft Launch Giveaway!&6 The first 15 players to register on the website will receive &1Member rank free for one year! &6Check the forum post &1WyvernCraft Launch Sale for details.'
- '&6Want cool &4items and ranks&6?&1 Donate!&6 We have many cool donation packages. Click the link for more details:&1 http://wyverncraftforum.no-ip.org/pages/buycraft/'
- '&6Remember to &1VOTE&6 for the server to get money and to have a chance to win cool prizes! Click the link for the voting lists:&1 http://wyverncraftforum.no-ip.org/pages/vote/'
- '&6Register on the WyvernCraft forums for updates and info on events, sales, and more!&1 http://wyverncraftforum.no-ip.org/'
settings: {}
There doesn't appear to be any rhyme or reason for it behaving like this. I hope this can be fixed quickly.
Thank you for any assistance.
Hello there,
when ever i edit the config file i save it, then when i restart it goes back to default configuration. what am i doing wrong? and i believe im editing the right thing but i could be wrong:/ pls help
If i write
'{text:"Click me to open Google!",clickEvent:{action:open_url,value:"http://google.com"},color:blue}'
its one blue “Click me to open Google!”
What if i want red "[server]" in front of? Meaning add another json text which color set red?
How can I add?
hello my config file is saving, what can i do?
I have a group with the permission - automessage.receive.regular
and in my config I have a list of messages under title "regular" (no quotes)
with the permission, they receive it normal, everything works, take away the permission, they still get messages under the regular group. I even added the permission - -automessage.receive.regular and they still get the "regular" messages. All my other permissions work so I know my formatting is right. The other permissions seem to be working correct however.
Hello, prefixes and suffixes don't work. If I for example copy the sample config from here: http://dev.bukkit.org/bukkit-plugins/automessage/pages/configuration-guide/ and reload or restart the server, it just removes the two lines of prefix and suffix.
AutoMessages 2.5.1
spigot #1517
Just dropped into plugin folder.
Start server
2012-06-16 12:35:02 [INFO] [AutoMessage] Enabling AutoMessage v1.4
2012-06-16 12:35:02 [INFO] [AutoMessage] AutoMessage Enabled!
2012-06-16 12:35:02 [SEVERE] java.io.FileNotFoundException: plugins\AutoMessage\config.yml (The requested operation cannot be performed on a file with a user-mapped section open)
2012-06-16 12:35:02 [SEVERE] at java.io.FileOutputStream.open(Native Method)
2012-06-16 12:35:02 [SEVERE] at java.io.FileOutputStream.(Unknown Source)
2012-06-16 12:35:02 [SEVERE] at java.io.FileOutputStream.(Unknown Source)
2012-06-16 12:35:02 [SEVERE] at com.JnaniDev.AutoMessage.AutoMessage.removeHeader(AutoMessage.java:155)
2012-06-16 12:35:02 [SEVERE] at java.io.PrintWriter.(Unknown Source)
2012-06-16 12:35:02 [SEVERE] at com.JnaniDev.AutoMessage.AutoMessage.save(AutoMessage.java:172)
2012-06-16 12:35:02 [SEVERE] at com.JnaniDev.AutoMessage.AutoMessage.load(AutoMessage.java:237)
2012-06-16 12:35:02 [SEVERE] at com.JnaniDev.AutoMessage.AutoMessage.onEnable(AutoMessage.java:37)
2012-06-16 12:35:02 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
2012-06-16 12:35:02 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
2012-06-16 12:35:02 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
2012-06-16 12:35:02 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:256)
2012-06-16 12:35:02 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:238)
2012-06-16 12:35:02 [SEVERE] at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:381)
2012-06-16 12:35:02 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:368)
2012-06-16 12:35:02 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432)
2012-06-16 12:35:02 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:197)
2012-06-16 12:35:02 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
2012-06-16 12:35:02 [INFO] [AutoMessage] Config has been loaded!
How do I send an automatic control using the AutoMessage?
Example: /say Hello
It does not work.
For example - '{text:"Hover Here.",hoverEvent:{action:show_text,value:[{text:"&l&eThis whole output\n will all appear as normal text after the line break",color:blue}]}}'
This will output as this in chat:
{text:"Hover Here.",hoverEvent:{action:show_text,value:[{text:"&l&eThis whole output
will all appear as normal text after the line break",color:blue}]}}
Title says it all, people who are /opped can see the messages however normal players cannot.
Whenever message with \n at first or last place appears on chat (or with just whitespace characted between beggining/ending), every player receiving it will get his client crashed.
So i just updated AM 2.4.0 to 2.5.2 and tried to update my automessages separated from other chat entries by empty lines:
Before:
- ' %n&6 [INFO]%n&aTeamSpeak3: &ets.joriom.pl%n '
After
- ' /n&6 [INFO]\n&aTeamSpeak3: &ets.joriom.pl\n '
Removing first and last /n makes it work perfectly fine. It worked like a charm on older AM version, so its client fault but based on badly formated message.
EDIT:
The problem seems not to depend on \n place but rather line being whitespaces only.
Temporary Fix:
Sending formating code in place of whitespaces seems to achieve what I desire: being able to send empty line of text & not crashing client:
I'd really like a way to add JSON formatted messages to broadcasts. We use a lot of those on our server for fancy clickable messages.
I've tried to do this in my fork https://github.com/franga2000/AutoMessage but it crashes if the message in the config doesn't have all quotec escaped by a slash.
It's a problem with the Bukkit YAML parser getting confused by the double quotes in JSON.
Coul'd you please take a look at it? I can't find a good solution but I am kinda new to Java & Bukkit.
Rewrite the message entry in the config to allow for specific string formatters. This will allow messages like:
'%10s%5s', "---------------", "hello"
Дай плпгин
Hello, when i use the automessage command nothing happens. I've checked and double checked my configuration and even resorted to an online yml parser. I don't have any errors what so ever, it simply just doesn't output anything to console.
[02:53:09 INFO]: [Alerter]: º6[Alerter]: ºeºf[2] ºaFungreenfoxºf use a command: ºc/am reloadºf
02:53:09 WARN: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
02:53:09 WARN: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
02:53:09 WARN: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
02:53:09 WARN: at java.lang.reflect.Method.invoke(Unknown Source)
02:53:09 WARN: at com.TeamNovus.AutoMessage.Commands.Common.CommandManager.execute(CommandManager.java:93)
02:53:09 WARN: at com.TeamNovus.AutoMessage.Commands.Common.BaseCommandExecutor.onCommand(BaseCommandExecutor.java:58)
02:53:09 WARN: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
02:53:09 WARN: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180)
02:53:09 WARN: at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:726)
02:53:09 WARN: at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:999)
02:53:09 WARN: at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:830)
02:53:09 WARN: at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28)
02:53:09 WARN: at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:65)
02:53:09 WARN: at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:180)
02:53:09 WARN: at net.minecraft.server.v1_7_R3.ServerConnection.c(ServerConnection.java:81)
02:53:09 WARN: at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:720)
02:53:09 WARN: at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:283)
02:53:09 WARN: at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:583)
02:53:09 WARN: at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:489)
02:53:09 WARN: at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628)
02:53:09 WARN: Caused by: java.lang.NoSuchMethodError: com.TeamNovus.AutoMessage.AutoMessage.loadConfig()V
02:53:09 WARN: at com.TeamNovus.AutoMessage.Commands.PluginCommands.onReloadCmd(PluginCommands.java:25)
02:53:09 WARN: ... 20 more
[02:53:44 INFO]: GroupManager - INFO - Data files refreshed.
git-Spigot-1494 (MC: 1.7.9) (Implementing API version 1.7.9-R0.3-SNAPSHOT)
Trying to get AutoMessage to work.
But the config kept resseting to defaults, after I've configured it.
And now all the configurable parts has dissapeared. Se below.
AutoMessage Configuration File
Message Configuration:
Messages are handled in lists to allow for advanced customization!
Feel free to add color codes by using & in your messages!
To split a message onto multiple lines use the %n delimiter!
Lines starting with / will be run as a command!
To add single apostrophes into a message use ''.
For a complete tutorial go to http://dev.bukkit.org/server-mods/automessage.
If you are unfamiliar with YAML use the in-game commands: /am help
message-lists: {}
settings: {}
-INFO-There are # in front of line 1-12
This is all that is left, I've tryied deleting it, but it just creates the same over again.
What is going on?
Why prefixes / suffixes were removed? Because of the Json format? My messages uses the prefix/suffix as a spacer like you can see it in the necroposted issue (I did search it first) and it look more worse.
Since 1.9, the plugin stopped working because of a deprecated/dead method so they recommended SpecialSource to "fix" temporaily outdated plugins that allowed me to use it to 1.11.2. Why I was on this outdated version? Because of the prefix*suffix being removed, the plugin was useless for me so I kept that version 2.3.5 until forever. I don't even use Json so not worth for me.
Sadly I don't code Java so I'd attempt to readd those... :(
Here is my config:
settings:
enabled: true
min-players: 0
log-to-console: true
message-lists:
regular:
enabled: true
interval: 1
expiry: -1
random: false
messages:
- /say 1
- /say 2
Using this config, every second "/say 1" is being run twice, and "/say 2" is being run twice.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.