Advertisement
osmarks

Keansia Voting System

Feb 25th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. -- requires https://pastebin.com/jE4guV48 - my persistence library
  2.  
  3. local persist = require "persistence"
  4. local citizens = persist "citizens"
  5. local votes = persist "votes"
  6.  
  7. local function is_citizen(player)
  8.     citizens:reload()
  9.     return citizens[player] and citizens[player].is_citizen
  10. end
  11.  
  12. while true do
  13.     local event, player, command, arguments = os.pullEvent "command"
  14.     if command == "keansia" then
  15.         local subcommand = arguments[1]
  16.         if subcommand == "election" then
  17.            
  18.         end
  19.     end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement