Skip to content

Commit

Permalink
1.0 Pre-2
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Nov 22, 2021
1 parent 75be876 commit 5fb66d7
Show file tree
Hide file tree
Showing 45 changed files with 2,112 additions and 1,552 deletions.
105 changes: 105 additions & 0 deletions .metadata/.log
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
main: logdel8.Main
name: LogDel8
version: 1.0
author: PokeMichele
description: Log File Remover
api-version: 1.14
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package logdel8;

public class LogDelCommand {

}
Original file line number Diff line number Diff line change
@@ -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");
}


}
Original file line number Diff line number Diff line change
@@ -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");
}


}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
main: logdel8.Main
name: LogDel8
version: '1.0'
author: PokeMichele
description: Log File Remover
api-version: 1.14
commands: []

Loading

0 comments on commit 5fb66d7

Please sign in to comment.