summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/UserVariables.java
diff options
context:
space:
mode:
authorPaul A. <ementalodev@gmx.co.uk>2012-06-05 18:20:06 -0700
committerPaul A. <ementalodev@gmx.co.uk>2012-06-05 18:20:06 -0700
commit9f3b3d5873c1d8be06586b4821a4b253c8c99ac9 (patch)
tree373d92a3625d5b9caefe3798dddc5e7e2c74a85a /EssentialsGroupManager/src/org/anjocaido/groupmanager/data/UserVariables.java
parentb69a16bcf0abac1ebd2ca3d35520cfcb5b433e88 (diff)
parent5c0f944b2b0bd7e335dabe54cccaf12d5a3b9cba (diff)
downloadEssentials-9f3b3d5873c1d8be06586b4821a4b253c8c99ac9.tar
Essentials-9f3b3d5873c1d8be06586b4821a4b253c8c99ac9.tar.gz
Essentials-9f3b3d5873c1d8be06586b4821a4b253c8c99ac9.tar.lz
Essentials-9f3b3d5873c1d8be06586b4821a4b253c8c99ac9.tar.xz
Essentials-9f3b3d5873c1d8be06586b4821a4b253c8c99ac9.zip
Merge pull request #73 from ementalo/3.0
2.9 -> 3.0 merge Metrics has been disable atm. Everything eeds a thorough going over, settings are prob in wrong place etc.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/data/UserVariables.java')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/data/UserVariables.java73
1 files changed, 39 insertions, 34 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/UserVariables.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/UserVariables.java
index 0b3948cab..f994595c1 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/UserVariables.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/UserVariables.java
@@ -7,42 +7,47 @@ package org.anjocaido.groupmanager.data;
import java.util.Map;
/**
- *
+ *
* @author gabrielcouto
*/
public class UserVariables extends Variables {
- private User owner;
-
- public UserVariables(User owner) {
- super(owner);
- this.owner = owner;
- }
-
- public UserVariables(User owner, Map<String, Object> varList) {
- super(owner);
- this.variables = varList;
- this.owner = owner;
- }
-
- /**
- * A clone of all vars here.
- * @return UserVariables clone
- */
- protected UserVariables clone(User newOwner) {
- UserVariables clone = new UserVariables(newOwner);
- for (String key : variables.keySet()) {
- clone.variables.put(key, variables.get(key));
- }
- newOwner.flagAsChanged();
- return clone;
- }
-
- /**
- * @return the owner
- */
- @Override
- public User getOwner() {
- return owner;
- }
+ private User owner;
+
+ public UserVariables(User owner) {
+
+ super(owner);
+ this.owner = owner;
+ }
+
+ public UserVariables(User owner, Map<String, Object> varList) {
+
+ super(owner);
+ this.variables = varList;
+ this.owner = owner;
+ }
+
+ /**
+ * A clone of all vars here.
+ *
+ * @return UserVariables clone
+ */
+ protected UserVariables clone(User newOwner) {
+
+ UserVariables clone = new UserVariables(newOwner);
+ for (String key : variables.keySet()) {
+ clone.variables.put(key, variables.get(key));
+ }
+ newOwner.flagAsChanged();
+ return clone;
+ }
+
+ /**
+ * @return the owner
+ */
+ @Override
+ public User getOwner() {
+
+ return owner;
+ }
}