Skip to content

Commit

Permalink
fix event description
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlyhj committed May 24, 2024
1 parent 0fbe92f commit 71c84d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions advanced/event-overview/tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ events.onPlayerCrafted(function(event as PlayerCraftedEvent) {
});
```

当玩家触发`PlayerCraftedEvent`事件时,就会写入该自定义标签到玩家数据中,同时输出调试信息。
当玩家合成时,就会写入该自定义标签到玩家数据中,同时输出调试信息。

```log
[SERVER_STARTED][SERVER][INFO] {custom: 1 as byte}
Expand Down Expand Up @@ -96,7 +96,7 @@ events.onPlayerCrafted(function(event as PlayerCraftedEvent) {

```csharp
import crafttweaker.events.IEventManager;
import crafttweaker.event.BlockPlaceEvent;
import crafttweaker.event.PlayerCraftedEvent;
import crafttweaker.player.IPlayer;
import crafttweaker.data.IData;

Expand All @@ -109,7 +109,7 @@ events.onPlayerCrafted(function(event as PlayerCraftedEvent) {
});
```

当玩家触发`BlockPlaceEvent`事件时,就会修改他保存着的`custom`标签的数据,同时输出调试信息。
当玩家合成时,就会修改他保存着的`custom`标签的数据,同时输出调试信息。

```log
[SERVER_STARTED][SERVER][INFO] 10
Expand Down

0 comments on commit 71c84d6

Please sign in to comment.