summaryrefslogtreecommitdiffstats
path: root/src/Server.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Custom 25565 port page (#5369)Rorkh2022-01-271-0/+1
| | | | | + Add a custom response when an HTTP request comes in to port 25565... Co-authored-by: Alexander Harkness <me@bearbin.net>
* Authentication flow: move construction, slim down classes (#5312)Tiger Wang2021-10-021-5/+5
| | | - Remove extra members in ForgeHandshake
* BungeeGuard style proxy security and OnlyAllowBungee config (#5291)Ethan Jones2021-09-231-0/+8
|
* Remove some unused typedefsTiger Wang2021-07-061-6/+0
|
* Implemented cServer::ScheduleTask() and cServer::TickQueuedTasks() (#5224)Feyo Korenhof2021-05-261-1/+61
|
* Player data loading cleanupTiger Wang2021-03-301-5/+1
| | | | * Kick player if data were corrupt to avoid making it worse
* cIsThread cleanupTiger Wang2021-03-301-1/+2
| | | | | + Semi-gracefully handle unexpected exceptions * No-one cared about the return values, remove them
* Fix Windows XP to 7 compatibility (#5167)Tiger Wang2021-03-281-1/+1
| | | | | * Partially reverts 01a4e696b * Unify thread names - Remove use of GetThreadId API
* Clarify cClientHandle, cPlayer ownership semanticsTiger Wang2021-01-121-4/+6
| | | | | | | | + 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.
* zlib -> libdeflate (#5085)Tiger Wang2021-01-111-5/+0
| | | | | | + Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite
* ViewDistance: unsigned -> signedTiger Wang2020-12-261-4/+4
|
* Warnings improvementsTiger Wang2020-12-181-5/+9
| | | | | | | | | * 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
* Plugin reload <plugin_name> feature (#4942)[IPSA] Chris de Claverie2020-09-281-1/+9
| | | | | | | | + 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>
* Synchronously save chunks on server shutdown (#4900)Alexander Harkness2020-09-211-1/+2
| | | + Synchronously save chunks on server shutdown. Fixes #4884
* Streamline startup sequenceTiger Wang2020-09-051-18/+30
| | | | | * Clean up cRoot & main * Move some OS-specifics into OSSupport
* Added a "reloadweb" command for reloading web admin config.Mattes D2020-08-271-1/+9
|
* cProtocolRecognizer goes on a diet (#4770)Tiger Wang2020-07-171-1/+1
| | | - Removed inheritance from cProtocol
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Remove old Android leftovers (#4722)Mat2020-05-071-1/+1
|
* Using Super.Mattes D2020-04-161-1/+1
|
* Acquire chunk map CS when accessing player entitiesPeter Bell2020-04-131-1/+8
|
* Initial resource pack support (#4622)Mat2020-04-071-0/+1
|
* Buckets: Be able to place fluids through other fluids. (#4331)Zach DeCook2019-05-071-1/+1
|
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+3
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-12/+6
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-6/+12
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-12/+6
|
* Implement Forge protocol handshake support (#3869)satoshinm2017-08-271-0/+50
|
* Add cUUID class (#3871)peterbell102017-08-251-1/+1
|
* Remove double includes part 2 (#3890)peterbell102017-08-031-2/+0
|
* Tentative fix for player-limit race condition (#3862)Tiger Wang2017-07-281-35/+13
| | | | | | | | | | * Attempts to fix #2257 Derived from d233e9843148313c71fbaba96ccff660e47b07b1 * Changed player count type to int * Clarified certain actions
* Removed the LeakFinder for Windows. (#3777)Mattes D2017-06-191-37/+0
|
* FastRandom rewrite (#3754)peterbell102017-06-131-3/+4
|
* Allow enabling/disabling of block change limitmathiascode2017-05-191-0/+1
|
* Custom Disconnect Messagesweetgiorni2017-01-031-0/+1
| | | | | | 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.
* Tab completion across worlds (#3270)Alexander Harkness2016-07-211-0/+1
| | | Fixes #2563.
* cPluginManager: Use a callback for command handler registration.Mattes D2016-06-271-9/+26
|
* Updated old forum linksMathias2016-01-311-1/+1
|
* Fixed display of helpmessageJulian Laubstein2015-11-231-1/+1
|
* Added dash to helpstring outputJulian Laubstein2015-11-231-1/+1
|
* Removed dashes in help messages for consistencyJulian Laubstein2015-11-231-8/+8
|
* Revert "Changed description to "Cuberite - Minecraft in C++!""Safwat Halaby2015-11-221-1/+1
| | | | This reverts commit f4406c047e0d1d11631e350fa61ad04d92b950ba.
* Changed description to "Cuberite - Minecraft in C++!"Safwat Halaby2015-11-201-1/+1
|
* Added LuaState tracker and memory stats logging.Mattes D2015-09-281-0/+9
|
* Namechange to CuberiteMattes D2015-09-251-1/+1
|
* Unified the doxy-comment format.Mattes D2015-07-311-4/+4
|
* Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.Lukas Pioch2015-05-231-1/+1
|
* Initial implementation of IniFile overloadingtycho2015-05-161-11/+11
|
* A* Pathfinding and better monster AIwiseoldman952015-05-011-19/+19
|
* Refresh plugin list before trying to load.Mattes D2015-04-191-0/+1
|
* Split the plugin names and plugin folders to avoid confusing them.Mattes D2015-04-191-15/+4
| | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1877
* Fixes #493 and #490flx52015-03-111-1/+1
|
* Replaced atoi() with StringToInteger().Mattes D2015-01-271-2/+2
|
* Converted cServer to use the cNetwork API.Mattes D2015-01-271-192/+78
|
* Fixed a crash in RCON server.Mattes D2015-01-271-1/+0
|
* Fixed CppCheck: (performance) Possible inefficient checking for emptiness.Kirill Kirilenko2015-01-171-1/+1
|
* Merge pull request #1623 from p-mcgowan/issue_1253Mattes D2014-12-101-0/+18
|\ | | | | Prevent multiple logins with same username, unless allowed in settings
| * Fixed compile errorsVincent2014-12-081-5/+6
| |
| * changed from using iterator to auto for server and clienthandleVincent2014-12-071-2/+2
| |
| * fixed naming of strings and changed from i to IVincent2014-11-291-3/+3
| |
| * issue 1253 - prevent multiple logins with same usernameVincent2014-11-291-0/+17
| |
* | Fixed c++11 branch issues.Mattes D2014-12-071-1/+2
| |
* | Server: Fixed a MSVC warning.Mattes D2014-12-031-1/+1
| |
* | Merged branch 'master' into c++11.Mattes D2014-10-241-1/+1
|\|
| * Merged IniFile into main MCS sources.Mattes D2014-10-231-1/+1
| |
| * En masse NULL -> nullptr replaceTiger Wang2014-10-231-11/+11
| |
* | Missing space.Alexander Harkness2014-10-211-1/+1
| |
* | En masse NULL -> nullptr replaceTiger Wang2014-10-201-11/+11
| |
* | Merge branch 'master' of https://github.com/mc-server/MCServerTiger Wang2014-10-201-0/+11
|\|
| * Fix for fix #1552Julian Laubstein2014-10-201-2/+2
| |
| * Added error messageJulian Laubstein2014-10-201-0/+11
| |
* | Migrated cSleep and cTimer to std::chronoTiger Wang2014-10-201-10/+6
| |
* | Migrated random generators to std::randomTiger Wang2014-10-191-2/+0
|/
* cMojangAPI: Don't update data if server is in offline mode.Mattes D2014-10-171-2/+2
|
* Functions in cPluginManager get references instead of pointers.Mattes D2014-10-151-1/+1
|
* Added an explicit setting for allowing BungeeCord handshake.madmaxoft2014-09-171-0/+7
|
* Merge branch 'master' of https://github.com/mc-server/MCServerTiger Wang2014-08-291-19/+11
|\ | | | | | | | | Conflicts: src/Server.cpp
| * Merge remote-tracking branch 'origin/master' into RanksMattes D2014-08-221-1/+3
| |\
| | * Added initializers for class members.Mattes D2014-08-211-1/+3
| | | | | | | | | | | | As reported by Coverity, these weren't initialized.
| * | Removed cGroup and cGroupManager.Mattes D2014-08-211-18/+8
| |/
* / Added new console command with cleanupTiger Wang2014-08-291-17/+42
|/
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-2/+2
|
* Style: Normalized spaces after if, for and while.madmaxoft2014-07-211-1/+1
|
* Revert "Only one instance of server can be started"Tiger Wang2014-07-201-0/+2
| | | | | | This reverts commit 6484e9814a3a540518606f552398e0b82f91ab4d. * Fixes #1200
* Code style: Fixed braces on separate lines.madmaxoft2014-07-191-1/+2
|
* Removed duplicate IPvX labels.madmaxoft2014-07-181-2/+2
|
* Normalized comments.madmaxoft2014-07-171-3/+3
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Fixed spaces around single-line comments.madmaxoft2014-07-171-3/+3
| | | | There should be at least two spaces in front and one space after //-style comments.
* Store properties as Json::ValueTiger Wang2014-07-161-1/+1
|
* Player properties are now retrievedTiger Wang2014-07-141-2/+2
|
* Only one instance of server can be startedTiger Wang2014-07-131-2/+0
| | | | | | | | | This disallows the UDP multicasting that the original code enabled. xoft deterrent, in PR #1151 you implied that this was unwanted behaviour (but comments gone now as I force pushed - check emails?). Revert at will if unsatisfactory :P
* Player data filenames are based on UUID.madmaxoft2014-07-111-0/+3
|
* Nullify deleted pointers.archshift2014-06-191-0/+1
|
* Fixed some warnings in Server.cpp, and in UI/Julian Laubstein2014-05-191-1/+7
|
* removed the <list> includeJulian Laubstein2014-05-181-1/+0
|
* Added unload <pluginname> commandJulian Laubstein2014-05-181-5/+9
|
* Added load cmdJulian Laubstein2014-05-171-5/+29
|
* Added load command in the cServer classJulian Laubstein2014-05-171-0/+6
|
* Declared one mutex as mutable in order to allow for const correct get accessors.jfhumann2014-04-191-1/+1
|
* Merge remote-tracking branch 'origin/master' into fixesjfhumann2014-04-181-2/+2
|\ | | | | | | | | | | | | | | Conflicts: src/Authenticator.cpp src/ClientHandle.cpp src/Entities/Minecart.cpp src/Protocol/Protocol17x.cpp
| * Added Yggdrasil Authentication Systemdaniel09162014-04-131-2/+2
| | | | | | | | Code by Howaner. Fixes/Changes by me.
* | Did some static analysis, fixed some bugs and optimized a lot of codejfhumann2014-04-181-1/+1
|/
* Merge branch 'Werror' into warningsTycho2014-03-121-1/+1
|\ | | | | | | | | Conflicts: src/Globals.h
| * Unified Vector classesandrew2014-03-111-1/+1
| |
* | Fixed more Format issuesTycho2014-03-111-1/+1
|/
* Merge pull request #709 from Howaner/GlobalFixesMattes D2014-02-281-0/+2
|\ | | | | Add 'Group not found', when the Server load the users.ini and add auto g...
| * Remove old Output FinishHowaner2014-02-211-2/+0
| |
| * Add 'Group not found', when the Server load the users.ini and add auto generate from users.iniHowaner2014-02-211-0/+4
| |
* | Disabled the leak finder.madmaxoft2014-02-201-1/+3
|/
* "reload" is back.STRWarrior2014-02-091-0/+7
|
* Split "reload" in "reloadplugins" and "reloadgroups".STRWarrior2014-02-091-2/+5
|
* The console reload command also reloads the groups.STRWarrior2014-02-091-0/+1
|
* Protocol 1.7: Forced encryption on all connections.madmaxoft2014-01-281-1/+2
| | | | This is for testing purposes only, to find bugs in the encryption. Once the encryption is deemed stable, it will be enabled only for servers with enabled Authentication.
* Merge pull request #587 from mc-server/mobimprovementsMattes D2014-01-251-1/+1
|\ | | | | Mob improvements & rudimentary artificial intelligence
| * Mob bugfixesTiger Wang2014-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | * Mobs no longer require constant line-of-sight to a player to remain aggravated * Fixed an ASSERT * Fixed mobs jumping * Fixed Idle state not properly using AI + Added FILE_IO_PREFIX to favicon loading + Implemented #563
* | PolarSSL is fully used for 1.3.2 protocol encryption.madmaxoft2014-01-231-10/+2
|/
* Merge branch 'master' of https://github.com/mc-server/MCServerandrew2014-01-211-10/+1
|\
| * Rewritten SocketThreads for proper shutdown scenario.madmaxoft2014-01-191-10/+1
| | | | | | | | This fixes #560 and #390.
* | Scoreboard protocol supportandrew2014-01-211-1/+1
|/
* Command blocks: Execute()andrew2014-01-181-1/+1
|
* Fixed faviconsTiger Wang2014-01-071-13/+1
|
* Merge pull request #514 from derouinw/masterMattes D2014-01-071-0/+14
|\ | | | | Implement favicon for 1.7.2
| * Avoid making copies of favicon stringBill Derouin2014-01-071-1/+1
| |
| * A few more touch upsBill Derouin2014-01-071-1/+1
| |
| * A few touch upsBill Derouin2014-01-071-1/+4
| |
| * Implement favicon for 1.7.2Bill Derouin2014-01-071-0/+11
| | | | | | | | | | Favicon data is a png encoded in base64 which is stored in the server and sent in the server response packet
* | More MSVC warning fixes.madmaxoft2014-01-071-1/+1
|/
* fixxed warnings in Server.cppTycho Bickerstaff2013-12-311-0/+5
|
* Fixed cClientHandle::Tick() being called from two threads.madmaxoft2013-12-161-1/+1
| | | | | When the player was initialized, the Tick() function continued to stream chunk, while the cWorld called Tick() from its tick thread. Final fix for #187.
* Moved bindings-related to a Bindings subfolder.madmaxoft2013-12-081-1/+1
| | | | Ref.: #407
* Fixed the remaining derpsAlexander Harkness2013-11-271-2/+2
|
* Compile fix againTiger Wang2013-11-261-1/+1
|
* Fixed Linux compile againTiger Wang2013-11-261-1/+1
|
* Attempt to fix compilationTiger Wang2013-11-241-2/+2
|
* Moved source to srcAlexander Harkness2013-11-241-0/+707