You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This is the object that is returned by the framework
43
+
* It is used to interact with the framework
44
+
* It is initialized in the constructor
45
+
* It is null if the framework is not initialized and just an empty object if 'None' or 'Custom' is selected
46
+
* Due to the nature of the framework, this object is of type 'any' since the type is different for each framework
47
+
*/
17
48
privateframework: any;
18
49
19
50
constructor(){
@@ -79,32 +110,38 @@ export class Framework {
79
110
80
111
/**
81
112
* Checks if the framework is initialized
82
-
* @returns {boolean} whether the framework is initialized
113
+
* @returns {boolean} Whether the framework is initialized
83
114
*/
84
115
publicisInitialized(): boolean{
85
116
return!!this.framework;
86
117
}
87
118
88
119
/**
89
120
* Returns the raw framework object
90
-
* @returns {any} framework
121
+
* This is the object that is returned by the framework
122
+
* It is any since the type is different for each framework
123
+
* It is null if the framework is not initialized and just an empty object if 'None' or 'Custom' is selected
124
+
* @returns {any} Raw framework object
91
125
*/
92
126
publicgetFramework(): any{
93
127
returnthis.framework;
94
128
}
95
129
96
130
/**
97
131
* Returns the framework name
98
-
* @returns {string} framework name
132
+
* It matches the FrameworkConfig.Framework exactly
133
+
* Note: This value is case sensitive
134
+
* @returns {string} Name of the currently selected framework
99
135
*/
100
136
publicgetFrameworkName(): string{
101
137
returnthis.config.Framework;
102
138
}
103
139
104
140
/**
105
141
* Get the wallet money of a player
106
-
* @param player player id
107
-
* @returns {number} wallet money
142
+
* Note: This function only uses the default money system of the frameworks and may not work with custom money systems (for example those who utilize items as money)
143
+
* @param player Server ID of the player
144
+
* @returns {number} The wallet money of the player
* Note: This function only uses the default money system of the frameworks and may not work with custom money systems (for example those who utilize items as money)
* Note: This function only uses the default money system of the frameworks and may not work with custom money systems (for example those who utilize items as money)
0 commit comments