Skip to content

Commit 08298d1

Browse files
committed
v0.3
- tip all is now sent in 30 min intervals; handled by the Autotip.cs script - removed logging and scripting from .ini config - clearer ReadMe
1 parent 80cd350 commit 08298d1

File tree

3 files changed

+34
-14
lines changed

3 files changed

+34
-14
lines changed

Autotip.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ public override void Update()
138138
{
139139
_tickCount++;
140140

141+
// Tip all active boosters every 15 and ~45 minutes
142+
if ( (_tickCount == 900 * 10) || (_tickCount == 2710 * 10) ) {
143+
TipAll();
144+
}
145+
141146
if (_tickCount >= StartRunTicks)
142147
{
143148
if (_isInitialTippingComplete)
@@ -262,5 +267,17 @@ private void TipPlayer(string playerName, string gameName)
262267
SendText(tipCommand);
263268
}
264269

270+
/// <summary>
271+
/// Sends a tip all command to the server.
272+
/// </summary>
273+
private void TipAll()
274+
{
275+
// Construct the tip command.
276+
string tipCommand = "/tipall";
277+
278+
279+
SendText(tipCommand);
280+
}
281+
265282
#endregion
266283
}

MinecraftClient.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ infomessages=true # Informative messages (i.e Most of the messa
5959
#chatfilter= # Regex for filtering chat message
6060
#debugfilter= # Regex for filtering debug message
6161
filtermode=blacklist # blacklist OR whitelist. Blacklist hide message match regex. Whitelist show message match regex
62-
logtofile=true # Write log messages to file
62+
logtofile=false # Write log messages to file
6363
logfile=console-log-%username%-%serverip%.txt # Log file name
6464
prependtimestamp=false # Prepend timestamp to messages in log file
6565
savecolorcodes=false # Keep color codes in the saved text (§b)
@@ -125,7 +125,7 @@ beeponalert=true # Play a beep sound when a word is detected i
125125
[AntiAFK]
126126
# Send a command on a regular basis to avoid automatic AFK disconnection
127127
# /!\ Make sure your server rules do not forbid anti-AFK mechanisms!
128-
enabled=true
128+
enabled=false
129129
delay=4000 #10 = 1s
130130
command=/tipall
131131

@@ -158,7 +158,7 @@ fichiermots=hangman-fr.txt
158158
[ScriptScheduler]
159159
# Schedule commands and scripts to launch on various events such as server join, date/time or time interval
160160
# See README > 'Using the Script Scheduler' for more info
161-
enabled=true
161+
enabled=false
162162
tasksfile=tasks.ini
163163

164164
[RemoteControl]

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
# Hypixel Autotip
22

33
Automatically tip random players on the Minecraft Hypixel Network every hour.
4-
In this repository you find
4+
In this repository you find
5+
56
- A script for the Minecraft Console Client (https://github.com/MCCTeam/Minecraft-Console-Client)
67
- A configuration file for the Minecraft Console Client
78

8-
This repository is *not* affiliated with Hypixel.
9+
This repository is *not* affiliated with Hypixel.
910
Rules should be checked before using this script.
1011

11-
## How it works:
12+
## How it works
13+
1214
1. Joins Bedwars lobby
1315
2. Get online players
1416
3. Tip a random player in the 10 available gamemodes
1517
4. Wait ~1 hour and repeat
1618

17-
## Features
18-
- AntiAFK plugin is used for sending /tipall every x minutes
19-
- Autotip.cs script tips random players
19+
## Features
20+
21+
- Autotip.cs script tips random players and sends /tipall every 30 minutes
2022
- The script retries tipping when the target player went offline
21-
- Automatically reconnects when the connection drops
23+
- MCC automatically reconnects when the connection drops
24+
25+
## Installation
2226

23-
## Installation:
2427
1. Download the Minecraft Console Client & the 2 files in this repository
2528
2. Copy all the files in one folder
2629
3. Edit the MinecraftClient.ini and add your e-mail as login
27-
4. Edit the Autotip.cs and enter your Minecraft username `private const string TipUsername = "<your_name>"`
28-
5. Start the Console Client and login on your browser with the Microsoft login
29-
6. When logged into Hypixel use the command
30+
4. Edit the Autotip.cs and enter your Minecraft username here: `private const string TipUsername = "<your_name>"`
31+
5. Start the Console Client and login within your browser with your Microsoft login
32+
6. When logged into Hypixel use the command:
3033
`/script Autotip.cs`
3134
7. Now you're all set and it should tip every hour

0 commit comments

Comments
 (0)