Skip to content

Commit

Permalink
actually fixed issues with messages file.
Browse files Browse the repository at this point in the history
  • Loading branch information
its-c10 committed Jul 8, 2022
1 parent 329a1e6 commit e520e51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/nthbyte/dialogue/DialogueAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public static void hook(JavaPlugin hookingPlugin) {
dialogueManager = new DialogueManager(hookingPlugin);
hookingPlugin.getServer().getPluginManager().registerEvents(new DialogueListener(hookingPlugin, dialogueManager), hookingPlugin);

File dialogueFolder = new File(hookingPlugin.getDataFolder() + File.separator + "dialogue");
if(dialogueFolder.exists()){
File dialogueFolder = new File(hookingPlugin.getDataFolder(), "dialogue");
if(!dialogueFolder.exists()){
dialogueFolder.mkdir();
}

Expand Down

0 comments on commit e520e51

Please sign in to comment.