Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Faction logs #34

Merged
merged 15 commits into from May 15, 2020
Merged

Implement Faction logs #34

merged 15 commits into from May 15, 2020

Conversation

varunbln
Copy link
Collaborator

Please make sure your pull request complies with these guidelines:

    • Use same formatting
    • Changes must have been tested on PMMP.
    • Unless it is a minor code modification, you must use an IDE.
    • Have a detailed title.

What does the PR change?

This PR implements a basic logging system for factions to see the details of various faction related events, f.e: When a player is kicked from the faction, and when they occurred.

This feature would be nice for faction leaders to monitor the activity of fellow staff members, and for faction members to know what their higher-ups are upto.

Testing Environment

  • PHP: 7.3
  • PMMP: 3.12.0
  • OS: Windows 10

Extra Information

MySQL queries might have some issues, I haven't tested using a MySQL db, just SQLite

Heisenburger69 added 6 commits May 7, 2020 21:50
This change is to account for events being cancelled, so logging can't be done in the call() method
These may be incorrectly done, someone pls take a look ty
Copy link
Owner

@DaPigGuy DaPigGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SQLite3 does not require and should not be using AUTOINCREMENT for integer primary keys

@DaPigGuy DaPigGuy merged commit 45ba53e into master May 15, 2020
@DaPigGuy DaPigGuy deleted the faction_logs branch May 15, 2020 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants