Skip to content

Commit

Permalink
Log details in flylong, and always for file+console.
Browse files Browse the repository at this point in the history
* Split log messages: ingame vs. console+file
* Alter flylong to contain tags.

Performance-wise, it's not optimal that flylong is the same as flyfile
at this stage. Not sure if to remove flylong in favor of using flyfile,
to indicate it means details - main objective is to get minimal details
into the violation log, even if people edit it out of the ingame chat
messages.
  • Loading branch information
asofold committed Apr 1, 2017
1 parent 6aeef95 commit d324fc0
Showing 1 changed file with 13 additions and 3 deletions.
Expand Up @@ -398,7 +398,10 @@ public DefaultConfig() {
set(ConfPaths.MOVING_CREATIVEFLY_MODEL + "elytra." + ConfPaths.SUB_MODIFIERS, false);
}
set(ConfPaths.MOVING_CREATIVEFLY_ACTIONS,
"log:flyshort:3:5:f cancel vl>100 log:flyshort:0:5:if cancel vl>400 log:flylong:0:5:cif cancel");
"log:flyfile:3:5:f cancel"
+ "vl>100 log:flyshort:0:5:i log:flyfile:0:5:f cancel"
+ "vl>400 log:flylong:0:5:i log:flyfile:0:5:cf cancel"
, 1067);

set(ConfPaths.MOVING_MOREPACKETS_CHECK, true);
set(ConfPaths.MOVING_MOREPACKETS_SECONDS, 6);
Expand Down Expand Up @@ -433,7 +436,12 @@ public DefaultConfig() {
set(ConfPaths.MOVING_SURVIVALFLY_HBUFMAX, 1.0);
set(ConfPaths.MOVING_SURVIVALFLY_SETBACKPOLICY_FALLDAMAGE, true);
set(ConfPaths.MOVING_SURVIVALFLY_SETBACKPOLICY_VOIDTOVOID, true);
set(ConfPaths.MOVING_SURVIVALFLY_ACTIONS, "log:flyshort:3:10:f cancel vl>100 log:flyshort:0:10:if cancel vl>400 log:flylong:0:5:cif cancel vl>1500 log:flylong:0:5:cif cancel cmd:kickfly");
set(ConfPaths.MOVING_SURVIVALFLY_ACTIONS,
"log:flyfile:3:10:f cancel"
+ "vl>100 log:flyshort:0:10:i log:flyfile:0:10:f cancel"
+ "vl>400 log:flylong:0:5:i log:flyfile:0:5:cf cancel"
+ "vl>1500 log:flylong:0:5:i log:flyfile:0:5:cf cancel cmd:kickfly"
, 1067);

// sf / hover check.
set(ConfPaths.MOVING_SURVIVALFLY_HOVER_CHECK, true);
Expand Down Expand Up @@ -548,7 +556,9 @@ public DefaultConfig() {
set(ConfPaths.STRINGS + ".fdirection", start + "tried to hit an entity out of line of sight" + end);
set(ConfPaths.STRINGS + ".flyshort", start + "tried to move unexpectedly" + end);
set(ConfPaths.STRINGS + ".flylong", start
+ "tried to move from [locationfrom] to [locationto] over a distance of [distance] block(s)" + end);
+ "tried to move: [locationfrom] -> [locationto], d=[distance] ([tags])" + end, 1067);
set(ConfPaths.STRINGS + ".flyfile", start
+ "tried to move: [locationfrom] -> [locationto], d=[distance] ([tags])" + end);
set(ConfPaths.STRINGS + ".freach", start + "tried to attack entity out of reach" + end);
set(ConfPaths.STRINGS + ".fselfhit", start + "tried to self-hit" + end);
set(ConfPaths.STRINGS + ".fspeed", start + "tried to attack with too high a frequency" + end);
Expand Down

0 comments on commit d324fc0

Please sign in to comment.