mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 16:56:32 +01:00
Remove AMP_ENABLED setting since disabling it serves no purpose. Resolve #3409
This commit is contained in:
parent
ccd384b0f3
commit
e3fc5666d4
3 changed files with 7 additions and 4 deletions
|
|
@ -112,6 +112,11 @@ def check_errors(settings):
|
|||
if hasattr(settings, "GAME_DIRECTORY_LISTING"):
|
||||
raise DeprecationWarning(game_directory_deprecation)
|
||||
|
||||
if hasattr(settings, "AMP_ENABLED"):
|
||||
raise DeprecationWarning(
|
||||
"AMP_ENABLED option is no longer supported. Remove it from your settings."
|
||||
)
|
||||
|
||||
chan_connectinfo = settings.CHANNEL_CONNECTINFO
|
||||
if chan_connectinfo is not None and not isinstance(chan_connectinfo, dict):
|
||||
raise DeprecationWarning(
|
||||
|
|
|
|||
|
|
@ -152,8 +152,7 @@ class EvenniaServerService(MultiService):
|
|||
except OperationalError:
|
||||
print("Server server_starting_mode couldn't be set - database not set up.")
|
||||
|
||||
if settings.AMP_ENABLED:
|
||||
self.register_amp()
|
||||
self.register_amp()
|
||||
|
||||
if settings.WEBSERVER_ENABLED:
|
||||
self.register_webserver()
|
||||
|
|
@ -483,7 +482,7 @@ class EvenniaServerService(MultiService):
|
|||
|
||||
# initialize and start global scripts
|
||||
evennia.GLOBAL_SCRIPTS.start()
|
||||
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def shutdown(self, mode="reload", _reactor_stopping=False):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -128,7 +128,6 @@ EVENNIA_ADMIN = True
|
|||
# operating between two processes on the same machine. You usually don't need to
|
||||
# change this unless you cannot use the default AMP port/host for
|
||||
# whatever reason.
|
||||
AMP_ENABLED = True
|
||||
AMP_HOST = "localhost"
|
||||
AMP_PORT = 4006
|
||||
AMP_INTERFACE = "127.0.0.1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue