Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
9eaae2c4
Commit
9eaae2c4
authored
Apr 22, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve logs for received and broadcast messages
parent
e40341ff
Pipeline
#12003
passed with stage
in 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ModInit.java
src/main/java/com/owlmaddie/ModInit.java
+2
-2
No files found.
src/main/java/com/owlmaddie/ModInit.java
View file @
9eaae2c4
...
...
@@ -254,7 +254,7 @@ public class ModInit implements ModInitializer {
EntityBehaviorManager
.
addGoal
(
entity
,
talkGoal
,
GoalPriority
.
TALK_PLAYER
);
// Add new message
LOGGER
.
info
(
"
Add new message ("
+
message
+
") to
Entity: "
+
entity
.
getType
().
toString
());
LOGGER
.
info
(
"
Player message received: "
+
message
+
" |
Entity: "
+
entity
.
getType
().
toString
());
chatData
.
generateMessage
(
player
,
"system-chat"
,
message
);
}
...
...
@@ -285,7 +285,7 @@ public class ModInit implements ModInitializer {
// Iterate over all players and send the packet
for
(
ServerPlayerEntity
player
:
serverInstance
.
getPlayerManager
().
getPlayerList
())
{
LOGGER
.
info
(
"Server
send message packet to player: "
+
player
.
getName
().
getString
()
);
LOGGER
.
info
(
"Server
broadcast message to client: "
+
player
.
getName
().
getString
()
+
" | Message: "
+
chatData
.
currentMessage
);
ServerPlayNetworking
.
send
(
player
,
PACKET_S2C_MESSAGE
,
buffer
);
}
break
;
...
...
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