Explicit plugin overriding

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Explicit plugin overriding

Post by Lobby »

To avoid problems that result from accidentally plugin overriding we will forbid overriding unless you specify

Code: Select all

"override":true
in your overriding plugin.

You only have to use this flag if you really want to override another plugin. If you use the same id as an existing plugin by accident, you will be notified about that fact so you can fix it. This pattern of explicit overriding is pretty common for error avoidance, also in programming languages.
User avatar
zybsy
Settler
Reactions:
Posts: 4
Joined: 12 Oct 2025, 12:30

Platform

Re: Explicit plugin overriding

Post by zybsy »

Excuse me,Where should I put this code? :android :bq
Previous topicNext topic