Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Morningstar
Arcturus Morningstar
Commits
7106026b
Commit
7106026b
authored
Mar 05, 2021
by
Snaiker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide mail
parent
4cd0b8bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/eu/habbo/habbohotel/modtool/ModToolManager.java
.../java/com/eu/habbo/habbohotel/modtool/ModToolManager.java
+1
-1
src/main/java/com/eu/habbo/messages/outgoing/modtool/ModToolUserInfoComposer.java
...bo/messages/outgoing/modtool/ModToolUserInfoComposer.java
+1
-1
No files found.
src/main/java/com/eu/habbo/habbohotel/modtool/ModToolManager.java
View file @
7106026b
...
...
@@ -54,7 +54,7 @@ public class ModToolManager {
if
(
userId
<=
0
)
return
;
try
(
Connection
connection
=
Emulator
.
getDatabase
().
getDataSource
().
getConnection
();
PreparedStatement
statement
=
connection
.
prepareStatement
(
"SELECT users.*, users_settings.*, permissions.rank_name, permissions.
id as
rank_id FROM users INNER JOIN users_settings ON users.id = users_settings.user_id INNER JOIN permissions ON permissions.id = users.rank WHERE users.id = ? LIMIT 1"
))
{
try
(
Connection
connection
=
Emulator
.
getDatabase
().
getDataSource
().
getConnection
();
PreparedStatement
statement
=
connection
.
prepareStatement
(
"SELECT users.*, users_settings.*, permissions.rank_name, permissions.
acc_hide_mail AS hide_mail, permissions.id AS
rank_id FROM users INNER JOIN users_settings ON users.id = users_settings.user_id INNER JOIN permissions ON permissions.id = users.rank WHERE users.id = ? LIMIT 1"
))
{
statement
.
setInt
(
1
,
userId
);
try
(
ResultSet
set
=
statement
.
executeQuery
())
{
while
(
set
.
next
())
{
...
...
src/main/java/com/eu/habbo/messages/outgoing/modtool/ModToolUserInfoComposer.java
View file @
7106026b
...
...
@@ -58,7 +58,7 @@ public class ModToolUserInfoComposer extends MessageComposer {
this
.
response
.
appendString
(
""
);
//Last Purchase Timestamp
this
.
response
.
appendInt
(
this
.
set
.
getInt
(
"user_id"
));
//Personal Identification #
this
.
response
.
appendInt
(
0
);
// Number of account bans
this
.
response
.
appendString
(
this
.
set
.
getString
(
"mail"
));
this
.
response
.
appendString
(
this
.
set
.
getBoolean
(
"hide_mail"
)
?
""
:
this
.
set
.
getString
(
"mail"
));
this
.
response
.
appendString
(
"Rank ("
+
this
.
set
.
getInt
(
"rank_id"
)
+
"): "
+
this
.
set
.
getString
(
"rank_name"
));
//user_class_txt
ModToolSanctions
modToolSanctions
=
Emulator
.
getGameEnvironment
().
getModToolSanctions
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment