Difference between revisions of "Translations:TrainCarts/API/SignAction/12/en"

From BergerHealer Wiki
Jump to navigation Jump to search
(Importing a new version from external source)
 
(No difference)

Latest revision as of 12:32, 3 September 2024

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (TrainCarts/API/SignAction)
@Override
   public boolean build(SignChangeActionEvent event) {
       // This is executed when a player places down a sign matching this sign action
       // Permissions are checked and then a message is displayed to the player
       // For simplicity you can use the SignBuildOptions API for this.
       // You are free to use your own code here that checks permissions/etc.
       return SignBuildOptions.create()
               .setName(event.isCartSign() ? "cart welcome greeter" : "train welcome greeter")
               .setDescription("sends a welcome message to all players in the train")
               .handle(event.getPlayer());
   }
}
</pre>

@Override

   public boolean build(SignChangeActionEvent event) {
       // This is executed when a player places down a sign matching this sign action
       // Permissions are checked and then a message is displayed to the player
       // For simplicity you can use the SignBuildOptions API for this.
       // You are free to use your own code here that checks permissions/etc.
       return SignBuildOptions.create()
               .setName(event.isCartSign() ? "cart welcome greeter" : "train welcome greeter")
               .setDescription("sends a welcome message to all players in the train")
               .handle(event.getPlayer());
   }

}