[personal profile] fardell24

Digital and Interactive Games 2015 – Term 3, Session 16
– Powershell




##########################
#
# Change the following variables
# to your new plugin.
#
##########################
$plugin = '#Plugin#'
$pluginName = 'MyName'
$main = 'org.fardell24.myname.MyName'
$versionNumber = '1.0'
$description = 'MyName Plugin'
$conpath1 = '
[Error: Irreparable invalid markup ('<classpathentry [...] $form.height>') in entry. Owner must fix manually. Raw contents below.]

<lj-cut text="Digital and Interactive Games 2015 - Term 3, Session 16">
Digital and Interactive Games 2015 – Term 3, Session 16
– Powershell



<code>
##########################
#
# Change the following variables
# to your new plugin.
#
##########################
$plugin = '#Plugin#'
$pluginName = 'MyName'
$main = 'org.fardell24.myname.MyName'
$versionNumber = '1.0'
$description = 'MyName Plugin'
$conpath1 = '<classpathentry kind="con" '="&#39;" $conpath2=" path=&quot;org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.8.0_45&quot;/&gt;" $libpath="&lt;classpathentry kind=&quot;lib&quot; path=&quot;C:/Snapshots/bukkit-1.7.9-R0.3.jar&quot;/&gt;" $name="MyName" #="#" #="#" do="DO" not="NOT" change="CHANGE" any="any" codes="codes" beyond="beyond" this="this" point.="point." #="#" [void][system.reflection.assembly]::loadwithpartialname("system.windows.forms")="[void][System.Reflection.Assembly]::LoadWithPartialName(&quot;System.Windows.Forms&quot;)" [void][system.reflection.assembly]::loadwithpartialname("microsoft.visualbasic")="[void][System.Reflection.Assembly]::LoadWithPartialName(&quot;Microsoft.VisualBasic&quot;)" #="#" $form="New-Object" "system.windows.forms.form"="&quot;System.Windows.Forms.Form&quot;" $form.width="600" $form.height="300" $form.text="New Plugin" $form.startposition="[System.Windows.Forms.FormStartPosition]::CenterScreen" #="#" $label1="New-Object" "system.windows.forms.label"="&quot;System.Windows.Forms.Label&quot;" $label1.left="25" $label1.top="15" $label1.text="Name: " #="#" $label2="New-Object" "system.windows.forms.label"="&quot;System.Windows.Forms.Label&quot;" $label2.left="25" $label2.top="45" $label2.text="Main: " #="#" $label3="New-Object" "system.windows.forms.label"="&quot;System.Windows.Forms.Label&quot;" $label3.left="25" $label3.top="75" $label3.text="Version: " #="#" $label4="New-Object" "system.windows.forms.label"="&quot;System.Windows.Forms.Label&quot;" $label4.left="25" $label4.top="105" $label4.text="Description: " #="#" $text1="New-Object" "system.windows.forms.textbox"="&quot;System.Windows.Forms.TextBox&quot;" $text1.left="150" $text1.top="15" $text1.width="200" #="#" $text2="New-Object" "system.windows.forms.textbox"="&quot;System.Windows.Forms.TextBox&quot;" $text2.left="150" $text2.top="45" $text2.width="200" #="#" $text3="New-Object" "system.windows.forms.textbox"="&quot;System.Windows.Forms.TextBox&quot;" $text3.left="150" $text3.top="75" $text3.width="200" #="#" $text4="New-Object" "system.windows.forms.textbox"="&quot;System.Windows.Forms.TextBox&quot;" $text4.left="150" $text4.top="105" $text4.width="200" #="#" $closebutton="New-Object" "system.windows.forms.button"="&quot;System.Windows.Forms.Button&quot;" $closebutton.left="500" $closebutton.top="230" $closebutton.width="75" $closebutton.text="Close" #="#" $closebuttonhandler="[System.EventHandler]" {="{" $form.close()="$form.Close()" }="}" $closebutton.add_click($closebuttonhandler)="$closeButton.Add_Click($closeButtonHandler)" #="#" $form.controls.add($label1)="$form.Controls.Add($label1)" $form.controls.add($label2)="$form.Controls.Add($label2)" $form.controls.add($label3)="$form.Controls.Add($label3)" $form.controls.add($label4)="$form.Controls.Add($label4)" $form.controls.add($text1)="$form.Controls.Add($text1)" $form.controls.add($text2)="$form.Controls.Add($text2)" $form.controls.add($text3)="$form.Controls.Add($text3)" $form.controls.add($text4)="$form.Controls.Add($text4)" $form.controls.add($closebutton)="$form.Controls.Add($closeButton)" #="#" $form.showdialog()="$form.ShowDialog()" #="#" copy-item="Copy-Item" .\plugin_template.yml=".\plugin_template.yml" -destination="-Destination" plugin.yml="plugin.yml" (get-content="(Get-Content" .\plugin.yml).replace('#plugin=".\plugin.yml).Replace(&#39;#Plugin" template#',$plugin)="Template#&#39;,$plugin)" |="|" set-content="Set-Content" plugin.yml="plugin.yml" (get-content="(Get-Content" .\plugin.yml).replace('<<pluginname=".\plugin.yml).Replace(&#39;&lt;&lt;Pluginname">>' ,$pluginName) | Set-Content plugin.yml
(Get-Content .\plugin.yml).Replace('<<main>>',$main) | Set-Content plugin.yml
(Get-Content .\plugin.yml).Replace('<<versionnumber>>',$versionNumber) | Set-Content plugin.yml
(Get-Content .\plugin.yml).Replace('<<description>>',$description) | Set-Content plugin.yml
(Get-Content .\plugin.yml)
Copy-Item .\.classpath_template -Destination .classpath
(Get-Content .\.classpath_template).Replace('<<conpath1>>', $conpath1) | Set-Content .classpath
(Get-Content .\.classpath_template).Replace('<<conpath2>>', $conpath2) | Set-Content .classpath
(Get-Content .\.classpath_template).Replace('<<libpath>>', $libpath) | Set-Content .classpath
Get-Content .\.classpath
Copy-Item .\.project_template -Destination .project
(Get-Content .\.project_template).Replace('<<name>>' ,$name) | Set-Content .project
Get-Content .\.project_template
</code>


$AddNameButton = New-Object "System.Windows.Forms.Button"
$AddNameButton.Left = 500
$AddNameButton.Top = 15
$AddNameButton.Width = 75
$AddNameButton.Text = "Add Name"

function changeName([REF] $n) {

}

</lj-cut>
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

May 2025

S M T W T F S
     1 23
45 6 78910
11 12 13 141516 17
1819 2021 22 23 24
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 26th, 2025 05:10 am
Powered by Dreamwidth Studios