forked from Flare-Client/Flare-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added AutoRespawn & updated pointer attributes
Added AutoRespawn & updated pointer attributes
- Loading branch information
1 parent
a034da9
commit 4a59176
Showing
8 changed files
with
100 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using Flare_Sharp.ClientBase.Categories; | ||
using Flare_Sharp.Memory; | ||
using Flare_Sharp.Memory.CraftSDK; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Flare_Sharp.ClientBase.Modules.Modules | ||
{ | ||
public class AutoRespawn : Module | ||
{ | ||
|
||
public static byte savedImmediateSpawnGameRule; | ||
public AutoRespawn() : base("AutoRespawn", CategoryHandler.registry.categories[2], (char)0x07, false) | ||
{ | ||
} | ||
|
||
public override void onEnable() | ||
{ | ||
base.onEnable(); | ||
savedImmediateSpawnGameRule = Pointers.doImmediateRespawnGamerule; | ||
} | ||
|
||
public override void onTick() | ||
{ | ||
base.onTick(); | ||
Pointers.doImmediateRespawnGamerule = 1; | ||
} | ||
|
||
public override void onDisable() | ||
{ | ||
base.onDisable(); | ||
Pointers.doImmediateRespawnGamerule = savedImmediateSpawnGameRule; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters