Spam regulation and Kick command & fixed solution to use /externals/craft.net not ../craft.net#13
Spam regulation and Kick command & fixed solution to use /externals/craft.net not ../craft.net#13tuomas56 wants to merge 6 commits intoddevault:masterfrom
Conversation
kick limited to ops, if you say something four times in a row, you will not be able to say that message again until you say something else. I also fixed compile order and external project location (would not compile unless you had also forked Craft.Net)
SpamController class now needs object reference, removed whitespace from KickCommand.cs and create spamController object in Server.cs
changed spamController to internal so it doesn't give me errors about accessibility and updated names for spamController.Init() on login and spamController.Remove() on logout.
There was a problem hiding this comment.
Change this back, please. Use MonoDevelop or SharpDevelop if you can't get Visual Studio.
There was a problem hiding this comment.
Have fixed. sorry for taking so long with the other things.
On Tue, Jul 16, 2013 at 4:04 PM, Drew DeVault [email protected]:
In PartyCraft.sln:
@@ -1,25 +1,42 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
+# Visual Studio Express 2012 for Windows DesktopThis remains a problem.
—
Reply to this email directly or view it on GitHubhttps://github.com//pull/13/files#r5217878
.
|
Take out the spam protection, I think that'd be better as a plugin. |
|
Ok. Just editing. |
|
Have taken out spamProtection and edited kickCommand |
|
I'll review and merge this later today. |
|
Thank you. On Tue, Jul 16, 2013 at 5:05 PM, Drew DeVault [email protected]:
|
|
Sorry this has been out there for so long. I need to do some serious reworking of PartyCraft to get it to fit well into the latest changes to Craft.Net, and I'll make sure this is included. |
Spam system:
you can only send a message 4 times in a row,
counter is reset when you send a different message
Kick command
only ops can kick
when you are kicked it shows "You were kicked by [player]" ([player] being the person who kicked you)
it also prints "[player] was kicked by [player]" to the server chat.
I have also fixed compile order and project dependencies location so that it will compile if you only fork PartyCraft.