Moved some code.
F16Gaming (Laptop) [03-29-12 - 10:37]
diff --git a/PlayerManager.lua b/PlayerManager.lua
index afdab53..0d60a1a 100644
--- a/PlayerManager.lua
+++ b/PlayerManager.lua
@@ -196,6 +196,14 @@ function PM:GetOrCreatePlayer(name)
end
end
+--- Update a player and subsequently save them.
+-- @param player Player object to update.
+--
+function PM:UpdatePlayer(player)
+ Players[player.Info.Name] = player
+ log:Normal(("Updated player %q."):format(player.Info.Name))
+end
+
--- Completely remove a command from a group's access list.
-- Removed from both the allow and deny list.
-- @param group Name of group to modify.
@@ -309,14 +317,6 @@ function PM:PlayerAccess(player, command, allow)
return ("%q is now %s for %s"):format(command, mode, player.Info.Name)
end
---- Update a player and subsequently save them.
--- @param player Player object to update.
---
-function PM:UpdatePlayer(player)
- Players[player.Info.Name] = player
- log:Normal(("Updated player %q."):format(player.Info.Name))
-end
-
--- Check if provided player is locked.
-- @param player Player object to check.
--