Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server starts up
- On Start up => Plugin Loads
- Plugin Checks for config file in directory
- config file does exist
- config is loaded
- config file does not exist
- config file directory is created
- config file is created within directory with default values
- config file is loaded
- Plugin Checks config to see if we are using mysql
- We are using mysql
- Plugin checks config to see what modules are in use
- commissions module is in use
- check if commission table exists
- table does exist
- table does not exist
- create table with needed columns
- commissions module is not in use
- do nothing
- newprotection module is not in use
- do nothing
- stattracker module is not in use
- do nothing
- Announce Plugin is Loaded Successfully and Listening.
- PlayerJoin
- ONJOIN check if player dat file exists
- if player dat file does not exist we have a first time visitor
- create dat file
- spawn at new player location
- **insert other new player funcitons here**
- Update dbComTable PLAYER = player.getName() and DATEJOIN = Now() and RECENTLOGIN = Now() and RECENTLOGOUT = null and AVGPLAYTIME = null and INFRACTIONS = 0;
- if player dat file does exist we have a return player
- check if player has record in dbComTable
- if player does not have a record in the table
- create a new record
- if player does have a record in the table
- check if players DATEJOIN was after x/x/xxxx
- if players join date was after x/x/xxxx
- eligible for referral = true
- if players join date was before x/x/xxxx
- eligible for referral = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement