diff --git a/.metadata/.log b/.metadata/.log index 81a75d1..26a2f72 100644 --- a/.metadata/.log +++ b/.metadata/.log @@ -4758,3 +4758,108 @@ user global configuration and to define the default location to store repositori not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and EGit might behave differently since they see different configuration options. This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. +!SESSION 2021-11-20 12:02:57.813 ----------------------------------------------- +eclipse.buildId=4.20.0.I20210611-1600 +java.version=16.0.1 +java.vendor=Oracle Corporation +BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT +Framework arguments: -product org.eclipse.epp.package.java.product +Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product + +!ENTRY org.eclipse.jface 2 0 2021-11-20 12:03:08.082 +!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. +!SUBENTRY 1 org.eclipse.jface 2 0 2021-11-20 12:03:08.082 +!MESSAGE A conflict occurred for CTRL+SHIFT+T: +Binding(CTRL+SHIFT+T, + ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type, + Open a type in a Java editor, + Category(org.eclipse.ui.category.navigate,Navigate,null,true), + org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6614289a, + ,,true),null), + org.eclipse.ui.defaultAcceleratorConfiguration, + org.eclipse.ui.contexts.window,,,system) +Binding(CTRL+SHIFT+T, + ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace, + , + Category(org.eclipse.lsp4e.category,Language Servers,null,true), + org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@4148ce43, + ,,true),null), + org.eclipse.ui.defaultAcceleratorConfiguration, + org.eclipse.ui.contexts.window,,,system) + +!ENTRY org.eclipse.egit.ui 2 0 2021-11-20 12:03:13.165 +!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git +user global configuration and to define the default location to store repositories: 'C:\Users\Miche'. If this is +not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and +EGit might behave differently since they see different configuration options. +This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. +!SESSION 2021-11-21 18:00:00.066 ----------------------------------------------- +eclipse.buildId=4.20.0.I20210611-1600 +java.version=16.0.1 +java.vendor=Oracle Corporation +BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT +Framework arguments: -product org.eclipse.epp.package.java.product +Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product + +!ENTRY org.eclipse.jface 2 0 2021-11-21 18:00:08.467 +!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. +!SUBENTRY 1 org.eclipse.jface 2 0 2021-11-21 18:00:08.467 +!MESSAGE A conflict occurred for CTRL+SHIFT+T: +Binding(CTRL+SHIFT+T, + ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type, + Open a type in a Java editor, + Category(org.eclipse.ui.category.navigate,Navigate,null,true), + org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@7f1fec57, + ,,true),null), + org.eclipse.ui.defaultAcceleratorConfiguration, + org.eclipse.ui.contexts.window,,,system) +Binding(CTRL+SHIFT+T, + ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace, + , + Category(org.eclipse.lsp4e.category,Language Servers,null,true), + org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@5c9e3d01, + ,,true),null), + org.eclipse.ui.defaultAcceleratorConfiguration, + org.eclipse.ui.contexts.window,,,system) + +!ENTRY org.eclipse.egit.ui 2 0 2021-11-21 18:00:13.713 +!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git +user global configuration and to define the default location to store repositories: 'C:\Users\Miche'. If this is +not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and +EGit might behave differently since they see different configuration options. +This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. +!SESSION 2021-11-22 18:10:34.322 ----------------------------------------------- +eclipse.buildId=4.20.0.I20210611-1600 +java.version=16.0.1 +java.vendor=Oracle Corporation +BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT +Framework arguments: -product org.eclipse.epp.package.java.product +Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product + +!ENTRY org.eclipse.jface 2 0 2021-11-22 18:10:43.311 +!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation. +!SUBENTRY 1 org.eclipse.jface 2 0 2021-11-22 18:10:43.311 +!MESSAGE A conflict occurred for CTRL+SHIFT+T: +Binding(CTRL+SHIFT+T, + ParameterizedCommand(Command(org.eclipse.jdt.ui.navigate.open.type,Open Type, + Open a type in a Java editor, + Category(org.eclipse.ui.category.navigate,Navigate,null,true), + org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@6614289a, + ,,true),null), + org.eclipse.ui.defaultAcceleratorConfiguration, + org.eclipse.ui.contexts.window,,,system) +Binding(CTRL+SHIFT+T, + ParameterizedCommand(Command(org.eclipse.lsp4e.symbolinworkspace,Go to Symbol in Workspace, + , + Category(org.eclipse.lsp4e.category,Language Servers,null,true), + org.eclipse.ui.internal.WorkbenchHandlerServiceHandler@4148ce43, + ,,true),null), + org.eclipse.ui.defaultAcceleratorConfiguration, + org.eclipse.ui.contexts.window,,,system) + +!ENTRY org.eclipse.egit.ui 2 0 2021-11-22 18:10:50.279 +!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git +user global configuration and to define the default location to store repositories: 'C:\Users\Miche'. If this is +not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and +EGit might behave differently since they see different configuration options. +This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/2d/102ec61f304a001c12ab9f22518c2a8d b/.metadata/.plugins/org.eclipse.core.resources/.history/2d/102ec61f304a001c12ab9f22518c2a8d new file mode 100644 index 0000000..5fc0df2 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/2d/102ec61f304a001c12ab9f22518c2a8d @@ -0,0 +1,6 @@ +main: logdel8.Main +name: LogDel8 +version: 1.0 +author: PokeMichele +description: Log File Remover +api-version: 1.14 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/45/d083f11f304a001c12ab9f22518c2a8d b/.metadata/.plugins/org.eclipse.core.resources/.history/45/d083f11f304a001c12ab9f22518c2a8d new file mode 100644 index 0000000..b5af3f6 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/45/d083f11f304a001c12ab9f22518c2a8d @@ -0,0 +1,5 @@ +package logdel8; + +public class LogDelCommand { + +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/56/a092de30f949001c12ab9f22518c2a8d b/.metadata/.plugins/org.eclipse.core.resources/.history/56/a092de30f949001c12ab9f22518c2a8d new file mode 100644 index 0000000..2bb7080 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/56/a092de30f949001c12ab9f22518c2a8d @@ -0,0 +1,89 @@ +package logdel8; + +import java.io.File; +import java.io.IOException; +import org.apache.commons.*; +import org.apache.commons.io.FileUtils; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.plugin.java.JavaPlugin; +import org.bukkit.command.CommandExecutor; +@SuppressWarnings("unused") + +public class Main extends JavaPlugin { + + public static Main plugin; + + + //get plugin instance + public static Main getInstance() { + return plugin; + + } + + //define directory + File LogDir = new File("/logs/"); + + + + //Delete Logs Method + public void LogDelete() { + + // TODO Auto-generated method stub + + + //log file remove + System.out.println("Removing Logs...."); + + + if(LogDir.exists()) { + //wait x minutes + try { + Thread.sleep(Main.getInstance().getConfig().getInt("settings.time-between-log-removing-in-ms")); + } catch (InterruptedException ex) { + System.out.println(ex); + } + + try { + FileUtils.cleanDirectory(LogDir); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + System.out.println("Logs Removed :D"); + + //repeat + LogDelete(); + + + } + + + + + + //OnEnable + public void onEnable() { + plugin = this; + System.out.println("LogDel8 is now Enabled"); + + //crea cartella del config.yml + saveDefaultConfig(); + + this.getClassLoader(); + + //delete Logs + LogDelete(); + + + } + + //OnDisable + public void onDisable() { + System.out.println("LogDel8 is now Disabled"); + } + + +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/74/304f8071b94b001c1936d4e0d78cb6c2 b/.metadata/.plugins/org.eclipse.core.resources/.history/74/304f8071b94b001c1936d4e0d78cb6c2 new file mode 100644 index 0000000..b775bd1 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/74/304f8071b94b001c1936d4e0d78cb6c2 @@ -0,0 +1,94 @@ +package logdel8; + +import java.io.File; +import java.io.IOException; +import org.apache.commons.*; +import org.apache.commons.io.FileUtils; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.plugin.java.JavaPlugin; +import org.bukkit.command.CommandExecutor; +@SuppressWarnings("unused") + +public class Main extends JavaPlugin { + + public static Main plugin; + + + //get plugin instance + public static Main getInstance() { + return plugin; + + } + + //define directory + File LogDir = new File("/logs/"); + + + + //Delete Logs Method + public void LogDelete() { + + // TODO Auto-generated method stub + + + //log file remove + System.out.println("Removing Logs...."); + + + if(LogDir.exists()) { + try { + FileUtils.cleanDirectory(LogDir); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + //wait 10 minutes or x minutes + try { + Thread.sleep(Main.getInstance().getConfig().getInt("settings.time-between-log-removing-in-ms")); + } catch (InterruptedException ex) { + System.out.println(ex); + } + System.out.println("Logs Removed :D"); + + //repeat + LogDelete(); + + + } + + + + + + //OnEnable + public void onEnable() { + plugin = this; + System.out.println("LogDel8 is now Enabled"); + + //crea cartella del config.yml + saveDefaultConfig(); + + this.getClassLoader(); + + //delete Logs + //wait 10 minutes or x minutes + try { + Thread.sleep(Main.getInstance().getConfig().getInt("settings.time-between-log-removing-in-ms")); + } catch (InterruptedException ex) { + System.out.println(ex); + } + LogDelete(); + + + } + + //OnDisable + public void onDisable() { + System.out.println("LogDel8 is now Disabled"); + } + + +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/8c/906010e00e4a001c12ab9f22518c2a8d b/.metadata/.plugins/org.eclipse.core.resources/.history/8c/906010e00e4a001c12ab9f22518c2a8d new file mode 100644 index 0000000..e69de29 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/9e/40f66df0fb49001c12ab9f22518c2a8d b/.metadata/.plugins/org.eclipse.core.resources/.history/9e/40f66df0fb49001c12ab9f22518c2a8d new file mode 100644 index 0000000..28e86ff --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/9e/40f66df0fb49001c12ab9f22518c2a8d @@ -0,0 +1,8 @@ +main: logdel8.Main +name: LogDel8 +version: '1.0' +author: PokeMichele +description: Log File Remover +api-version: 1.14 +commands: [] + \ No newline at end of file diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/bb/50996b89f849001c12ab9f22518c2a8d b/.metadata/.plugins/org.eclipse.core.resources/.history/bb/50996b89f849001c12ab9f22518c2a8d new file mode 100644 index 0000000..b8b31ef --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/bb/50996b89f849001c12ab9f22518c2a8d @@ -0,0 +1,90 @@ +package logdel8; + +import java.io.File; +import java.io.IOException; +import org.apache.commons.*; +import org.apache.commons.io.FileUtils; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.plugin.java.JavaPlugin; +import org.bukkit.command.CommandExecutor; +@SuppressWarnings("unused") + +public class Main extends JavaPlugin { + + public static Main plugin; + + + //get plugin instance + public static Main getInstance() { + return plugin; + + } + + //define directory + File LogDir = new File("/logs/"); + + + + //Delete Logs Method + public void LogDelete() { + + // TODO Auto-generated method stub + + + //log file remove + System.out.println("Removing Logs...."); + + + if(LogDir.exists()) { + try { + FileUtils.cleanDirectory(LogDir); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + + //wait 10 minutes or x minutes + try { + Thread.sleep(Main.getInstance().getConfig().getInt("settings.time-between-log-removing-in-ms")); + } catch (InterruptedException ex) { + System.out.println(ex); + } + System.out.println("Logs Removed :D"); + + //repeat + LogDelete(); + + + } + + + + + + //OnEnable + public void onEnable() { + plugin = this; + System.out.println("LogDel8 is now Enabled"); + + //crea cartella del config.yml + saveDefaultConfig(); + + this.getClassLoader(); + + //delete Logs + LogDelete(); + + + } + + //OnDisable + public void onDisable() { + System.out.println("LogDel8 is now Disabled"); + } + + +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/d6/c0fb2f4ef749001c12ab9f22518c2a8d b/.metadata/.plugins/org.eclipse.core.resources/.history/d6/c0fb2f4ef749001c12ab9f22518c2a8d new file mode 100644 index 0000000..e69de29 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e8/80f7b9f3fc49001c12ab9f22518c2a8d b/.metadata/.plugins/org.eclipse.core.resources/.history/e8/80f7b9f3fc49001c12ab9f22518c2a8d new file mode 100644 index 0000000..9d267c5 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/e8/80f7b9f3fc49001c12ab9f22518c2a8d @@ -0,0 +1,8 @@ +main: logdel8.Main +name: LogDel8 +version: 1.0 +author: PokeMichele +description: Log File Remover +api-version: 1.14 +commands: [] + \ No newline at end of file diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/f2/10204acc034a001c12ab9f22518c2a8d b/.metadata/.plugins/org.eclipse.core.resources/.history/f2/10204acc034a001c12ab9f22518c2a8d new file mode 100644 index 0000000..af187a1 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/f2/10204acc034a001c12ab9f22518c2a8d @@ -0,0 +1,7 @@ +main: logdel8.Main +name: LogDel8 +version: 1.0 +author: PokeMichele +description: Log File Remover +api-version: 1.14 +commands: [] \ No newline at end of file diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.markers.snap new file mode 100644 index 0000000..91d6c54 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.markers.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.syncinfo.snap new file mode 100644 index 0000000..91d6c54 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.syncinfo.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.indexes/e4/d1/history.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.indexes/e4/d1/history.index new file mode 100644 index 0000000..8676357 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.indexes/e4/d1/history.index differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.indexes/history.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.indexes/history.index new file mode 100644 index 0000000..5067c68 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.indexes/history.index differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.markers b/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.markers index 960b9b8..c0adee9 100644 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.markers and b/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.markers differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.markers.snap new file mode 100644 index 0000000..31fca98 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.markers.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.syncinfo.snap new file mode 100644 index 0000000..91d6c54 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/.syncinfo.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/org.eclipse.jdt.core/state.dat b/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/org.eclipse.jdt.core/state.dat deleted file mode 100644 index 36a74a6..0000000 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.projects/LogDel8/org.eclipse.jdt.core/state.dat and /dev/null differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap new file mode 100644 index 0000000..91d6c54 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/15.tree b/.metadata/.plugins/org.eclipse.core.resources/.root/15.tree deleted file mode 100644 index c4e3d33..0000000 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.root/15.tree and /dev/null differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/17.tree b/.metadata/.plugins/org.eclipse.core.resources/.root/17.tree new file mode 100644 index 0000000..9eabc97 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/.root/17.tree differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources index fc6c403..4b54056 100644 Binary files a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources and b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources differ diff --git a/.metadata/.plugins/org.eclipse.core.resources/17.snap b/.metadata/.plugins/org.eclipse.core.resources/17.snap new file mode 100644 index 0000000..2c56d61 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.core.resources/17.snap differ diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs index 9bb3b38..654210e 100644 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs +++ b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs @@ -1,7 +1,88 @@ +content_assist_completion_replacement_background=200,200,0 +content_assist_completion_replacement_foreground=200,0,0 content_assist_lru_history= content_assist_number_of_computers=12 +content_assist_parameters_background=52,57,61 +content_assist_parameters_foreground=238,238,238 +content_assist_proposals_background=52,57,61 +content_assist_proposals_foreground=238,238,238 eclipse.preferences.version=1 +java_bracket=249,250,244 +java_comment_task_tag=154,140,124 +java_default=217,232,247 +java_doc_default=128,128,128 +java_doc_keyword=154,140,124 +java_doc_link=169,156,140 +java_doc_tag=30,120,155 +java_keyword=204,108,29 +java_keyword_bold=false +java_keyword_return=204,108,29 +java_keyword_return_bold=false +java_multi_line_comment=128,128,128 +java_operator=230,230,250 +java_single_line_comment=128,128,128 +java_string=23,198,163 +matchingBracketsColor=249,250,244 org.eclipse.jdt.ui.formatterprofiles.version=21 +overriddenByCSS=,content_assist_completion_replacement_background,content_assist_completion_replacement_foreground,content_assist_parameters_background,content_assist_parameters_foreground,content_assist_proposals_background,content_assist_proposals_foreground,java_bracket,java_comment_task_tag,java_default,java_doc_default,java_doc_keyword,java_doc_link,java_doc_tag,java_keyword,java_keyword_bold,java_keyword_return,java_keyword_return_bold,java_multi_line_comment,java_operator,java_single_line_comment,java_string,matchingBracketsColor,pf_coloring_argument,pf_coloring_assignment,pf_coloring_comment,pf_coloring_key,pf_coloring_value,semanticHighlighting.abstractClass.color,semanticHighlighting.abstractClass.enabled,semanticHighlighting.abstractMethodInvocation.color,semanticHighlighting.abstractMethodInvocation.enabled,semanticHighlighting.annotation.color,semanticHighlighting.annotation.enabled,semanticHighlighting.annotation.italic,semanticHighlighting.annotationElementReference.color,semanticHighlighting.annotationElementReference.enabled,semanticHighlighting.class.color,semanticHighlighting.class.enabled,semanticHighlighting.deprecatedMember.color,semanticHighlighting.deprecatedMember.enabled,semanticHighlighting.deprecatedMember.underline,semanticHighlighting.deprecatedMember.strikethrough,semanticHighlighting.enum.color,semanticHighlighting.enum.enabled,semanticHighlighting.enum.italic,semanticHighlighting.field.color,semanticHighlighting.field.enabled,semanticHighlighting.inheritedField.color,semanticHighlighting.inheritedMethodInvocation.color,semanticHighlighting.inheritedMethodInvocation.enabled,semanticHighlighting.interface.color,semanticHighlighting.interface.enabled,semanticHighlighting.localVariable.color,semanticHighlighting.localVariable.enabled,semanticHighlighting.localVariableDeclaration.color,semanticHighlighting.localVariableDeclaration.enabled,semanticHighlighting.localVariableDeclaration.bold,semanticHighlighting.method.color,semanticHighlighting.method.enabled,semanticHighlighting.methodDeclarationName.color,semanticHighlighting.methodDeclarationName.enabled,semanticHighlighting.methodDeclarationName.bold,semanticHighlighting.number.color,semanticHighlighting.number.enabled,semanticHighlighting.parameterVariable.color,semanticHighlighting.parameterVariable.enabled,semanticHighlighting.staticField.color,semanticHighlighting.staticField.enabled,semanticHighlighting.staticFinalField.color,semanticHighlighting.staticFinalField.enabled,semanticHighlighting.staticMethodInvocation.color,semanticHighlighting.staticMethodInvocation.enabled,semanticHighlighting.typeArgument.color,semanticHighlighting.typeArgument.enabled,semanticHighlighting.typeParameter.color,semanticHighlighting.typeParameter.enabled,semanticHighlighting.typeParameter.bold,semanticHighlighting.restrictedKeywords.color,semanticHighlighting.restrictedKeywords.bold,sourceHoverBackgroundColor, +pf_coloring_argument=221,40,103 +pf_coloring_assignment=217,232,247 +pf_coloring_comment=128,128,128 +pf_coloring_key=217,232,247 +pf_coloring_value=23,198,163 +semanticHighlighting.abstractClass.color=62,171,230 +semanticHighlighting.abstractClass.enabled=true +semanticHighlighting.abstractMethodInvocation.color=128,246,167 +semanticHighlighting.abstractMethodInvocation.enabled=true +semanticHighlighting.annotation.color=160,160,160 +semanticHighlighting.annotation.enabled=true +semanticHighlighting.annotation.italic=true +semanticHighlighting.annotationElementReference.color=235,75,100 +semanticHighlighting.annotationElementReference.enabled=true +semanticHighlighting.class.color=18,144,195 +semanticHighlighting.class.enabled=true +semanticHighlighting.deprecatedMember.color=128,128,128 +semanticHighlighting.deprecatedMember.enabled=true +semanticHighlighting.deprecatedMember.strikethrough=true +semanticHighlighting.deprecatedMember.underline=false +semanticHighlighting.enum.color=204,129,186 +semanticHighlighting.enum.enabled=true +semanticHighlighting.enum.italic=true +semanticHighlighting.field.color=102,225,248 +semanticHighlighting.field.enabled=true +semanticHighlighting.inheritedField.color=143,143,191 +semanticHighlighting.inheritedMethodInvocation.color=205,246,104 +semanticHighlighting.inheritedMethodInvocation.enabled=true +semanticHighlighting.interface.color=128,242,246 +semanticHighlighting.interface.enabled=true +semanticHighlighting.localVariable.color=243,236,121 +semanticHighlighting.localVariable.enabled=true +semanticHighlighting.localVariableDeclaration.bold=false +semanticHighlighting.localVariableDeclaration.color=242,242,0 +semanticHighlighting.localVariableDeclaration.enabled=true +semanticHighlighting.method.color=167,236,33 +semanticHighlighting.method.enabled=true +semanticHighlighting.methodDeclarationName.bold=false +semanticHighlighting.methodDeclarationName.color=30,181,64 +semanticHighlighting.methodDeclarationName.enabled=true +semanticHighlighting.number.color=104,151,187 +semanticHighlighting.number.enabled=true +semanticHighlighting.parameterVariable.color=121,171,255 +semanticHighlighting.parameterVariable.enabled=true +semanticHighlighting.restrictedKeywords.bold=false +semanticHighlighting.restrictedKeywords.color=204,108,29 +semanticHighlighting.staticField.color=141,218,248 +semanticHighlighting.staticField.enabled=true +semanticHighlighting.staticFinalField.color=141,218,248 +semanticHighlighting.staticFinalField.enabled=true +semanticHighlighting.staticMethodInvocation.color=150,236,63 +semanticHighlighting.staticMethodInvocation.enabled=true +semanticHighlighting.typeArgument.color=177,102,218 +semanticHighlighting.typeArgument.enabled=true +semanticHighlighting.typeParameter.bold=false +semanticHighlighting.typeParameter.color=191,164,164 +semanticHighlighting.typeParameter.enabled=true +sourceHoverBackgroundColor=68,68,68 spelling_locale_initialized=true useAnnotationsPrefPage=true useQuickDiffPrefPage=true diff --git a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi index e374f92..aed9d83 100644 --- a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi +++ b/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi @@ -1,8 +1,8 @@ - - + + activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration - + @@ -11,9 +11,9 @@ topLevel shellMaximized - - - + + + persp.actionSet:org.eclipse.ui.cheatsheets.actionSet persp.actionSet:org.eclipse.search.searchActionSet @@ -71,89 +71,90 @@ persp.actionSet:org.eclipse.jdt.junit.JUnitActionSet persp.viewSC:org.eclipse.ant.ui.views.AntView persp.actionSet:org.eclipse.ui.edit.text.actionSet.presentation - - - + + + org.eclipse.e4.primaryNavigationStack - + active + noFocus + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:Java - - + + View categoryTag:Git - - - - + + + + org.eclipse.e4.secondaryNavigationStack - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Ant - + org.eclipse.e4.secondaryDataStack - active - + View categoryTag:General - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Terminal @@ -162,2092 +163,2106 @@ - - + + View categoryTag:Help - + View categoryTag:General - + View categoryTag:Help - + View categoryTag:Help - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:Help - - + + org.eclipse.e4.primaryDataStack EditorStack - - + + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - + Editor removeOnHide org.eclipse.jdt.ui.CompilationUnitEditor - - + + Editor removeOnHide yamleditor.editors.YamlEditor + + + Editor + removeOnHide + yamleditor.editors.YamlEditor + + + + Editor + removeOnHide + org.eclipse.jdt.ui.CompilationUnitEditor + - + View categoryTag:Java - + active + ViewMenu menuContribution:menu - + - + View categoryTag:Java - + View categoryTag:General - + - + View categoryTag:General - active - activeOnClose - + ViewMenu menuContribution:menu - + - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Git - + View categoryTag:Terminal - + View categoryTag:Java - + View categoryTag:Ant - - + + toolbarSeparator - + - + Draggable - + - + toolbarSeparator - + - + Draggable - + toolbarSeparator - + - + Draggable - + Draggable - + Draggable - + Draggable - + toolbarSeparator - + + + + Draggable + - + Draggable - - + toolbarSeparator - + - + toolbarSeparator - + - + Draggable - + stretch SHOW_RESTORE_MENU - + Draggable HIDEABLE SHOW_RESTORE_MENU - - + + stretch - + Draggable - + Draggable - - + + TrimStack Draggable - + TrimStack Draggable - - + + TrimStack Draggable - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + platform:win32 - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - + + - - - - - - - - - + + + + + + + + + - - - + + + - - - + + + - - - - - + + + + + - - + + - - - - + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - + + - - + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + - - + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - + + - - - - - - - + + + + + + + - - - - + + + + - - - - - - + + + + + + - - - + + + - - - - - - + + + + + + - - - - - - - - + + + + + + + + - - + + - - - - + + + + - - + + - - + + - - - + + + - - + + - - + + platform:win32 - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - + + + - - - - - - - - + + + + + + + + - - - - - + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Editor removeOnHide - + View categoryTag:Ant - + View categoryTag:Gradle - + View categoryTag:Gradle - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Java - + View categoryTag:Git - + View categoryTag:Git - + View categoryTag:Git - + View categoryTag:Git NoRestore - + View categoryTag:Git - + View categoryTag:Help - + View categoryTag:Debug - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:Java Browsing - + View categoryTag:Java Browsing - + View categoryTag:Java Browsing - + View categoryTag:Java Browsing - + View categoryTag:Java - + View categoryTag:General - + View categoryTag:Java - + View categoryTag:Java - + View categoryTag:Maven - + View categoryTag:Maven - + View categoryTag:Oomph - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Version Control (Team) - + View categoryTag:Version Control (Team) - + View categoryTag:Help - + View categoryTag:Terminal - + View categoryTag:Other - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Help - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:XML - + View categoryTag:XML - - + + glue move_after:PerspectiveSpacer SHOW_RESTORE_MENU - + move_after:Spacer Glue HIDEABLE SHOW_RESTORE_MENU - + glue move_after:SearchField SHOW_RESTORE_MENU - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - + + + - - - - + + + + - - - + + + - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.metadata/.plugins/org.eclipse.jdt.core/2375051947.index b/.metadata/.plugins/org.eclipse.jdt.core/2375051947.index index 40a1bdc..3b8b938 100644 Binary files a/.metadata/.plugins/org.eclipse.jdt.core/2375051947.index and b/.metadata/.plugins/org.eclipse.jdt.core/2375051947.index differ diff --git a/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps b/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps index 462f3d0..b8e6c67 100644 Binary files a/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps and b/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps differ diff --git a/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt b/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt index 7727a2a..9e7d691 100644 --- a/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt +++ b/.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt @@ -1,5 +1,4 @@ INDEX VERSION 1.131+C:\Users\Miche\Downloads\LogDel8\.metadata\.plugins\org.eclipse.jdt.core -2375051947.index 2858616456.index 258218367.index 1071196072.index diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml b/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml index 3dd9ace..3ba5376 100644 --- a/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml +++ b/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml @@ -29,4 +29,6 @@ + + diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml b/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml index 6292b6e..b3dbdc9 100644 --- a/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml +++ b/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml @@ -50,6 +50,7 @@ + diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png new file mode 100644 index 0000000..7b019ba Binary files /dev/null and b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png differ diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/1.png b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/1.png new file mode 100644 index 0000000..8bb97ce Binary files /dev/null and b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/1.png differ diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/2.png b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/2.png new file mode 100644 index 0000000..a839ceb Binary files /dev/null and b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/2.png differ diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/3.png b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/3.png new file mode 100644 index 0000000..4191b7c Binary files /dev/null and b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/3.png differ diff --git a/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/4.png b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/4.png new file mode 100644 index 0000000..be086d7 Binary files /dev/null and b/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/4.png differ diff --git a/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log b/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log index 5399ebb..48368b1 100644 --- a/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log +++ b/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log @@ -18,3 +18,5 @@ 2021-09-22 16:07:59,305 [Worker-7: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. 2021-09-23 14:52:38,343 [Worker-7: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. 2021-11-18 16:13:25,135 [Worker-7: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. +2021-11-20 12:03:13,133 [Worker-7: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. +2021-11-21 18:00:13,677 [Worker-6: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. diff --git a/.metadata/.plugins/org.eclipse.ui.editors/dialog_settings.xml b/.metadata/.plugins/org.eclipse.ui.editors/dialog_settings.xml new file mode 100644 index 0000000..50f1edb --- /dev/null +++ b/.metadata/.plugins/org.eclipse.ui.editors/dialog_settings.xml @@ -0,0 +1,5 @@ + +
+
+
+
diff --git a/.metadata/version.ini b/.metadata/version.ini index 18f5546..7612c12 100644 --- a/.metadata/version.ini +++ b/.metadata/version.ini @@ -1,3 +1,3 @@ -#Thu Nov 18 16:13:18 CET 2021 +#Mon Nov 22 18:10:40 CET 2021 org.eclipse.core.runtime=2 org.eclipse.platform=4.20.0.v20210611-1600 diff --git a/LogDel8/bin/logdel8/LogDelCommand.class b/LogDel8/bin/logdel8/LogDelCommand.class new file mode 100644 index 0000000..ac5beaa Binary files /dev/null and b/LogDel8/bin/logdel8/LogDelCommand.class differ diff --git a/LogDel8/bin/logdel8/Main.class b/LogDel8/bin/logdel8/Main.class index d7c4496..d83e794 100644 Binary files a/LogDel8/bin/logdel8/Main.class and b/LogDel8/bin/logdel8/Main.class differ diff --git a/LogDel8/config.yml b/LogDel8/config.yml new file mode 100644 index 0000000..dd86847 --- /dev/null +++ b/LogDel8/config.yml @@ -0,0 +1,2 @@ +settings: + time-between-log-removing-in-ms: 600000 # the default time is 600000ms (10 minutes) \ No newline at end of file diff --git a/LogDel8/plugin.yml b/LogDel8/plugin.yml index 00cc2cc..e89f9ed 100644 --- a/LogDel8/plugin.yml +++ b/LogDel8/plugin.yml @@ -1,7 +1,10 @@ main: logdel8.Main name: LogDel8 -version: '1.0' +version: 1.0 author: PokeMichele description: Log File Remover -commands: [] - \ No newline at end of file +api-version: 1.14 +commands: + logdel: + description: Delete Logs Manually + aliases: [logd, dlogs] \ No newline at end of file diff --git a/LogDel8/src/logdel8/LogDelCommand.java b/LogDel8/src/logdel8/LogDelCommand.java new file mode 100644 index 0000000..bf3bbb9 --- /dev/null +++ b/LogDel8/src/logdel8/LogDelCommand.java @@ -0,0 +1,25 @@ +package logdel8; + +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; + +public class LogDelCommand implements CommandExecutor{ + + @Override + public boolean onCommand(CommandSender sender, Command cmd, String CommandLabel, String[] args) { + + if(cmd.getName().equalsIgnoreCase("logdel")) { + + Main.getInstance().LogDelete(); + + } + + + return false; + } + + + + +} diff --git a/LogDel8/src/logdel8/Main.java b/LogDel8/src/logdel8/Main.java index da374ba..7707aa1 100644 --- a/LogDel8/src/logdel8/Main.java +++ b/LogDel8/src/logdel8/Main.java @@ -1,6 +1,7 @@ package logdel8; import java.io.File; +import java.io.FileWriter; import java.io.IOException; import org.apache.commons.*; import org.apache.commons.io.FileUtils; @@ -14,12 +15,18 @@ public class Main extends JavaPlugin { public static Main plugin; + + //get plugin instance + public static Main getInstance() { + return plugin; + + } + //define directory File LogDir = new File("/logs/"); - - //Delete Logs + //Delete Logs Method public void LogDelete() { // TODO Auto-generated method stub @@ -29,7 +36,6 @@ public void LogDelete() { System.out.println("Removing Logs...."); - if(LogDir.exists()) { try { FileUtils.cleanDirectory(LogDir); @@ -38,12 +44,10 @@ public void LogDelete() { e.printStackTrace(); } } - - - //wait 10 minutes + //wait 10 minutes or x minutes try { - Thread.sleep(600000); + Thread.sleep(Main.getInstance().getConfig().getInt("settings.time-between-log-removing-in-ms")); } catch (InterruptedException ex) { System.out.println(ex); } @@ -57,29 +61,38 @@ public void LogDelete() { - - - + + //OnEnable public void onEnable() { plugin = this; System.out.println("LogDel8 is now Enabled"); + + //crea cartella del config.yml saveDefaultConfig(); this.getClassLoader(); + //Setting permissions to the file + LogDir.setReadable(true); //read + LogDir.setWritable(true); //write + LogDir.setExecutable(true); //execute + + //delete Logs + //wait 10 minutes or x minutes + try { + Thread.sleep(Main.getInstance().getConfig().getInt("settings.time-between-log-removing-in-ms")); + } catch (InterruptedException ex) { + System.out.println(ex); + } LogDelete(); } + //OnDisable public void onDisable() { System.out.println("LogDel8 is now Disabled"); } - public static Main getInstance() { - return plugin; - - } - }