mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
parent
546ad86841
commit
e2924f4cba
@ -461,9 +461,9 @@ public class Settings extends Config {
|
||||
|
||||
@Comment({
|
||||
"Don't bug console when these plugins slow down WorldEdit operations",
|
||||
" - You'll see a message in console if you need to change this option"
|
||||
" - You'll see a message in console or ingame if you need to change this option"
|
||||
})
|
||||
public List<String> ALLOWED_PLUGINS = new ArrayList<>(Collections.singleton(("ExamplePlugin")));
|
||||
public List<String> ALLOWED_PLUGINS = new ArrayList<>(Collections.singleton(("com.example.ExamplePlugin")));
|
||||
@Comment("Should debug messages be sent when third party extents are used?")
|
||||
public boolean DEBUG = true;
|
||||
|
||||
|
@ -256,23 +256,20 @@ public class EditSessionBuilder {
|
||||
event.getActor().printDebug(TextComponent.of("Potentially unsafe extent blocked: " + toReturn
|
||||
.getClass()
|
||||
.getName()));
|
||||
event.getActor().printDebug(TextComponent.of(
|
||||
" - For area restrictions and block logging, it is recommended to use the FaweAPI"));
|
||||
event.getActor().printDebug(TextComponent.of(" - To allow " + toReturn
|
||||
.getClass()
|
||||
.getName() + ", add it to the FAWE `allowed-plugins` list in config.yml"));
|
||||
event.getActor().printDebug(TextComponent.of(
|
||||
" - If you are unsure which plugin tries to use the extent, you can find some additional information below:"));
|
||||
event.getActor().printDebug(TextComponent.of(" - " + toReturn.getClass().getClassLoader()));
|
||||
event.getActor().print(TextComponent.of(
|
||||
"- For area restrictions and block logging, it is recommended that third party plugins use the FAWE" +
|
||||
" API"));
|
||||
event.getActor().print(TextComponent.of("- Add the following line to the `allowed-plugins` list in the " +
|
||||
"FAWE config.yml to let FAWE recognize the extent:"));
|
||||
event.getActor().print(toReturn.getClass().getName());
|
||||
} else {
|
||||
LOGGER.debug("Potentially unsafe extent blocked: " + toReturn.getClass().getName());
|
||||
LOGGER.debug(" - For area restrictions and block logging, it is recommended to use the FaweAPI");
|
||||
LOGGER.debug(" - To allow " + toReturn
|
||||
.getClass()
|
||||
.getName() + ", add it to the FAWE `allowed-plugins` list in config.yml");
|
||||
LOGGER.debug(
|
||||
" - If you are unsure which plugin tries to use the extent, you can find some additional information below:");
|
||||
LOGGER.debug(" - " + toReturn.getClass().getClassLoader());
|
||||
LOGGER.warn("Potentially unsafe extent blocked: " + toReturn.getClass().getName());
|
||||
LOGGER.warn(
|
||||
" - For area restrictions and block logging, it is recommended that third party plugins use the FAWE API");
|
||||
LOGGER.warn(
|
||||
" - Add the following classpath to the `allowed-plugins` list in the FAWE config.yml to let FAWE " +
|
||||
"recognize the extent:");
|
||||
LOGGER.warn(toReturn.getClass().getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -167,7 +167,6 @@ public final class EditSessionBuilder {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get the {@link BlockBag} associated with the edit if present or null
|
||||
*/
|
||||
@Nullable
|
||||
@ -664,23 +663,20 @@ public final class EditSessionBuilder {
|
||||
event.getActor().printDebug(TextComponent.of("Potentially unsafe extent blocked: " + toReturn
|
||||
.getClass()
|
||||
.getName()));
|
||||
event.getActor().printDebug(TextComponent.of(
|
||||
" - For area restrictions and block logging, it is recommended to use the FaweAPI"));
|
||||
event.getActor().printDebug(TextComponent.of(" - To allow " + toReturn
|
||||
.getClass()
|
||||
.getName() + ", add it to the FAWE `allowed-plugins` list in config.yml"));
|
||||
event.getActor().printDebug(TextComponent.of(
|
||||
" - If you are unsure which plugin tries to use the extent, you can find some additional information below:"));
|
||||
event.getActor().printDebug(TextComponent.of(" - " + toReturn.getClass().getClassLoader()));
|
||||
event.getActor().print(TextComponent.of(
|
||||
"- For area restrictions and block logging, it is recommended that third party plugins use the FAWE" +
|
||||
" API"));
|
||||
event.getActor().print(TextComponent.of("- Add the following line to the `allowed-plugins` list in the " +
|
||||
"FAWE config.yml to let FAWE recognize the extent:"));
|
||||
event.getActor().print(toReturn.getClass().getName());
|
||||
} else {
|
||||
LOGGER.debug("Potentially unsafe extent blocked: " + toReturn.getClass().getName());
|
||||
LOGGER.debug(" - For area restrictions and block logging, it is recommended to use the FaweAPI");
|
||||
LOGGER.debug(" - To allow " + toReturn
|
||||
.getClass()
|
||||
.getName() + ", add it to the FAWE `allowed-plugins` list in config.yml");
|
||||
LOGGER.debug(
|
||||
" - If you are unsure which plugin tries to use the extent, you can find some additional information below:");
|
||||
LOGGER.debug(" - " + toReturn.getClass().getClassLoader());
|
||||
LOGGER.warn("Potentially unsafe extent blocked: " + toReturn.getClass().getName());
|
||||
LOGGER.warn(
|
||||
" - For area restrictions and block logging, it is recommended that third party plugins use the FAWE API");
|
||||
LOGGER.warn(
|
||||
" - Add the following classpath to the `allowed-plugins` list in the FAWE config.yml to let FAWE " +
|
||||
"recognize the extent:");
|
||||
LOGGER.warn(toReturn.getClass().getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user