Multiverse-NetherPortals

Multiverse-NetherPortals

689k Downloads

Possibility to disable the 'no linked world' message

Waterman1001 opened this issue ยท 4 comments

commented

Hey,

Could you please add the option to disable the message:
"No specific end world has been linked to this world and '_the_end' is not a world".

to the config.yml file?

It would help me a lot, since it saves spam in chat.
Thank you so much in advance!
Kind regards,
Waterman1001

commented

@SemicolonStruggles Feel free to submit a PR and I'll ask Dumptruckman to review it & merge it if it met his standards.

commented

Would also very much like to see this.

I found the code causing the message, seems like it should be an easy fix. I might give it a shot soon, have never done any plugin writing/modification so don't get your hopes up :)

if (toLocation == null) {
this.shootPlayer(p, eventLocation.getBlock(), type);
this.messaging.sendMessage(p, "This portal goes nowhere!", false);
if (type == PortalType.END) {
this.messaging.sendMessage(p, "No specific end world has been linked to this world and '" + this.nameChecker.getEndName(currentWorld) + "' is not a world.", true);
} else {
this.messaging.sendMessage(p, "No specific nether world has been linked to this world and '" + this.nameChecker.getNetherName(currentWorld) + "' is not a world.", true);
}
return;

commented

I agree this should be a configuration.

commented

Totally agree, as well as making the "this portal goes nowhere" message optional, it keeps spamming when I attempt to use the portal blocks for other destinations and/or worlds using another plugin (AdvancedPortals). Maybe instead could even add a blacklisted-worlds: section in config for portals in worlds that you don't want MVNP affecting which not only prevent unnecessary messages but any unnecessary checks that the plugin does as well reducing the load on the server if only a tiny bit