/promoreason or /demotionreason

Post all ideas and suggestions for fCraft here
Post Reply
User avatar
tylerthecreator5
Offline
Posts: 119
Joined: July 12th, 2011, 2:02 am
Location: Sandy,UT

/promoreason or /demotionreason

Post by tylerthecreator5 »

Ok so i wanna suggest a command its /promoreason lemme give you an example /promoreason veteran op hylloch or/demotionreason op veteran hylloch Thanks for your time
Lololol now you know i've wasted your time

User avatar
Lim-Dul
The Necromancer
Offline
Posts: 663
Joined: May 21st, 2011, 10:21 pm

Re: /promoreason or /demotionreason

Post by Lim-Dul »

What are you on about? Promotions/demotions already require you to provide a reason (if the setting is enabled) and these are visible in your /info...
War does not determine who is right - only who is left. - Bertrand Russell

User avatar
Ollieboy
Trustee
Offline
Posts: 2343
Joined: May 23rd, 2011, 3:13 am
Location: Australia

Re: /promoreason or /demotionreason

Post by Ollieboy »

Also, (assuming you're talking about on your own server) you can use /setinfo to manually CHANGE the reasons if you aren't happy with them if that is what you are talking about. Otherwise, exactly what Lim said, just go enable those settings.
<TKB> Hit_Girl: zombies don't hurt
<TKB> Hit_Girl: weird.
<TKB> Hit_Girl was slain by Zombie

User avatar
Sanjar Khan
Trustee
Offline
Posts: 1766
Joined: May 24th, 2011, 1:40 pm
Location: Leiden, Zuid Holland

Re: /promoreason or /demotionreason

Post by Sanjar Khan »

tylerthecreator5 wrote:Ok so i wanna suggest a command its /promoreason lemme give you an example /promoreason veteran op hylloch or/demotionreason op veteran hylloch Thanks for your time
I want you to enable interpunction on whatever software you are running in your brain.
Ferrisbuler2: i will stay but i might not post cus of ollieboy

User avatar
Darklight
SupOP
Offline
Posts: 439
Joined: June 7th, 2011, 7:45 pm
Location: Western Australia

Re: /promoreason or /demotionreason

Post by Darklight »

tylerthecreator5 wrote:Ok, so i want to suggest a command. It's /promoreason. Let me give you an example.
/promoreason hylloch veteran op
or
/demotionreason hylloch op veteran .
Thanks for your time.
After fixing the painful-to-read English, I think I know what he's trying to say with this. For instance, as a supop I'm unable to see the reason I was promoted to builder for. What I think he's trying to say is, by typing

/promoreason darklight67 guest builder or /promoreason darklight67 veteran op

that it will show the promo reason. Correct me if I'm wrong Tyler.
But if this is the case, I dont see how this will be useful in anyway...

User avatar
tylerthecreator5
Offline
Posts: 119
Joined: July 12th, 2011, 2:02 am
Location: Sandy,UT

Re: /promoreason or /demotionreason

Post by tylerthecreator5 »

Yes darklight that is what i mean
Lololol now you know i've wasted your time

User avatar
Lim-Dul
The Necromancer
Offline
Posts: 663
Joined: May 21st, 2011, 10:21 pm

Re: /promoreason or /demotionreason

Post by Lim-Dul »

That will not happen since this would require adding more fields to PlayerDB, inflating it for no good reason. If some day fragmer switches from flatfiles to a proper DB, this might be possible.
War does not determine who is right - only who is left. - Bertrand Russell

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: /promoreason or /demotionreason

Post by fragmer »

Planned for 0.700 (event log).

User avatar
Intertoothh
Trustee
Offline
Posts: 1149
Joined: May 24th, 2011, 5:51 am

Re: /promoreason or /demotionreason

Post by Intertoothh »

Does the eventlog have 'triggerd by' or something? or categories?

Like you can filter on 'draw commands' or 'moderate commands' or 'ranks'?
And if so, do they have '2nd' filter?

/eventlog intertoothh promoted
Will show all i promoted.

/eventlog intertoothh * hit_girl
shows every command that involved hit_girl and me.

/eventlog * drawcommands 1h main
Shows all draw commands on main for the last hour?

Not sure what the 'querys' must be, bit it will open a world of information for us!

maybe something like
/eventlog u:intertoothh u:hit_girl c:drawcommand t:1h w:main,guest
?
McLaughlinKid wrote:You put roar on everything don't you?

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: /promoreason or /demotionreason

Post by fragmer »

For the past couple years, fCraft has just recorded events in a log file. The format wasn't consistent, data was not always complete, and it was not easy to search. I'd like to add a standardized and indexed event log that will be saved alongside PlayerDB, and be easy to search by fCraft and plugins.

It wouldn't be one huge command that does all searching, but a number of commands that use event log's data for different purposes.
#fCraft IRC discussion wrote:Nov 18 16:43:32 <fragmer> lets see, what should i put into the event log...
Nov 18 16:44:40 <fragmer> 1) draw command calls
Nov 18 16:44:47 <fragmer> 2) shutdown/restart calls
Nov 18 16:45:04 <fragmer> 3) spawn point changes
Nov 18 16:45:36 <fragmer> 4) adding/editing/renaming/removing zones
Nov 18 16:45:50 <fragmer> 5) loading/editing/renaming/removing worlds
Nov 18 16:46:28 <fragmer> 6) main world changes
Nov 18 16:47:07 <fragmer> 7) ban, banip, banall, unban, unbanip, unbanall
Nov 18 16:47:23 <fragmer> 8) kicks
Nov 18 16:47:31 <fragmer> 9) mute/unmute
Nov 18 16:47:35 <fragmer> 10) freeze/unfreeze
Nov 18 16:47:49 <fragmer> 11) rank changes
Nov 18 16:48:24 <fragmer> 12) locking/unlocking worlds
Nov 18 16:48:46 <fragmer> 13) /setinfo changes
Nov 18 16:50:00 <fragmer> 14) /infoswap
#fCraft IRC discussion wrote:Nov 20 02:53:25 <fragmer> So I'm trying to figure out how do this event log... i can probably group several types of events
Nov 20 02:54:05 <Kevinsweijen> What was it again...one log for kicks/bans/mutes/freezes?
Nov 20 02:54:10 <fragmer> 1) player events: playerID, targetID, date, memo/reason, type
Nov 20 02:54:34 <fragmer> where type can be: kick, ban, banip, banall, unban, unbanip, unbanall, mute, unmute, freeze, unfreeze
Nov 20 02:54:51 <fragmer> (for mute it saves duration into "memo" field, and for others it saves "reason")
Nov 20 02:55:03 <fragmer> (although maybe i should add a way to add reasons to mute as well)
Nov 20 02:55:14 <fragmer> ok how about
Nov 20 02:55:29 <fragmer> playerID, targetID, date, reason, type, additionalInfo
Nov 20 02:56:57 <fragmer> 2) world events: playerID, worldName, date, memo, type
Nov 20 02:58:58 <fragmer> where type can be: created, renamed, mapChanged, buildRankChanged, buildWhitelistAdded, buildWhitelistRemoved, buildBlacklistAdded, buildBlacklistRemoved, accessRankChanged, accessWhitelistAdded, accessWhitelistRemoved, accessBlacklistAdded, accessBlacklistRemoved, locked, unlocked, hidden, unhidden, blockDBEnabled, blockDBDisabled, blockDBLimitChanged, blockDBTimeLimitChanged, blockDBCleared
Nov 20 02:59:31 <Kevinsweijen> aha
Nov 20 02:59:44 <fragmer> lots of misc events to store
Nov 20 03:00:28 <fragmer> changing main, infoswap, pruneDB, shutdown/restart
Nov 20 03:00:40 <fragmer> oh and i can probably lump /setinfo and /rank together:
Nov 20 03:01:06 <fragmer> 3) player info events: playerID, targetID, date, oldValue, newValue, memo/reason
Nov 20 03:01:16 <fragmer> and "field"
Nov 20 03:01:50 <fragmer> while i'm at it, i should probably add a way to store every session, to track all IPs ever used by a player
Nov 20 03:02:17 <hellenion> fragmer is watching you.
Nov 20 03:02:47 <fragmer> 4) sessions.db: playerID, IP, date, isVerified flag (fully verified / cached verified / unverified)
Nov 20 03:03:25 <hellenion> zones?
Nov 20 03:03:29 <fragmer> ah right
Nov 20 03:03:40 <fragmer> i can probably stick those into the world event log
Nov 20 03:03:51 <fragmer> hm
Nov 20 03:03:53 <fragmer> nah
Nov 20 03:04:04 <hellenion> it's already 5 times as large as the others
Nov 20 03:04:07 <fragmer> 5) zones.db: playerID, worldName, zoneName, memo, type
Nov 20 03:04:39 <fragmer> where type is: created, renamed, rankChanged, whitelistAdded, whitelistRemoved, blacklistAdded, blacklistRemoved, removed
Nov 20 03:04:59 <fragmer> oh and to add to world event types: setSpawn, removed
Nov 20 03:05:10 <fragmer> alright so 6 separate event logs
Nov 20 03:05:36 <fragmer> player events, world events, playerinfo field changes (rank + setinfo), sessions, zones
Nov 20 03:05:41 <fragmer> and somehow i need to add a "misc" one
Nov 20 03:07:03 <fragmer> 6) misc.db: playerID, date, type (mainChanged, rankMainChanged, infoSwap, pruneDB, shutdown, restart, shutdownAbort, restartAbort), additionalInfo1, additionalInfo2
Nov 20 03:07:13 <fragmer> i'll just cheat :3
Nov 20 03:07:24 <fragmer> for mainChanged, additional info will be old/new world names

Post Reply