/warn

Post all ideas and suggestions for fCraft here
Post Reply
User avatar
Sennec
SupOP
Offline
Posts: 103
Joined: May 31st, 2011, 4:13 pm

/warn

Post by Sennec »

/warn could be extremely helpful. Whenever I catch someone griefing, I don't know if they were warned before or not, unless I warned them myself. So I want to introduce /warn.
When you catch someone griefing, you /freeze etc and then you warn him like this.

/warn username your warning message, whatever
(username works like /tp username, you don't have to type the whole name)

What would happen is that the griefer gets a pm, as with @username, with the reason. At the same time, that reason gets added to his /info. When he receives more than 1 warning, the info shows how many warnings he already has + the last warning.
Dogs fucked the Pope, no fault of mine.

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

Re: /warn

Post by Sanjar Khan »

Whenever I see someone freezing someone I have warned before, I inform them of that in staff chat.
Ferrisbuler2: i will stay but i might not post cus of ollieboy

User avatar
Sennec
SupOP
Offline
Posts: 103
Joined: May 31st, 2011, 4:13 pm

Re: /warn

Post by Sennec »

Ofcourse, but not everyone is paying attention to that all the time. And often, the person who warned before is simply offline.
Dogs fucked the Pope, no fault of mine.

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

Re: /warn

Post by Intertoothh »

I like the idea.
But i dont think it should msg the player.

And it could be 'random' information about a user.
/setinfo Freddie Dont beleive his lies.

And only shows to op+ on the /info
McLaughlinKid wrote:You put roar on everything don't you?

User avatar
Hafnium
Owner
Offline
Posts: 604
Joined: May 21st, 2011, 10:51 pm

Re: /warn

Post by Hafnium »

/setinfo already does something.
The first law of thermodynamics states that you don't discuss thermodynamics.

User avatar
Sennec
SupOP
Offline
Posts: 103
Joined: May 31st, 2011, 4:13 pm

Re: /warn

Post by Sennec »

Hafnium wrote:/setinfo already does something.
That command requires trustee rank though.
Dogs fucked the Pope, no fault of mine.

User avatar
Hafnium
Owner
Offline
Posts: 604
Joined: May 21st, 2011, 10:51 pm

Re: /warn

Post by Hafnium »

The thing it does isn't the thing you want. I was responding to inter's suggestion for a name.
The first law of thermodynamics states that you don't discuss thermodynamics.

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

Re: /warn

Post by Intertoothh »

/setinfo is for kickcount etc, forget that.


/addinfo <playername> <info>

/info <playername> will add this info for op+
McLaughlinKid wrote:You put roar on everything don't you?

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

Re: /warn

Post by Intertoothh »

or setnote.

*cough*
for ModerationCommands.cs

Code: Select all

static readonly CommandDescriptor cdSetNote = new CommandDescriptor {
	            Name = "setnote",
	            Category = CommandCategory.Moderation,
	            IsConsoleSafe = true,
	            IsHidden = true,
	            Permissions = new[] { Permission.SetPlayerNote },
	            Help = "Add a note to a player",
	            Usage = "/setnote PlayerName Note",
	            Handler = SetNote
	        };

internal static void SetNote( Player player, Command cmd ) {
                    string targetName = cmd.Next();
	            string note = cmd.Next();

	            if( targetName == null || note == null ) {
	                cdSetNote.PrintUsage( player );
	                return;
	            }
	
	            PlayerInfo info;
	            if( !PlayerDB.FindPlayerInfo( targetName, out info ) ) {
	                player.Message( "More than one player found matching \"{0}\"", targetName );
	            } else if( info == null ) {
	                player.NoPlayerMessage( targetName );
	            } else {
	                        string oldNote = info.PlayerNote;
                                info.PlayerNote = note;
	                        player.Message( "Note for {0}&S changed from \"{1}\" to \"{2}\"",
	                                        info.GetClassyName(),
	                                        oldNote,
	                                        info.PlayerNote);
	                        return;
	            }

}
todo:
Add permission
Add to player class
Add to playerdb
Add CommandManager.RegisterCommand(SetNote) to constructor or init;


Proberly missed more, but i'm not that into your code yet.
McLaughlinKid wrote:You put roar on everything don't you?

User avatar
shankd0g
Offline
Posts: 310
Joined: May 24th, 2011, 2:23 am
Location: US

Re: /warn

Post by shankd0g »

what is this code you're editing? fcraft server code?

are these some things you'll be submitting to fragmer for inclusion?

just wondering since i've seen other threads with your code revisions and they seem legit even tho i'm no programmer.
***** This user has left the building. *****

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

Re: /warn

Post by Intertoothh »

Yep this is fcraft server code.
McLaughlinKid wrote:You put roar on everything don't you?

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

Re: /warn

Post by Sanjar Khan »

Hacker!
Ferrisbuler2: i will stay but i might not post cus of ollieboy

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

Re: /warn

Post by Lim-Dul »

This is a suggestion (and piece of code) that will be sent to fragmer. We won't mod the server in any way ourselves since we ARE the official server after all. =)
War does not determine who is right - only who is left. - Bertrand Russell

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

Re: /warn

Post by Intertoothh »

I know, just helping fragmer a bit :).

Maybe if i have time off in the weekend i can write the code for the chatchannels, if fragmer finds it a good idea that is. Its a bit more work then above.
McLaughlinKid wrote:You put roar on everything don't you?

User avatar
PolakWithABlock
SupOP
Offline
Posts: 294
Joined: May 24th, 2011, 3:44 am

Re: /warn

Post by PolakWithABlock »

Bump
Have this been implemented yet?
If so, what is the command code?
/warn?
/add info in my opinion will get confusing a simply /warn is better.

I'm not suggesting that a warning should appear on the frozen person screen just on the /info.
So the method would be /freeze warn them, then type /warn <reason> (ie. suspected griefer, spleefer, suck up, etc.) /unfreeze.
Aleries: What OS is your server running on?
FierceReacter: 5

BobKare
Offline
Posts: 279
Joined: May 26th, 2011, 2:15 pm

Re: /warn

Post by BobKare »

I think a warn system is planned for 0.700.
It might mean something else, though^^

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

Re: /warn

Post by fragmer »

Yeah, I promise a lot of things, don't I :P

Silvytabitha
Offline
Posts: 50
Joined: December 29th, 2011, 11:42 am
Location: Australia
Contact:

Re: /warn

Post by Silvytabitha »

LOL :P

Jonty800
Offline
Posts: 280
Joined: August 21st, 2011, 6:31 am
Location: United Kingdom
Contact:

Re: /warn

Post by Jonty800 »

string note = cmd.Next(); -----> string note = cmd.NextAll();

.Next() = one word
.NextAll() = many words

:)
You cannot use certain BBCodes: [img].

BobKare
Offline
Posts: 279
Joined: May 26th, 2011, 2:15 pm

Re: /warn

Post by BobKare »

Oh, so that's the difference ^^

User avatar
Loading...
Offline
Posts: 41
Joined: December 21st, 2011, 5:57 pm

Re: /warn

Post by Loading... »

Yes /warn is a good suggestion we must oly wait for it :)

And its was Suggested 100000x (because its a good idea ;D)

I hope for a update

Post Reply