Tiger Wang
bab5794f76
Remove some unused typedefs
2021-07-06 21:33:03 +01:00
Feyo Korenhof
9ddc3635d6
Implemented cServer::ScheduleTask() and cServer::TickQueuedTasks() ( #5224 )
2021-05-26 18:07:32 +02:00
Tiger Wang
8a30a4a7b8
Player data loading cleanup
...
* Kick player if data were corrupt to avoid making it worse
2021-03-29 23:36:15 +01:00
Tiger Wang
222d9957a1
cIsThread cleanup
...
+ Semi-gracefully handle unexpected exceptions
* No-one cared about the return values, remove them
2021-03-29 23:36:15 +01:00
Tiger Wang
5123850db0
Fix Windows XP to 7 compatibility ( #5167 )
...
* Partially reverts 01a4e696b
* Unify thread names
- Remove use of GetThreadId API
2021-03-28 13:34:57 +01:00
Tiger Wang
054a89dd9e
Clarify cClientHandle, cPlayer ownership semantics
...
+ A cPlayer, once created, has a strong pointer to the cClientHandle. The player ticks the clienthandle. If he finds the handle destroyed, he destroys himself in turn. Nothing else can kill the player.
* The client handle has a pointer to the player. Once a player is created, the client handle never outlasts the player, nor does it manage the player's lifetime. The pointer is always safe to use after FinishAuthenticate, which is also the point where cProtocol is put into the Game state that allows player manipulation.
+ Entities are once again never lost by constructing a chunk when they try to move into one that doesn't exist.
* Fixed a forgotten Super invocation in cPlayer::OnRemoveFromWorld.
* Fix SaveToDisk usage in destructor by only saving things cPlayer owns, instead of accessing cWorld.
2021-01-12 12:34:34 +00:00
Tiger Wang
eeb63b8901
zlib -> libdeflate ( #5085 )
...
+ Use libdeflate
+ Use std::byte
* Fix passing temporary to string_view
+ Emulate make_unique_for_overwrite
2021-01-11 16:39:43 +00:00
Tiger Wang
d9a7c51d4d
ViewDistance: unsigned -> signed
2020-12-26 16:58:53 +00:00
Tiger Wang
090d8305e4
Warnings improvements
...
* Turn off global-constructors warning. These are needed to implement cRoot signal handler functionality
* Add Clang flags based on version lookup instead of a compile test. The CMake config process is single threaded and slow enough already
* Reduced GetStackValue verbosity
+ Clarify EnchantmentLevel, StayCount, AlwaysTicked, ViewDistance signedness
+ Give SettingsRepositoryInterface a move constructor to simplify main.cpp code
- Remove do {} while (false) construction in redstone handler
2020-12-18 21:03:40 +00:00
[IPSA] Chris de Claverie
9a548b3b3e
Plugin reload <plugin_name> feature ( #4942 )
...
+ Add `reload <pluginname>`
* Fixes #365
Co-authored-by: Alexander Harkness <me@bearbin.net>
Co-authored-by: pwnOrbitals <c.de-claverie@pm.me>
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-27 23:15:03 +01:00
Alexander Harkness
8de71fc9d6
Synchronously save chunks on server shutdown ( #4900 )
...
+ Synchronously save chunks on server shutdown. Fixes #4884
2020-09-21 13:12:09 +01:00
Tiger Wang
1bc12ba2b3
Streamline startup sequence
...
* Clean up cRoot & main
* Move some OS-specifics into OSSupport
2020-09-05 13:16:52 +01:00
Mattes D
0e3039d44c
Added a "reloadweb" command for reloading web admin config.
2020-08-27 17:32:32 +01:00
Tiger Wang
ff2c246de2
cProtocolRecognizer goes on a diet ( #4770 )
...
- Removed inheritance from cProtocol
2020-07-17 18:46:50 +01:00
peterbell10
13144a08e4
Enable some more clang-tidy linter checks ( #4738 )
...
* Avoid inefficient AString -> c_str() -> AString round trip
* Avoid redundant string init expressions
* Avoid unnecessary return, continue, etc.
* Add .clang-format to help with clang-tidy fix-its
* Avoid unnecessary passing by value
* Avoid unnecessary local copying
* Avoid copying in range-for loops
* Avoid over-complicated boolean expressions
* Some violations missed by my local clang-tidy
* Allow unnecessary continue statements
* Add brackets
* Another expression missed locally
* Move BindingsProcessor call into clang-tidy.sh and add space
* Fix pushd not found error
* Different grouping of CheckBlockInteractionRate
2020-05-14 22:15:35 +00:00
Mat
c710f6a4ea
Remove old Android leftovers ( #4722 )
2020-05-07 22:14:00 +03:00
Mattes D
9ee47e5999
Using Super.
2020-04-16 20:07:48 +00:00
Peter Bell
43525c5df8
Acquire chunk map CS when accessing player entities
2020-04-13 17:13:38 +02:00
Mat
6a21bf979c
Initial resource pack support ( #4622 )
2020-04-07 21:23:54 +00:00
Zach DeCook
b9e7505d7f
Buckets: Be able to place fluids through other fluids. ( #4331 )
2019-05-07 20:15:58 +01:00
peterbell10
950aeffff8
CheckBasicStyle: Check number of empty lines between functions ( #4267 )
...
Add check for number of empty lines between functions and fix the corresponding failures
2018-07-26 22:24:36 +01:00
peterbell10
e225b7f826
Replace ItemCallbacks with lambdas ( #3993 )
2017-09-11 23:20:49 +02:00
LogicParrot
49c443896d
Revert "Replace ItemCallbacks with lambdas ( #3948 )"
...
This reverts commit 496c337cdf
.
2017-09-02 08:50:23 +01:00
peterbell10
496c337cdf
Replace ItemCallbacks with lambdas ( #3948 )
2017-09-01 13:04:50 +02:00
satoshinm
6bc5031517
Implement Forge protocol handshake support ( #3869 )
2017-08-27 23:10:20 +02:00
peterbell10
f4f2fc7c3d
Add cUUID class ( #3871 )
2017-08-25 13:43:18 +01:00
peterbell10
759618b035
Remove double includes part 2 ( #3890 )
2017-08-03 15:34:19 +02:00
Tiger Wang
eb4432bb62
Tentative fix for player-limit race condition ( #3862 )
...
* Attempts to fix #2257
Derived from d233e9843148313c71fbaba96ccff660e47b07b1
* Changed player count type to int
* Clarified certain actions
2017-07-28 17:54:40 +01:00
Mattes D
7ac3b0fa0b
Removed the LeakFinder for Windows. ( #3777 )
2017-06-19 11:05:19 +02:00
peterbell10
360d8eade0
FastRandom rewrite ( #3754 )
2017-06-13 21:35:30 +02:00
mathiascode
8cf48f7682
Allow enabling/disabling of block change limit
2017-05-19 19:51:03 +02:00
sweetgiorni
25e4f15488
Custom Disconnect Message
...
Adds a m_ShutdownMessage option to the settings. When the stop command
is issued, players are kicked with said message before the server shuts
down.
2017-01-03 11:15:34 -08:00
Alexander Harkness
a2a9341c24
Tab completion across worlds ( #3270 )
...
Fixes #2563 .
2016-07-21 13:00:30 +02:00
Mattes D
257c5a1a54
cPluginManager: Use a callback for command handler registration.
2016-06-27 20:51:52 +02:00
Mathias
89f3dec7ac
Updated old forum links
2016-01-31 02:25:03 +02:00
Julian Laubstein
5d5f5c9fba
Fixed display of helpmessage
2015-11-23 18:20:37 +01:00
Julian Laubstein
2d8b265133
Added dash to helpstring output
2015-11-23 02:12:19 +01:00
Julian Laubstein
c32b5fcaa9
Removed dashes in help messages for consistency
2015-11-23 02:12:19 +01:00
Safwat Halaby
5fae7a0eee
Revert "Changed description to "Cuberite - Minecraft in C++!""
...
This reverts commit f4406c047e
.
2015-11-22 16:30:33 +02:00
Safwat Halaby
f4406c047e
Changed description to "Cuberite - Minecraft in C++!"
2015-11-20 09:18:44 +02:00
Mattes D
1c8e60f91a
Added LuaState tracker and memory stats logging.
2015-09-28 21:30:31 +02:00
Mattes D
82d9ac1e1c
Namechange to Cuberite
2015-09-25 10:14:17 +02:00
Mattes D
6e4122e551
Unified the doxy-comment format.
2015-07-31 16:49:10 +02:00
Lukas Pioch
e30b2ed487
Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.
2015-05-23 16:28:37 +02:00
tycho
b9efa02c80
Initial implementation of IniFile overloading
2015-05-16 10:46:51 +01:00
wiseoldman95
1b0e21e0b2
A* Pathfinding and better monster AI
2015-05-01 13:18:47 +03:00
Mattes D
be40ea323a
Refresh plugin list before trying to load.
2015-04-19 17:25:48 +02:00
Mattes D
a9b5a6c3a6
Split the plugin names and plugin folders to avoid confusing them.
...
Ref.: http://forum.mc-server.org/showthread.php?tid=1877
2015-04-19 10:57:41 +02:00
flx5
d130696e95
Fixes #493 and #490
2015-03-11 04:14:17 +01:00
Mattes D
6ec5e8caa7
Replaced atoi() with StringToInteger().
2015-01-27 14:53:32 +01:00